-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Use latest sphinx_rtd_theme by default? #7858
Comments
This is under a feature flag that defaults to use the latest version for projects created after October 20th 2020. This is done to avoid breaking docs from existing users that were using a default old sphinx version (1.8). I can enable it for your project if you want. But yeah, we recommend pinning your dependencies explicitly to avoid breaking the docs in the future and having reproducible builds. |
Thanks for the information, that's good to know!
OK, so does that mean that those "old" projects will never be upgraded to a higher Sphinx version if the default settings are used? I guess this also means that it's not sufficient for those projects to request
No, thanks, I don't use the RTD theme for most of my projects, and I changed the The reason why I'm asking is that my Sphinx extension https://github.com/mgeier/sphinx-last-updated-by-git did not work by default on RTD and as it looks like it will keep not working by default for "old" projects. See also mgeier/sphinx-last-updated-by-git#1.
OK, good to know. I think I personally prefer getting newer versions automatically, so I will probably rather use |
For now, yeah. We plan to have a "supported versions" policy that may change that, but having users set the versions of their dependencies explicitly is more the goal we want to achieve.
Yes, that's correct |
@stsewd But, to be thorough here, you would have to pin |
Just saw that there is already a PR: #8668 |
After bumping Sphinx from 5.3.0 to 7.0.1, the docs build failed (see https://readthedocs.org/projects/django-simple-history/builds/21210847/) due to Read the Docs automatically installing an outdated version of `sphinx-rtd-theme` (reason: readthedocs/readthedocs.org#7858 (comment)). Following the guidelines in their docs (see https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html#use-a-requirements-file-for-python-dependencies), this commit pins the version of `sphinx-rtd-theme` - specifically to the newest one.
* Bump sphinx from 5.3.0 to 7.0.1 in /requirements Bumps [sphinx](https://github.com/sphinx-doc/sphinx) from 5.3.0 to 7.0.1. - [Release notes](https://github.com/sphinx-doc/sphinx/releases) - [Changelog](https://github.com/sphinx-doc/sphinx/blob/master/CHANGES) - [Commits](sphinx-doc/sphinx@v5.3.0...v7.0.1) --- updated-dependencies: - dependency-name: sphinx dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Pin sphinx-rtd-theme in requirements/docs.txt After bumping Sphinx from 5.3.0 to 7.0.1, the docs build failed (see https://readthedocs.org/projects/django-simple-history/builds/21210847/) due to Read the Docs automatically installing an outdated version of `sphinx-rtd-theme` (reason: readthedocs/readthedocs.org#7858 (comment)). Following the guidelines in their docs (see https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html#use-a-requirements-file-for-python-dependencies), this commit pins the version of `sphinx-rtd-theme` - specifically to the newest one. * Bump Sphinx down to 6.2.1 It turns out that the newest version (1.2.2) requires Sphinx<7 (see https://github.com/readthedocs/sphinx_rtd_theme/blob/1.2.2/setup.cfg#L48). Version 1.0.0 doesn't (see https://github.com/readthedocs/sphinx_rtd_theme/blob/1.0.0/setup.py#L121), but that one depends on docutils<0.18 - and Sphinx 7.0.1 depends on docutils>=0.18.1. So the only solution seems to be bumping Sphinx down to the first version below 7. --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Anders <6058745+ddabble@users.noreply.github.com>
See [1] for details of the "feature-flag" that does this. Anyway, turns out our docs won't build with a sphinx that ancient any more, Sphinx 2.x is broken on modern Python, as is 3.x, so 4.x is the minimum we now require. At least, that's what my local experiments suggest. Let's see if this works on RTD, or if I need another commit ... [1]: readthedocs/readthedocs.org#7858 (comment)
Currently,
sphinx-rtd-theme<0.5
is used by default, see:readthedocs.org/readthedocs/doc_builder/python_environments.py
Line 392 in dee00ce
What is blocking the use of the new RTD theme by default?
It looks like version 0.5.0 is already more than half a year old and there is even 0.5.1 available.
I'm aware that there are ways to use newer versions for individual projects, but I'm interested in the default case.
See also #7165, #7396.
The text was updated successfully, but these errors were encountered: