File tree Expand file tree Collapse file tree 6 files changed +32
-10
lines changed Expand file tree Collapse file tree 6 files changed +32
-10
lines changed Original file line number Diff line number Diff line change @@ -7,12 +7,18 @@ SPHINXOPTS ?=
7
7
SPHINXBUILD ?= sphinx-build
8
8
SOURCEDIR = source
9
9
BUILDDIR = build
10
+ AUTOSUMMARYDIR = source/api/_autosummary
10
11
11
12
# Put it first so that "make" without argument is like "make help".
12
13
help :
13
14
@$(SPHINXBUILD ) -M help " $( SOURCEDIR) " " $( BUILDDIR) " $(SPHINXOPTS ) $(O )
14
15
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
16
22
17
23
# Catch-all target: route all unknown targets to Sphinx using the new
18
24
# "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%" == "" (
9
9
)
10
10
set SOURCEDIR = source
11
11
set BUILDDIR = build
12
+ set AUTOSUMMARYDIR = source\api\_autosummary
12
13
13
14
if " %1 " == " " goto help
15
+ if " %1 " == " clean" goto clean
14
16
15
17
%SPHINXBUILD% > NUL 2 > NUL
16
18
if errorlevel 9009 (
@@ -30,6 +32,12 @@ goto end
30
32
31
33
:help
32
34
%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%
33
41
34
42
:end
35
43
popd
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ API Reference
4
4
5
5
.. autosummary ::
6
6
:toctree: _autosummary
7
- :template: autosummary-module.rst
8
7
:recursive:
9
8
10
9
labscript_utils
Original file line number Diff line number Diff line change 14
14
import os
15
15
from pathlib import Path
16
16
from jinja2 import FileSystemLoader , Environment
17
+ import importlib .metadata
17
18
18
19
# -- Project information (unique to each project) -------------------------------------
19
20
22
23
author = "labscript suite contributors"
23
24
24
25
# The full version, including alpha/beta/rc tags
25
- from labscript_utils import __version__ as version # noqa: E402
26
+ version = importlib . metadata . version ( 'labscript-utils' )
26
27
27
28
release = version
28
29
103
104
'h5py' : ('https://docs.h5py.org/en/stable/' , None ),
104
105
'pydaqmx' : ('https://pythonhosted.org/PyDAQmx/' , None ),
105
106
'qt' : (
106
- '' ,
107
+ 'https://riverbankcomputing.com/static/Docs/PyQt5/ ' ,
107
108
'pyqt5-modified-objects.inv' ,
108
109
) # from https://github.com/MSLNZ/msl-qt/blob/master/docs/create_pyqt_objects.py
109
110
# under MIT License
Original file line number Diff line number Diff line change @@ -56,9 +56,9 @@ Tracker = "https://github.com/labscript-suite/labscript-utils/issues/"
56
56
[project .optional-dependencies ]
57
57
docs = [
58
58
" PyQt5" ,
59
- " Sphinx==7 .2.6 " ,
60
- " sphinx-rtd-theme==2 .0.0 " ,
61
- " myst_parser==2 .0.0 " ,
59
+ " Sphinx==8 .2.3 " ,
60
+ " sphinx-rtd-theme==3 .0.1 " ,
61
+ " myst_parser==4 .0.1 " ,
62
62
]
63
63
64
64
[project .scripts ]
Original file line number Diff line number Diff line change 9
9
os : ubuntu-22.04
10
10
tools :
11
11
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
12
19
13
20
# Build documentation in the docs/ directory with Sphinx
14
21
sphinx :
@@ -17,9 +24,10 @@ sphinx:
17
24
fail_on_warning : false
18
25
19
26
# Optionally build your docs in additional formats such as PDF
20
- formats :
21
- - pdf
22
- - epub
27
+ # Disable since h5_lock breaks build when sphinx is run twice in a row
28
+ # formats:
29
+ # - pdf
30
+ # - epub
23
31
24
32
# Optionally set the requirements required to build your docs
25
33
python :
You can’t perform that action at this time.
0 commit comments