Skip to content

Commit 35fb140

Browse files
committed
DOC: add dropdown
1 parent 7839b67 commit 35fb140

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

doc/_static/switcher.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
[
2+
{
3+
"name": "stable",
4+
"version": "stable"
5+
},
6+
{
7+
"name": "devel",
8+
"version": "devel"
9+
},
10+
{
11+
"version": "3.5.0"
12+
},
13+
{
14+
"name": "3.4",
15+
"version": "3.4.3"
16+
},
17+
{
18+
"name": "3.3",
19+
"version": "3.3.4"
20+
},
21+
{
22+
"name": "3.2",
23+
"version": "3.2.2"
24+
},
25+
{
26+
"name": "3.1",
27+
"version": "3.1.3"
28+
},
29+
{
30+
"name": "3.0",
31+
"version": "3.0.3"
32+
},
33+
]

doc/conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,10 @@ def matplotlib_reduced_latex_scraper(block, block_vars, gallery_conf,
323323
# and CI builds https://github.com/pydata/pydata-sphinx-theme/pull/386
324324
"collapse_navigation": not is_release_build,
325325
"show_prev_next": False,
326+
"switcher": {
327+
"json_url": "https://matplotlib.org/en/latest/_static/switcher.json",
328+
"url_template": "https://matplotlib.org/{version}/"
329+
}
326330
}
327331
include_analytics = is_release_build
328332
if include_analytics:

0 commit comments

Comments
 (0)