Skip to content

Commit 7d109d4

Browse files
committed
Add comment about theme version checking in conf.
1 parent 26caf95 commit 7d109d4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

doc/conf.py

+5
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@
8585
"show_prev_next": False,
8686
"navbar_end": ["search-field.html", "navbar-icon-links.html"],
8787
}
88+
# NOTE: The following is required for supporting of older sphinx toolchains.
89+
# The "theme-switcher" templated should be added directly to navbar_end
90+
# above and the following lines removed when the minimum supported
91+
# version of pydata_sphinx_theme is 0.9.0
8892
# Add version switcher for versions of pydata_sphinx_theme that support it
8993
import packaging
9094
import pydata_sphinx_theme
@@ -94,6 +98,7 @@
9498
):
9599
html_theme_options["navbar_end"].insert(0, "theme-switcher")
96100

101+
97102
html_sidebars = {
98103
"**": [],
99104
}

0 commit comments

Comments
 (0)