Skip to content

Commit 1f71a5b

Browse files
authored
DOC Fix version switcher (#177)
1 parent 2d8f12c commit 1f71a5b

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

doc/conf.py

+4-6
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,10 @@
115115
# Version match must match the 'version' key in version_swticher.json
116116
pattern = re.compile(r'^[0-9]+\.[0-9]+')
117117
version_match = pattern.search(version)
118-
if version_match:
119-
version_match = version_match.group() + ".x"
120-
elif 'dev' in version:
121-
version_match = "dev"
122-
else:
118+
if 'dev' in version:
123119
version_match = version
120+
elif version_match:
121+
version_match = version_match.group() + ".x"
124122

125123
# Material theme options (see theme.conf for more information)
126124
html_theme_options = {
@@ -129,7 +127,7 @@
129127
# pydata theme version switcher config
130128
'navbar_end': ['version-switcher', 'navbar-icon-links'],
131129
'switcher': {
132-
'json_url': 'https://jni.github.io/skan/dev/_static/version_switcher.json',
130+
'json_url': 'https://skeleton-analysis.org/dev/_static/version_switcher.json',
133131
'version_match': version_match,
134132
},
135133
# Set you GA account ID to enable tracking

0 commit comments

Comments
 (0)