-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
MkDocs: remove mkdocs.yml
manipulation
#7844
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I created an issue related to this (or the same?), about creating an extension for mkdocs #4924 |
We do this because we want to:
The code that performs these actions is at readthedocs.org/readthedocs/doc_builder/backends/mkdocs.py Lines 143 to 245 in 37650de
Note that none of these 3 actions will be required anymore, so we will be able to remove the manipulation of the YAML completely. I wrote a more extended comment in https://github.com/readthedocs/meta/issues/85#issuecomment-1616690964 that also touches this topic. |
mkdocs.yml
manipulation
Wonderful ❤️ |
Closing in favor of readthedocs/addons#72 |
We're currently parsing mkdocs YAML, which has some issues. This is an OK solution in the short term. In the longer term, we'd really love to not do any YAML parsing/dumping, and instead find a better way to integrate with mkdocs via an extension, or some other way that isn't so error-prone.
The main reason we are doing this currently is to add some small things to the config file. We should research and find another way of handling this, probably talking with the mkdocs team to ensure it will be supported going forward.
We merged a custom YAML parser in #7507, but we should plan to remove it and integrate in a way that doesn't require complex YAML.
The text was updated successfully, but these errors were encountered: