Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,10 +514,9 @@ def js_tag_with_cache_busting(js):
f"https://matplotlib.org/devdocs/_static/switcher.json?{SHA}"
),
"version_match": (
# The start version to show. This must be in switcher.json.
# We either go to 'stable' or to 'devdocs'
'stable' if matplotlib.__version_info__.releaselevel == 'final'
else 'devdocs')
matplotlib.__version__
if matplotlib.__version_info__.releaselevel == 'final'
else 'dev')
},
"navbar_end": ["theme-switcher", "version-switcher", "mpl_icon_links"],
"navbar_persistent": ["search-button"],
Expand Down