Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 79690c5

Browse files
melissawmandrew-fennell
authored andcommitted
DOC: Fix version switcher links to documentation
1 parent 7c198ca commit 79690c5

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
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: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,6 @@ def matplotlib_reduced_latex_scraper(block, block_vars, gallery_conf,
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'

0 commit comments

Comments
 (0)