Skip to content

Commit 56294ea

Browse files
committed
if docs version can't be determined, default to displaying latest
1 parent 62d166e commit 56294ea

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/doc_sources/conf.py.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,10 @@ if generate_multiversion == "ON":
164164
(version, DOC_SITE_NAME + version + "/index.html")
165165
)
166166

167+
if html_context["current_version"] not in versions:
168+
html_context["current_version"] = "latest"
169+
170+
# override furo sidebar when multiversion is on to add the version dropdown
167171
html_sidebars = {
168172
"**": [
169173
"sidebar/scroll-start.html",

0 commit comments

Comments
 (0)