Skip to content

Commit 56fdd63

Browse files
committed
Fixed sphinx conf to detect PR builds and link to 'latest' instead of stable
1 parent 9889d19 commit 56fdd63

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/source/conf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,10 @@
133133

134134
# whether to use stable or latest version
135135
labscript_suite_doc_version = os.environ.get('READTHEDOCS_VERSION', 'latest')
136-
if labscript_suite_doc_version not in ['stable', 'latest']:
136+
if '.' in labscript_suite_doc_version:
137137
labscript_suite_doc_version = 'stable'
138+
elif labscript_suite_doc_version not in ['stable', 'latest']:
139+
labscript_suite_doc_version = 'latest'
138140

139141
# add intersphinx references for each component
140142
for ls_prog in labscript_suite_programs:

0 commit comments

Comments
 (0)