Skip to content

Commit

Permalink
Doc updates
Browse files Browse the repository at this point in the history
Renamed API reference URL to match labscript utils and updated config to fix bugs identified in labscript-suite/labscript-utils#57
  • Loading branch information
philipstarkey committed Jun 20, 2020
1 parent 0362fa7 commit 88ce952
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 3 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 4 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,10 @@

# whether to use stable or latest version
labscript_suite_doc_version = os.environ.get('READTHEDOCS_VERSION', 'latest')
if labscript_suite_doc_version not in ['stable', 'latest']:
if '.' in labscript_suite_doc_version:
labscript_suite_doc_version = 'stable'
elif labscript_suite_doc_version not in ['stable', 'latest']:
labscript_suite_doc_version = 'latest'

# add intersphinx references for each component
for ls_prog in labscript_suite_programs:
Expand Down Expand Up @@ -204,7 +206,7 @@ def setup(app):
app.add_config_value('m2r_anonymous_references', False, 'env')
app.add_config_value('m2r_disable_inline_math', False, 'env')
app.add_directive('mdinclude', MdInclude)
app.add_stylesheet('custom.css')
app.add_css_file('custom.css')

# generate the components.rst file dynamically so it points to stable/latest
# of subprojects correctly
Expand Down
2 changes: 1 addition & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ labscript

introduction
connection_table
api_reference/index
api/index

.. toctree::
:maxdepth: 2
Expand Down

0 comments on commit 88ce952

Please sign in to comment.