File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,12 +7,18 @@ SPHINXOPTS ?=
77SPHINXBUILD ?= sphinx-build
88SOURCEDIR = source
99BUILDDIR = build
10+ AUTOSUMMARYDIR = source/api/_autosummary
1011
1112# Put it first so that "make" without argument is like "make help".
1213help :
1314 @$(SPHINXBUILD ) -M help " $( SOURCEDIR) " " $( BUILDDIR) " $(SPHINXOPTS ) $(O )
1415
15- .PHONY : help Makefile
16+ clean :
17+ @echo " Removing autosummary directory"
18+ @rm -rf $(AUTOSUMMARYDIR )
19+ @$(SPHINXBUILD ) -M clean " $( SOURCEDIR) " " $( BUILDDIR) " $(SPHINXOPTS ) $(O )
20+
21+ .PHONY : help clean Makefile
1622
1723# Catch-all target: route all unknown targets to Sphinx using the new
1824# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
Original file line number Diff line number Diff line change @@ -9,8 +9,10 @@ if "%SPHINXBUILD%" == "" (
99)
1010set SOURCEDIR = source
1111set BUILDDIR = build
12+ set AUTOSUMMARYDIR = source\api\_autosummary
1213
1314if " %1 " == " " goto help
15+ if " %1 " == " clean" goto clean
1416
1517%SPHINXBUILD% > NUL 2 > NUL
1618if errorlevel 9009 (
@@ -30,6 +32,12 @@ goto end
3032
3133:help
3234%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
35+ goto end
36+
37+ :clean
38+ echo Removing autosummary directory
39+ rmdir /s/q %AUTOSUMMARYDIR%
40+ %SPHINXBUILD% -M clean %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
3341
3442:end
3543popd
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ API Reference
44
55.. autosummary ::
66 :toctree: _autosummary
7- :template: autosummary-module.rst
87 :recursive:
98
109 lyse
Original file line number Diff line number Diff line change 1414import os
1515from pathlib import Path
1616from jinja2 import FileSystemLoader , Environment
17- try :
18- import importlib .metadata as importlib_metadata
19- except ImportError :
20- import importlib_metadata
21-
17+ import importlib .metadata
2218# -- Project information (unique to each project) -------------------------------------
2319
2420project = "lyse"
2521copyright = "2024, labscript suite"
2622author = "labscript suite contributors"
2723
2824# The full version, including alpha/beta/rc tags
29- version = importlib_metadata .version ('lyse' )
25+ version = importlib . metadata .version ('lyse' )
3026
3127release = version
3228
8783exclude_patterns = []
8884
8985# The suffix(es) of source filenames.
90- source_suffix = ['.rst' , '.md' ]
86+ source_suffix = {
87+ '.rst' : 'restructuredtext' ,
88+ '.md' : 'markdown' ,
89+ }
9190
9291# The master toctree document.
9392master_doc = 'index'
108107 'h5py' : ('https://docs.h5py.org/en/stable/' , None ),
109108 'pydaqmx' : ('https://pythonhosted.org/PyDAQmx/' , None ),
110109 'qt' : (
111- '' ,
110+ 'https://riverbankcomputing.com/static/Docs/PyQt5/ ' ,
112111 'pyqt5-modified-objects.inv' ,
113112 ) # from https://github.com/MSLNZ/msl-qt/blob/master/docs/create_pyqt_objects.py
114113 # under MIT License
Original file line number Diff line number Diff line change 33 You can adapt this file completely to your liking, but it should at least
44 contain the root `toctree` directive.
55
6- lyse
7- ====
6+ lyse | version |
7+ ==============
88
99**lyse ** is a component of the labscript suite. It is a combination API and GUI interface that leverages the API to run user provided analysis scripts of experiment shots. This documentation provides a brief outline of the use of lyse.
1010
Original file line number Diff line number Diff line change @@ -55,9 +55,9 @@ Tracker = "https://github.com/labscript-suite/lyse/issues/"
5555[project .optional-dependencies ]
5656docs = [
5757 " PyQt5" ,
58- " Sphinx==7 .2.6 " ,
59- " sphinx-rtd-theme==2 .0.0 " ,
60- " myst_parser==2 .0.0 " ,
58+ " Sphinx==8 .2.3 " ,
59+ " sphinx-rtd-theme==3 .0.2 " ,
60+ " myst_parser==4 .0.1 " ,
6161]
6262
6363[project .scripts ]
Original file line number Diff line number Diff line change 99 os : ubuntu-22.04
1010 tools :
1111 python : " 3.11"
12+ jobs :
13+ # ensure full git repo is pulled so setuptools_scm gets versions correctly on install
14+ # https://docs.readthedocs.com/platform/stable/build-customization.html#unshallow-git-clone
15+ post_checkout :
16+ - git fetch --unshallow || true
17+ - git config remote.origin.fetch '+refs/heads/*:refs/remotes/origin/*' || true
18+ - git fetch --all --tags || true
1219
1320# Build documentation in the docs/ directory with Sphinx
1421sphinx :
You can’t perform that action at this time.
0 commit comments