Skip to content

Commit 2093e2c

Browse files
committed
chore: remove version switcher
1 parent ec88547 commit 2093e2c

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

docs/source/conf.py

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -115,21 +115,13 @@
115115

116116
version = "0.9.0"
117117

118-
switcher_version = version
119-
if ".dev" in version:
120-
switcher_version = "dev/"
121-
else:
122-
# If we are not building dev version of the docs, we are building
123-
# docs for the stable version
124-
switcher_version = ""
125-
126118
html_theme_options = {
127119
"show_toc_level": 2,
128120
"show_nav_level": 2,
129121
"use_edit_page_button": True,
130-
"header_links_before_dropdown": 3,
122+
"header_links_before_dropdown": 4,
131123
"navbar_align": "left",
132-
"navbar_end": ["version-switcher", "theme-switcher", "navbar-icon-links"],
124+
"navbar_end": ["theme-switcher", "navbar-icon-links"],
133125
"icon_links": [
134126
{
135127
"name": "GitHub",
@@ -141,10 +133,6 @@
141133
"text": "Paimon C++",
142134
},
143135
"show_version_warning_banner": True,
144-
"switcher": {
145-
"json_url": "/docs/source/_static/versions.json",
146-
"version_match": switcher_version,
147-
},
148136
}
149137

150138
html_context = {

0 commit comments

Comments
 (0)