Skip to content

Commit 5e02b01

Browse files
Merge pull request #57 from philipstarkey/master
Changed URL for API reference to be shorter Fixed bug with readthedocs auto PR build
2 parents 3f78207 + 8b19766 commit 5e02b01

File tree

5 files changed

+5
-3
lines changed

5 files changed

+5
-3
lines changed
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
@@ -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

docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This documentation is primarily for developers who might want to use this common
1414
:hidden:
1515
:caption: DOCUMENTATION
1616

17-
api_reference/index
17+
API Reference <api/index>
1818

1919
.. toctree::
2020
:maxdepth: 2

0 commit comments

Comments
 (0)