-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Upgrade the version of mkdocs that readthedocs uses to one that isn't broken #9081
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 think the error you are seeing is because you are using Python 3.10 together with
We cannot easily upgrade the default version we are installing because there are a lot of projects that rely on that version. Then, if we upgrade the default |
I just realized that we fixed the problem related to Jinjja for Sphinx 1.8.x (#9036) but we may need to do the same for MkDocs, cc @ericholscher |
Can confirm, the issue occurs for me also. Here's a recent build. Thank you. |
Thanks for writing in. You can install whatever version of mkdocs you'd like with our platform: https://docs.readthedocs.io/en/latest/guides/reproducible-builds.html#reproducible-builds We will work to upgrade the default version however, since that's not a great experience to have it broken. |
I got this same error Forcing the build to install mkdocs 1.3.0 worked for me to solve this. |
see readthedocs/readthedocs.org#9081 RTD build secretly pins mkdocs <1.1, which is broken due to a jinja2 incompatibility. This just tries to move the step that installs *our* dependencies (which are compatible) after the step that automaticlally installs the wrong version of some of them.
* switch to mkdocs * rough draft of docs with theme and extensions * try tweaking readthedocs.yaml for PR hook * workaround RTD pinning broken mkdocs see readthedocs/readthedocs.org#9081 RTD build secretly pins mkdocs <1.1, which is broken due to a jinja2 incompatibility. This just tries to move the step that installs *our* dependencies (which are compatible) after the step that automaticlally installs the wrong version of some of them. * edit architecture overview, add code highlighting * WIP reformatting docstrings for mkdocstrings Still need to fix Garden's docstring * fix docstrings for Garden, add to PR template * flake8 gripes
As per readthedocs/readthedocs.org#9081 - while the template suggests Python 3.11, this doesn't actually work with the version of mkdocs installed by default. Reverting to Python 3.9 apparently fixes it.
I created a new feature flag called `INSTALL_LATEST_CORE_REQUIREMENTS` that does not depend on any other feature flag. Its goal is to always install the latest Python packages. We are trying to move away from pinning the dependencies on our side and telling users to do that on their side if they want to have reproducible builds over time. I think this is the best outcome for new projects since they will immediately use the latest versions of everything instead of old (and maybe broken) dependencies. I propose to set a particular date for this feature flag and make new projects to start building with all the latest dependencies. This will, at least, stop making the problem bigger. Later, we can decide how to communicate to old projects that we are going to install the latest requirements and if they don't want that, they should pin their dependencies. We can follow our new and shiny deprecation path we have built and tested in the last month. Related readthedocs/meta#8 Related #9562 Related #10402 Related #9081
* Build: install all the latest Python "core requirements" I created a new feature flag called `INSTALL_LATEST_CORE_REQUIREMENTS` that does not depend on any other feature flag. Its goal is to always install the latest Python packages. We are trying to move away from pinning the dependencies on our side and telling users to do that on their side if they want to have reproducible builds over time. I think this is the best outcome for new projects since they will immediately use the latest versions of everything instead of old (and maybe broken) dependencies. I propose to set a particular date for this feature flag and make new projects to start building with all the latest dependencies. This will, at least, stop making the problem bigger. Later, we can decide how to communicate to old projects that we are going to install the latest requirements and if they don't want that, they should pin their dependencies. We can follow our new and shiny deprecation path we have built and tested in the last month. Related readthedocs/meta#8 Related #9562 Related #10402 Related #9081 * Build: remove deprecated dependencies * Build: install latest core requirements when using Conda * Docs: update default versions documentation to match the changes * Feedback from review Do not install `sphinx-rtd-theme` and clarify the docstring. * Update documentation
Starting on August 7, Read the Docs will start installing the latest MkDocs version available. See https://blog.readthedocs.com/python-core-requirements-changed/ |
Details
Failing build: https://readthedocs.org/projects/hdx-python-country/builds/16574497/
Fixed build with forced install of mkdocs 1.3.0:
https://readthedocs.org/projects/hdx-python-country/builds/16574520/
jinja2 3.1.0 breaks version of mkdocs before 1.2.4 and I get another error in my failing build "ImportError: cannot import name 'Sequence' from 'collections'". Both these errors are fixed by newer mkdocs.
The text was updated successfully, but these errors were encountered: