Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f725652

Browse filesBrowse files
committed
DOC: Fix matching for version switcher
A released version should point to its version, not 'stable', since that doesn't appear in the version switcher. And devdocs should point to 'dev', since that's what it's called in the JSON.
1 parent f7b3def commit f725652
Copy full SHA for f725652

File tree

1 file changed

+3
-4
lines changed
Filter options

1 file changed

+3
-4
lines changed

‎doc/conf.py

Copy file name to clipboardExpand all lines: doc/conf.py
+3-4Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -514,10 +514,9 @@ def js_tag_with_cache_busting(js):
514514
f"https://matplotlib.org/devdocs/_static/switcher.json?{SHA}"
515515
),
516516
"version_match": (
517-
# The start version to show. This must be in switcher.json.
518-
# We either go to 'stable' or to 'devdocs'
519-
'stable' if matplotlib.__version_info__.releaselevel == 'final'
520-
else 'devdocs')
517+
matplotlib.__version__
518+
if matplotlib.__version_info__.releaselevel == 'final'
519+
else 'dev')
521520
},
522521
"navbar_end": ["theme-switcher", "version-switcher", "mpl_icon_links"],
523522
"navbar_persistent": ["search-button"],

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.