Skip to content

Commit d5fca30

Browse files
committed
fix docs conf bugs identified in labscript-suite/labscript-utils#57
1 parent bb9f6f5 commit d5fca30

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/source/conf.py

Lines changed: 4 additions & 2 deletions
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:
@@ -205,7 +207,7 @@ def setup(app):
205207
app.add_config_value('m2r_anonymous_references', False, 'env')
206208
app.add_config_value('m2r_disable_inline_math', False, 'env')
207209
app.add_directive('mdinclude', MdInclude)
208-
app.add_stylesheet('custom.css')
210+
app.add_css_file('custom.css')
209211

210212
# generate the components.rst file dynamically so it points to stable/latest
211213
# of subprojects correctly

0 commit comments

Comments
 (0)