Skip to content

Commit bc2c872

Browse files
committed
Fix version switcher url for circleCI
1 parent 6f9eda7 commit bc2c872

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

doc/conf.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,13 @@ 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 meso 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+
"https://output.circle-artifacts.com/output/job/"
489+
f"{os.environ['CIRCLE_WORKFLOW_JOB_ID']}/artifacts/"
490+
f"{os.environ['CIRCLE_NODE_INDEX']}"
491+
"/doc/build/html/_static/switcher.json" if CIRCLECI else
492+
f"https://matplotlib.org/devdocs/_static/switcher.json?{SHA}"
493+
),
488494
"version_match": (
489495
# The start version to show. This must be in switcher.json.
490496
# We either go to 'stable' or to 'devdocs'

0 commit comments

Comments
 (0)