-
Notifications
You must be signed in to change notification settings - Fork 37
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
Since we don't have a Dark theme (yet?) use Light theme only #352
Conversation
So when I pull up the CircleCI artifact, index.html (and other pages) are correct:
and this element covers the whole page, so I suspect it's the one triggering the javascript. |
2754ef7
to
2076e50
Compare
OK, I checked that this element indeed comes from the pydata sphinx theme. Your change looks good but I'm not sure it does much as you observed. We can probably raise this upstream but since I don't use this extension I'm not sure I can help much. |
I can poke around over there maybe I can find a fix upstream. |
Actually, looks like it was raised over there pydata/pydata-sphinx-theme#1661 |
In that case I'll leave as approved and we can even merge, just can't forget to check when the release is out. Thanks! |
This should work in 15.3, so un-drafting! |
Merging main which should rebuild using the new theme (due to changes upstream and in constraints). |
Boo, the site builds with 15.3 and 0.4.0 but I still get: |
@melissawm with a little help from ChatGPT4o I figured it out! The mode is set using |
Closing because this was picked over to #423 |
Depends on #423
References and relevant issues
Closes: napari/napari-sphinx-theme#124
See napari/napari-sphinx-theme#124 (comment)
For the docs see: https://pydata-sphinx-theme.readthedocs.io/en/stable/user_guide/light-dark.html#light-and-dark-themes
Description
The default setting is to auto-swap the theme between Light and Dark with system settings, resulting in this in Safari dev console:
[Log] [PST]: Changed to auto mode using the dark theme. (pydata-sphinx-theme.js, line 1)
But we don't actually have a different Dark theme, so it just uses Light, while preventing my extension from darkening it -- but shows Light.
With this change, the theme will not auto change and will just use Light. Once we have a Dark theme we can reconsider.