8000
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.
2 parents f16c00b + 1feb029 commit 934951fCopy full SHA for 934951f
doc/conf.py
@@ -442,7 +442,11 @@ def js_tag_with_cache_busting(js):
442
"collapse_navigation": not is_release_build,
443
"show_prev_next": False,
444
"switcher": {
445
- "json_url": "https://matplotlib.org/devdocs/_static/switcher.json",
+ # Add a unique query to the switcher.json url. This will be ignored by
446
+ # the server, but will be used as part of the key for caching by browsers
447
+ # so when we do a new minor release the switcher will update "promptly" on
448
+ # the stable and devdocs.
449
+ "json_url": f"https://matplotlib.org/devdocs/_static/switcher.json?{SHA}",
450
"version_match": (
451
# The start version to show. This must be in switcher.json.
452
# We either go to 'stable' or to 'devdocs'
0 commit comments