From 0e1bfe8517ad5716ea05f9dddacdfcaa8a572342 Mon Sep 17 00:00:00 2001 From: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Date: Sun, 29 May 2022 22:45:33 +0200 Subject: [PATCH] Point the version switcher to a name listed in switcher.json --- doc/conf.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/conf.py b/doc/conf.py index 4b8609e5ec01..3d631baed199 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -339,7 +339,11 @@ def matplotlib_reduced_latex_scraper(block, block_vars, gallery_conf, "switcher": { "json_url": "https://matplotlib.org/devdocs/_static/switcher.json", "url_template": "https://matplotlib.org/{version}/", - "version_match": version, + "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') }, "navbar_end": ["version-switcher", "mpl_icon_links"] }
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: