Skip to content

Commit e60b757

Browse files
authored
Merge pull request #23175 from timhoffm/version-switcher-default
Point the version switcher to a name listed in switcher.json
2 parents 8788dcc + 0e1bfe8 commit e60b757

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

doc/conf.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,11 @@ def matplotlib_reduced_latex_scraper(block, block_vars, gallery_conf,
337337
"switcher": {
338338
"json_url": "https://matplotlib.org/devdocs/_static/switcher.json",
339339
"url_template": "https://matplotlib.org/{version}/",
340-
"version_match": version,
340+
"version_match": (
341+
# The start version to show. This must be in switcher.json.
342+
# We either go to 'stable' or to 'devdocs'
343+
'stable' if matplotlib.__version_info__.releaselevel == 'final'
344+
else 'devdocs')
341345
},
342346
"navbar_end": ["version-switcher", "mpl_icon_links"]
343347
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy