File tree 2 files changed +43
-0
lines changed
2 files changed +43
-0
lines changed Original file line number Diff line number Diff line change 225
225
# Theme options are theme-specific and customize the look and feel of a theme
226
226
# further. For a list of options available for each theme, see the
227
227
# documentation.
228
+
229
+ switcher_version = version
230
+ if ".dev" in version :
231
+ switcher_version = "dev"
232
+ elif "rc" in version :
233
+ switcher_version = version .split ("rc" )[0 ] + " (rc)"
234
+
228
235
html_theme_options = {
229
236
"external_links" : [],
230
237
"github_url" : "https://github.com/pandas-dev/pandas" ,
231
238
"twitter_url" : "https://twitter.com/pandas_dev" ,
232
239
"google_analytics_id" : "UA-27880019-2" ,
240
+ "navbar_end" : ["version-switcher" , "navbar-icon-links" ],
241
+ "switcher" : {
242
+ "json_url" : "https://pandas.pydata.org/versions.json" ,
243
+ "url_template" : "https://pandas.pydata.org/{version}/" ,
244
+ "version_match" : switcher_version ,
245
+ },
233
246
}
234
247
235
248
# Add any paths that contain custom themes here, relative to this directory.
Original file line number Diff line number Diff line change
1
+ [
2
+ {
3
+ "name" : " dev" ,
4
+ "version" : " docs/dev"
5
+ },
6
+ {
7
+ "name" : " 1.4 (rc)" ,
8
+ "version" : " pandas-docs/version/1.4"
9
+ },
10
+ {
11
+ "name" : " 1.3 (stable)" ,
12
+ "version" : " docs"
13
+ },
14
+ {
15
+ "name" : " 1.3" ,
16
+ "version" : " pandas-docs/version/1.3"
17
+ },
18
+ {
19
+ "name" : " 1.2" ,
20
+ "version" : " pandas-docs/version/1.2"
21
+ },
22
+ {
23
+ "name" : " 1.1" ,
24
+ "version" : " pandas-docs/version/1.1"
25
+ },
26
+ {
27
+ "name" : " 1.0" ,
28
+ "version" : " pandas-docs/version/1.0"
29
+ }
30
+ ]
You can’t perform that action at this time.
0 commit comments