Skip to content

Commit 6cd5d06

Browse files
committed
fix docs conf bugs identified in labscript-suite/labscript-utils#57
1 parent 1fc61cb commit 6cd5d06

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy