-
-
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
Add a feature flag to install docutils<0.18 on sphinx 2 projects #8668
Conversation
This will hopefully allow us to roll out changes to fix old sphinx projects that are broken.
if self.project.has_feature(Feature.DOCUTILS_017) | ||
and not self.project.has_feature(Feature.USE_SPHINX_LATEST): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Parenthesis are missing for the multiline expression
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me.
I had to do some small checks before approving this PR:
- ✅ we have
USE_SPHINX_LATEST
enabled in our production db for all new projects afterOct. 20, 2020, 8:30 p.m.
. - ✅ we are installing
Sphinx<2
for those projects not usingUSE_SPHINX_LATEST
:readthedocs.org/readthedocs/doc_builder/python_environments.py
Lines 507 to 511 in a81f14c
self.project.get_feature_value( Feature.USE_SPHINX_LATEST, positive='sphinx', negative='sphinx<2', ), - unrelated to this, but may worth to mention it here as well, we install an old version of our theme when not
USE_SPHINX_LATEST
:readthedocs.org/readthedocs/doc_builder/python_environments.py
Lines 514 to 518 in a81f14c
self.project.get_feature_value( Feature.USE_SPHINX_LATEST, positive='sphinx-rtd-theme', negative='sphinx-rtd-theme<0.5', ),
It was just noted in chat, but seems there has been some movement at doctuils and Sphinx on updating some of the conflicts between the packages: sphinx-doc/sphinx#9807 So, we might see a docutils 0.18.1 soon, and seems a Sphinx 1.8.6/etc as well. Looks like our feature flag pinned 1.x Sphinx will get a 1.8.6 release, so we might be close to settled on this.
So, that seems like it was needed because sphinx_rtd_theme 0.4.3 doesn't support Sphinx 2. I'm not sure why we didn't, but seems we might want to backport a fix and release a 0.4.4 pinning Sphinx < 2. Also though, Sphinx 1.8 is supported by the latest release so I don't even know if this is even applicable anymore. |
@ericholscher If you are referring to readthedocs/sphinx_rtd_theme#1115, wouldn't you have to pin to docutils 0.16.0? |
Looks like the bugfix release of sphinx releases should have fixed this issue in a better way. Closing this 🎉 |
This will hopefully allow us to roll out changes to fix old sphinx projects that are broken.
The rollout plan will be: