Skip to content

Commit 88ce952

Browse files
committed
Doc updates
Renamed API reference URL to match labscript utils and updated config to fix bugs identified in labscript-suite/labscript-utils#57
1 parent 0362fa7 commit 88ce952

File tree

8 files changed

+5
-3
lines changed

8 files changed

+5
-3
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

docs/source/conf.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,10 @@
132132

133133
# whether to use stable or latest version
134134
labscript_suite_doc_version = os.environ.get('READTHEDOCS_VERSION', 'latest')
135-
if labscript_suite_doc_version not in ['stable', 'latest']:
135+
if '.' in labscript_suite_doc_version:
136136
labscript_suite_doc_version = 'stable'
137+
elif labscript_suite_doc_version not in ['stable', 'latest']:
138+
labscript_suite_doc_version = 'latest'
137139

138140
# add intersphinx references for each component
139141
for ls_prog in labscript_suite_programs:
@@ -204,7 +206,7 @@ def setup(app):
204206
app.add_config_value('m2r_anonymous_references', False, 'env')
205207
app.add_config_value('m2r_disable_inline_math', False, 'env')
206208
app.add_directive('mdinclude', MdInclude)
207-
app.add_stylesheet('custom.css')
209+
app.add_css_file('custom.css')
208210

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

docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ labscript
1515

1616
introduction
1717
connection_table
18-
api_reference/index
18+
api/index
1919

2020
.. toctree::
2121
:maxdepth: 2

0 commit comments

Comments
 (0)