docs: Fix invisible REPL output in HTML dark mode#1045
Merged
bbayles merged 2 commits intomore-itertools:masterfrom Aug 6, 2025
Merged
docs: Fix invisible REPL output in HTML dark mode#1045bbayles merged 2 commits intomore-itertools:masterfrom
bbayles merged 2 commits intomore-itertools:masterfrom
Conversation
With the sphinx theme output was rendered in virtually the same colour as the background. The light theme should be unchanged. See - https://pradyunsg.me/furo/customisation/colors/#code-block-styling
Contributor
Author
|
From some light poking around I don't think Pygments styles are aware of light or dark mode. Some styles just happen to be light, and others dark. There isn't a "sphinx-dark". I also tried "github-dark", but it was too low contrast for my taste. |
Collaborator
|
I think this was fixed in #1043 - the |
Collaborator
|
Though I think your fix should be what's used in |
Contributor
Author
With Pygments dark style explicitly set, the latest version can be used again. refs more-itertools#1042, more-itertools#1043
Collaborator
|
I think your solution makes sense given the note in the
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

With the sphinx theme output was rendered in virtually the same colour as the background. The light theme should be unchanged.
See
Issue reference
None
Changes
Changes the Pygments theme for code blocks in HTML dark mode to "monokai"
Before
After
Checks and tests
Details