Skip to content

Commit e871cdf

Browse files
committed
DOC: Add theme switcher and default to lightmode.
1 parent a48ffc8 commit e871cdf

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

doc/conf.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,16 @@
8383
html_theme_options = {
8484
"github_url": "https://github.com/numpy/numpydoc",
8585
"show_prev_next": False,
86-
"navbar_end": ["search-field.html", "navbar-icon-links.html"],
86+
"navbar_end": [
87+
"theme-switcher", "search-field.html", "navbar-icon-links.html"
88+
],
8789
}
8890
html_sidebars = {
8991
"**": [],
9092
}
93+
html_context = {
94+
"default_mode": "light",
95+
}
9196

9297
html_title = f"{project} v{version} Manual"
9398
html_last_updated_fmt = "%b %d, %Y"

0 commit comments

Comments
 (0)