Skip to content
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

Fix codebgcolor and codetextcolor for Sphinx 3.1.0+ #57

Open
wants to merge 1 commit into
base: master
from

Conversation

@zmwangx
Copy link

@zmwangx zmwangx commented Oct 10, 2020

Sphinx 3.1.0+ dropped the custom codebgcolor and codetextcolor from the classic theme (see commit sphinx-doc/sphinx@b345acc), leaving pre elements uncolored.

Without the fix:

Screen Shot 2020-10-10 at 11 14 05 AM

Should be:

Screen Shot 2020-10-10 at 11 15 19 AM

Sphinx 3.1.0+ dropped the custom codebgcolor and codetextcolor from the classic
theme[1], leaving pre elements uncolored.

[1] sphinx-doc/sphinx@b345acc
zmwangx added a commit to zmwangx/dim that referenced this pull request Oct 10, 2020
See python/python-docs-theme#57.

Also blacken.
@zmwangx
Copy link
Author

@zmwangx zmwangx commented Oct 10, 2020

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.

@JulienPalard
Copy link
Member

@JulienPalard JulienPalard commented Oct 10, 2020

@zmwangx
Copy link
Author

@zmwangx zmwangx commented Oct 10, 2020

@corona10
Copy link
Member

@corona10 corona10 commented Oct 17, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants
You can’t perform that action at this time.