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 133133
134134# whether to use stable or latest version
135135labscript_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
140142for 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
You can’t perform that action at this time.
0 commit comments