Skip to content

Commit 0ebff50

Browse files
authored
Merge pull request #23225 from melissawm/fix-switcher
DOC: Fix version switcher links to documentation
2 parents c7defd7 + 852cc0c commit 0ebff50

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

doc/_static/switcher.json

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,27 @@
11
[
22
{
33
"name": "3.5 (stable)",
4-
"version": "stable"
4+
"version": "stable",
5+
"url": "https://matplotlib.org/stable"
56
},
67
{
78
"name": "3.6 (dev)",
8-
"version": "devdocs"
9+
"version": "devdocs",
10+
"url": "https://matplotlib.org/devdocs"
911
},
1012
{
1113
"name": "3.4",
12-
"version": "3.4.3"
14+
"version": "3.4.3",
15+
"url": "https://matplotlib.org/3.4.3"
1316
},
1417
{
1518
"name": "3.3",
16-
"version": "3.3.4"
19+
"version": "3.3.4",
20+
"url": "https://matplotlib.org/3.3.4"
1721
},
1822
{
1923
"name": "2.2",
20-
"version": "2.2.4"
24+
"version": "2.2.4",
25+
"url": "https://matplotlib.org/2.2.4"
2126
}
2227
]

doc/conf.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,14 +329,13 @@ def matplotlib_reduced_latex_scraper(block, block_vars, gallery_conf,
329329
html_logo = "_static/logo2.svg"
330330
html_theme_options = {
331331
"native_site": True,
332-
"logo_link": "index",
332+
"logo": {"link": "index"},
333333
# collapse_navigation in pydata-sphinx-theme is slow, so skipped for local
334334
# and CI builds https://github.com/pydata/pydata-sphinx-theme/pull/386
335335
"collapse_navigation": not is_release_build,
336336
"show_prev_next": False,
337337
"switcher": {
338338
"json_url": "https://matplotlib.org/devdocs/_static/switcher.json",
339-
"url_template": "https://matplotlib.org/{version}/",
340339
"version_match": (
341340
# The start version to show. This must be in switcher.json.
342341
# We either go to 'stable' or to 'devdocs'

requirements/doc/doc-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ipython
1313
ipywidgets
1414
numpydoc>=1.0
1515
packaging>=20
16-
pydata-sphinx-theme>=0.8.0
16+
pydata-sphinx-theme>=0.9.0
1717
mpl-sphinx-theme
1818
sphinxcontrib-svg2pdfconverter>=1.1.0
1919
sphinx-gallery>=0.10

0 commit comments

Comments
 (0)