Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d78bc01 commit 77384b3Copy full SHA for 77384b3
1 file changed
doc/conf.py
@@ -397,7 +397,11 @@ def js_tag_with_cache_busting(js):
397
"collapse_navigation": not is_release_build,
398
"show_prev_next": False,
399
"switcher": {
400
- "json_url": "https://matplotlib.org/devdocs/_static/switcher.json",
+ # Add a unique query to the switcher.json url. This will be ignored by
401
+ # the server, but will be used as part of the key for caching by browsers
402
+ # so when we do a new minor release the switcher will update "promptly" on
403
+ # the stable and devdocs.
404
+ "json_url": f"https://matplotlib.org/devdocs/_static/switcher.json?{SHA}",
405
"version_match": (
406
# The start version to show. This must be in switcher.json.
407
# We either go to 'stable' or to 'devdocs'
0 commit comments