Skip to content

Commit f4a50d3

Browse files
committed
FIX: add theme-switcher
1 parent 622065e commit f4a50d3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

doc/conf.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,6 @@ def matplotlib_reduced_latex_scraper(block, block_vars, gallery_conf,
329329
html_logo = "_static/logo2.svg"
330330
html_theme_options = {
331331
"native_site": True,
332-
"logo": {"link": "index"},
333332
# collapse_navigation in pydata-sphinx-theme is slow, so skipped for local
334333
# and CI builds https://github.com/pydata/pydata-sphinx-theme/pull/386
335334
"collapse_navigation": not is_release_build,
@@ -342,7 +341,10 @@ def matplotlib_reduced_latex_scraper(block, block_vars, gallery_conf,
342341
'stable' if matplotlib.__version_info__.releaselevel == 'final'
343342
else 'devdocs')
344343
},
345-
"navbar_end": ["version-switcher", "mpl_icon_links"]
344+
"logo": {"link": "index",
345+
"image_light": "images/logo2.svg",
346+
"image_dark": "images/logo_dark.svg"},
347+
"navbar_end": ["version-switcher", "mpl_icon_links", "theme-switcher"]
346348
}
347349
include_analytics = is_release_build
348350
if include_analytics:

0 commit comments

Comments
 (0)