-
-
Notifications
You must be signed in to change notification settings - Fork 65
Fix codebgcolor and codetextcolor for Sphinx 3.1.0+ #57
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
Conversation
Sphinx 3.1.0+ dropped the custom codebgcolor and codetextcolor from the classic theme[1], leaving pre elements uncolored. [1] sphinx-doc/sphinx@b345acc
See python/python-docs-theme#57. Also blacken.
Wait, was this change intentional? Just noticed that Python 3.10 docs, rendered with Sphinx 3.2.1, features background color-less code blocks. In any case I certainly prefer the old style. |
Looks related to sphinx-doc/sphinx#7720 / sphinx-doc/sphinx#7721 |
Yeah, sphinx-doc/sphinx#7720 led to sphinx-doc/sphinx#7721 led to sphinx-doc/sphinx@b345acc. |
@Mariatta Do you happen to know who has privileges to publish a new version to pypi? We need a new version to restore the colourized backgrounds. |
I can publish this later this evening. |
We've released v 2020.12 |
Thanks a lot @Mariatta! |
Sphinx 3.1.0+ dropped the custom
codebgcolor
andcodetextcolor
from the classic theme (see commit sphinx-doc/sphinx@b345acc), leaving pre elements uncolored.Without the fix:
Should be: