@@ -200,6 +200,7 @@ def _check_dependencies():
200
200
missing_references_write_json = False
201
201
missing_references_warn_unused_ignores = False
202
202
203
+
203
204
intersphinx_mapping = {
204
205
'Pillow' : ('https://pillow.readthedocs.io/en/stable/' , None ),
205
206
'cycler' : ('https://matplotlib.org/cycler/' , None ),
@@ -484,15 +485,21 @@ def js_tag_with_cache_busting(js):
484
485
# the server, but will be used as part of the key for caching by browsers
485
486
# so when we do a new meso release the switcher will update "promptly" on
486
487
# the stable and devdocs.
487
- "json_url" : f"https://matplotlib.org/devdocs/_static/switcher.json?{ SHA } " ,
488
+ "json_url" : (
489
+ "https://output.circle-artifacts.com/output/job/"
490
+ f"{ os .environ ['CIRCLE_WORKFLOW_JOB_ID' ]} /artifacts/"
491
+ f"{ os .environ ['CIRCLE_NODE_INDEX' ]} "
492
+ "/doc/build/html/_static/switcher.json" if CIRCLECI else
493
+ f"https://matplotlib.org/devdocs/_static/switcher.json?{ SHA } "
494
+ ),
488
495
"version_match" : (
489
496
# The start version to show. This must be in switcher.json.
490
497
# We either go to 'stable' or to 'devdocs'
491
498
'stable' if matplotlib .__version_info__ .releaselevel == 'final'
492
499
else 'devdocs' )
493
500
},
494
501
"navbar_end" : ["theme-switcher" , "version-switcher" , "mpl_icon_links" ],
495
- "secondary_sidebar_items " : "page-toc.html" ,
502
+ "navbar_persistent " : [ "search-button" ] ,
496
503
"footer_start" : ["copyright" , "sphinx-version" , "doc_version" ],
497
504
# We override the announcement template from pydata-sphinx-theme, where
498
505
# this special value indicates the use of the unreleased banner. If we need
@@ -543,6 +550,9 @@ def js_tag_with_cache_busting(js):
543
550
# '**': ['localtoc.html', 'pagesource.html']
544
551
}
545
552
553
+ # Don't include link to doc source files
554
+ html_show_sourcelink = False
555
+
546
556
# Copies only relevant code, not the '>>>' prompt
547
557
copybutton_prompt_text = r'>>> |\.\.\. '
548
558
copybutton_prompt_is_regexp = True
0 commit comments