Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5219372

Browse files
committed
Use local verison switcher on non release builds
1 parent e93c8b4 commit 5219372

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
@@ -484,7 +484,11 @@ def js_tag_with_cache_busting(js):
484484
# the server, but will be used as part of the key for caching by browsers
485485
# so when we do a new minor release the switcher will update "promptly" on
486486
# the stable and devdocs.
487-
"json_url": f"https://matplotlib.org/devdocs/_static/switcher.json?{SHA}",
487+
"json_url": (
488+
f"https://matplotlib.org/devdocs/_static/switcher.json?{SHA}"
489+
if is_release_build
490+
else "_static/switcher.json"
491+
),
488492
"version_match": (
489493
# The start version to show. This must be in switcher.json.
490494
# We either go to 'stable' or to 'devdocs'

0 commit comments

Comments
 (0)