-
Notifications
You must be signed in to change notification settings - Fork 307
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
code-block:: diff is not highlighted with this theme #1506
Comments
To render code highighting, sphinx uses Pygment. I wasn't aware of this one but you are very right the diff lexer do exist and should be supported. There are 2 options here: I am swamped with other issues so could you simply try on your example to change the pygment style in the option ? html_theme_options = {
#...
"pygment_light_style": "tango",
"pygment_dark_style": "monokai"
} and let me know if it works ? |
@12rambau that works for me! |
For what it's worth I know that this used to work with an older version of this theme. Unfortunately I don't know which. Sometime last year I started using this theme and had that installed in a conda environment. Last week when I upgraded I noticed this issue. So, something in the past year in either sphinx or this caused the highlighting to disappear. I know that's vague but it's the best I can offer. |
we recently added lots of things in the theme related to accessibility including specific a11y compatible pygment styles. I'll open an issue on there end and tag you there. |
I opened Quansight-Labs/accessible-pygments#31 about this. |
closing since it's ultimately an upstream feature request, nothing we can do in this repo to fix it. |
There appears to be an incompatibility between this theme and the code highlighting for
code-block:: diff
s.In index.rst add this:
Make the docs:
make html
and view them.The default alabaster theme renders this with color:
Now, install this theme
and setup the conf.py to use this theme and remake the docs.
Looking at the output, the diff is not appropriately color coded.
The text was updated successfully, but these errors were encountered: