@@ -200,6 +200,7 @@ def _check_dependencies():
200200missing_references_write_json = False
201201missing_references_warn_unused_ignores = False
202202
203+
203204intersphinx_mapping = {
204205 'Pillow' : ('https://pillow.readthedocs.io/en/stable/' , None ),
205206 'cycler' : ('https://matplotlib.org/cycler/' , None ),
@@ -484,15 +485,21 @@ def js_tag_with_cache_busting(js):
484485 # the server, but will be used as part of the key for caching by browsers
485486 # so when we do a new meso release the switcher will update "promptly" on
486487 # 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+ ),
488495 "version_match" : (
489496 # The start version to show. This must be in switcher.json.
490497 # We either go to 'stable' or to 'devdocs'
491498 'stable' if matplotlib .__version_info__ .releaselevel == 'final'
492499 else 'devdocs' )
493500 },
494501 "navbar_end" : ["theme-switcher" , "version-switcher" , "mpl_icon_links" ],
495- "secondary_sidebar_items " : "page-toc.html" ,
502+ "navbar_persistent " : [ "search-button" ] ,
496503 "footer_start" : ["copyright" , "sphinx-version" , "doc_version" ],
497504 # We override the announcement template from pydata-sphinx-theme, where
498505 # this special value indicates the use of the unreleased banner. If we need
@@ -543,6 +550,9 @@ def js_tag_with_cache_busting(js):
543550 # '**': ['localtoc.html', 'pagesource.html']
544551}
545552
553+ # Don't include link to doc source files
554+ html_show_sourcelink = False
555+
546556# Copies only relevant code, not the '>>>' prompt
547557copybutton_prompt_text = r'>>> |\.\.\. '
548558copybutton_prompt_is_regexp = True
0 commit comments