Skip to content

Commit 9b6d305

Browse files
authored
Temporarily disable version switcher (#151)
1 parent 68fd5a3 commit 9b6d305

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

doc/conf.py

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,7 @@
147147

148148
# The following is from the pydata-sphinx-theme settings (https://github.com/pydata/pydata-sphinx-theme/blob/main/docs/conf.py)
149149
# Define the json_url for our version switcher.
150-
json_url = (
151-
"https://github.com/xarray-contrib/xbatcher/blob/main/doc/_static/switcher.json"
152-
)
150+
json_url = "https://xbatcher.readthedocs.io/en/latest/_static/switcher.json"
153151

154152
# Define the version we use for matching in the version switcher.
155153
version_match = os.environ.get("READTHEDOCS_VERSION")
@@ -175,22 +173,18 @@
175173
html_theme_options = {
176174
"search_bar_position": "sidebar",
177175
"github_url": "https://github.com/xarray-contrib/xbatcher",
178-
"switcher": {
179-
"json_url": json_url,
180-
"version_match": version_match,
181-
},
176+
# "switcher": {
177+
# "json_url": json_url,
178+
# "version_match": version_match,
179+
# },
182180
"logo": {
183181
"text": "Xbatcher",
184182
"alt_text": "Xbatcher",
185183
},
186184
"navbar_align": "left", # [left, content, right] For testing that the navbar items align properly
187-
"navbar_center": ["version-switcher", "navbar-nav"],
185+
"navbar_center": ["navbar-nav"],
188186
}
189187

190-
# Define the json_url for our version switcher.
191-
192-
json_url = "https://xbatcher.readthedocs.io/en/latest/_static/switcher.json"
193-
194188
# Add any paths that contain custom themes here, relative to this directory.
195189
# html_theme_path = []
196190

@@ -213,7 +207,7 @@
213207
# Add any paths that contain custom static files (such as style sheets) here,
214208
# relative to this directory. They are copied after the builtin static files,
215209
# so a file named "default.css" will overwrite the builtin "default.css".
216-
# html_static_path = ['_static']
210+
html_static_path = ["_static"]
217211

218212
# Add any extra paths that contain custom files (such as robots.txt or
219213
# .htaccess) here, relative to this directory. These files are copied

0 commit comments

Comments
 (0)