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 486e1e2

Browse filesBrowse files
authored
Merge pull request #28645 from meeseeksmachine/auto-backport-of-pr-28644-on-v3.9.x
Backport PR #28644 on branch v3.9.x (DOC: Fix matching for version switcher)
2 parents fd966bb + 105533f commit 486e1e2
Copy full SHA for 486e1e2

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
@@ -496,10 +496,9 @@ def js_tag_with_cache_busting(js):
496496
f"https://matplotlib.org/devdocs/_static/switcher.json?{SHA}"
497497
),
498498
"version_match": (
499-
# The start version to show. This must be in switcher.json.
500-
# We either go to 'stable' or to 'devdocs'
501-
'stable' if matplotlib.__version_info__.releaselevel == 'final'
502-
else 'devdocs')
499+
matplotlib.__version__
500+
if matplotlib.__version_info__.releaselevel == 'final'
501+
else 'dev')
503502
},
504503
"navbar_end": ["theme-switcher", "version-switcher", "mpl_icon_links"],
505504
"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.