Skip to content

Commit 3f2b8b0

Browse files
authored
Update conf.py
- version control
1 parent 14d9d5c commit 3f2b8b0

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/source/conf.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,20 @@ def get_years(start_year=2021):
144144
# a list of builtin themes.
145145
html_theme = "pydata_sphinx_theme"
146146

147+
html_context = {
148+
"default_mode": "light",
149+
"switcher": {
150+
"version_match": "latest", # Adjust this dynamically per version
151+
"versions": [
152+
("latest", "/latest/"),
153+
("v0.2.0", "/v0.2.0/"),
154+
("v0.3.0", "/v0.3.0/"),
155+
("v0.4.0", "/v0.4.0/"),
156+
("v0.5.0rc1", "/v0.5.0rc1/"),
157+
],
158+
},
159+
}
160+
147161
# More info on theme options:
148162
# https://pydata-sphinx-theme.readthedocs.io/en/latest/user_guide/configuring.html
149163
html_theme_options = {

0 commit comments

Comments
 (0)