File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 133
133
134
134
# whether to use stable or latest version
135
135
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 :
137
137
labscript_suite_doc_version = 'stable'
138
+ elif labscript_suite_doc_version not in ['stable' , 'latest' ]:
139
+ labscript_suite_doc_version = 'latest'
138
140
139
141
# add intersphinx references for each component
140
142
for ls_prog in labscript_suite_programs :
@@ -205,7 +207,7 @@ def setup(app):
205
207
app .add_config_value ('m2r_anonymous_references' , False , 'env' )
206
208
app .add_config_value ('m2r_disable_inline_math' , False , 'env' )
207
209
app .add_directive ('mdinclude' , MdInclude )
208
- app .add_stylesheet ('custom.css' )
210
+ app .add_css_file ('custom.css' )
209
211
210
212
# generate the components.rst file dynamically so it points to stable/latest
211
213
# of subprojects correctly
You can’t perform that action at this time.
0 commit comments