Skip to content

Commit 286d8e4

Browse files
committed
Revert "Add workaround for theme versions that don't support mode switcher."
This reverts commit 26caf95.
1 parent 26caf95 commit 286d8e4

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

doc/conf.py

+1-10
Original file line numberDiff line numberDiff line change
@@ -83,17 +83,8 @@
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": ["theme-switcher", "search-field.html", "navbar-icon-links.html"],
8787
}
88-
# Add version switcher for versions of pydata_sphinx_theme that support it
89-
import packaging
90-
import pydata_sphinx_theme
91-
92-
if packaging.version.parse(pydata_sphinx_theme.__version__) >= packaging.version.parse(
93-
"0.9.0"
94-
):
95-
html_theme_options["navbar_end"].insert(0, "theme-switcher")
96-
9788
html_sidebars = {
9889
"**": [],
9990
}

0 commit comments

Comments
 (0)