Skip to content
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

Prevent theme mamangement to raise error when the mode is fixed #692

Merged
merged 4 commits into from Jun 4, 2022

Conversation

12rambau
Copy link
Collaborator

@12rambau 12rambau commented Jun 3, 2022

related to #684

I silence the javascript related to the theme management if the theme switcher is not in the DOM. It removes the errors from the console.

I completed the documentation with explaination on how to fix the mode to a specific value.
The code was already there but there was a typo preventing the display in the doc (note for self Pygments warning lead to no display). https://pydata-sphinx-theme--692.org.readthedocs.build/en/692/user_guide/configuring.html#configure-default-theme

To answer the issue more specifically, the default behaviour remain "auto" with the theme swithcer in the navbar but I takes 2 lines in conf.py to silence it (and it's now documented).

@12rambau 12rambau marked this pull request as ready for review June 3, 2022 22:17
Copy link
Collaborator

@choldgraf choldgraf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me! Some quick suggested edits on the language there, but thanks for following up on this!

docs/user_guide/configuring.rst Outdated Show resolved Hide resolved
@jarrodmillman jarrodmillman added this to the 0.9 milestone Jun 4, 2022
Co-authored-by: Chris Holdgraf <choldgraf@gmail.com>
@choldgraf choldgraf merged commit 7f12569 into pydata:main Jun 4, 2022
@12rambau 12rambau deleted the default_mode branch June 4, 2022 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants