Skip to content

Commit 08f8bc7

Browse files
committed
DOC: Add search button and fix version switcher dev label
[skip azp] [skip cirrus]
1 parent eb4c33d commit 08f8bc7

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

doc/source/_static/numpy.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ body {
1414

1515
/* Version switcher colors from PyData Sphinx Theme */
1616

17-
.version-switcher__button[data-active-version-name*="dev"] {
17+
.version-switcher__button[data-active-version-name*="devdocs"] {
1818
background-color: var(--pst-color-warning);
1919
border-color: var(--pst-color-warning);
2020
opacity: 0.9;

doc/source/conf.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -251,19 +251,14 @@ def setup(app):
251251
],
252252
"header_links_before_dropdown": 6,
253253
# Add light/dark mode and documentation version switcher:
254-
"navbar_end": ["theme-switcher", "version-switcher", "navbar-icon-links"],
254+
"navbar_end": ["search-button", "theme-switcher", "version-switcher", "navbar-icon-links"],
255255
"navbar_persistent": [],
256256
"switcher": {
257257
"version_match": switcher_version,
258258
"json_url": "https://numpy.org/doc/_static/versions.json",
259259
},
260260
}
261261

262-
html_sidebars = {
263-
"index": "search-button-field",
264-
"**": ["search-button-field", "sidebar-nav-bs"],
265-
}
266-
267262
html_title = "%s v%s Manual" % (project, version)
268263
html_static_path = ['_static']
269264
html_last_updated_fmt = '%b %d, %Y'

0 commit comments

Comments
 (0)