You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think light should be {{ default_mode }}, because it adds data-theme="light" attribute to the html tag which overrides the data-mode="dark" attribute.
In my case, I added html_context = {"default_mode": "dark"} to conf.py. In the static source, data-mode="dark" is added to the html tag, but the theme is still light. In the developer tools, a new data-theme="light" is added to the html tag where the cause is above inline script.
The text was updated successfully, but these errors were encountered:
Hi,
In
pydata-sphinx-theme/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/layout.html
Line 17 in a135c20
I think
light
should be{{ default_mode }}
, because it addsdata-theme="light"
attribute to thehtml
tag which overrides thedata-mode="dark"
attribute.In my case, I added
html_context = {"default_mode": "dark"}
toconf.py
. In the static source,data-mode="dark"
is added to thehtml
tag, but the theme is still light. In the developer tools, a newdata-theme="light"
is added to thehtml
tag where the cause is above inline script.The text was updated successfully, but these errors were encountered: