-
Notifications
You must be signed in to change notification settings - Fork 197
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
theme overwrites pygments_style variable #762
Comments
Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗 |
Our team has run into the same issue. |
After some more research, I finally stumbled across the answer to the problem: The correct setting in # conf.py
html_theme_options = {
...
"pygment_light_style": "default",
"pygment_dark_style": "monokai"
} Considering how long it took me to find a solution to this problem I would suggest that the sphinx-book-theme documentation at least copies the danger warning about overwriting the |
I cannot use the flag pygments_style when using the sphinx-book-theme.
Here is a minimal example
index.md
Run
sphinx-build -M html . _sphinx
yields
(which does not look good imo) the output code highlighting should look like
which is generated with
I use
Thanks for any help on how to fix this
Matthias
The text was updated successfully, but these errors were encountered: