Skip to content

Commit e13c992

Browse files
authored
Merge pull request #79 from dihm/labscript_utils-docs
Update docs to match autogenerating templates used in other modules of labscript.
2 parents e74472c + 461dc9f commit e13c992

31 files changed

+171
-399
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,4 +158,5 @@ conda_packages/
158158
# Sphinx documentation
159159
docs/html/
160160
docs/source/_build/
161-
docs/source/components.rst
161+
docs/source/components.rst
162+
docs/source/api/_autosummary
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{{ fullname | escape | underline}}
2+
3+
.. currentmodule:: {{ module }}
4+
5+
.. autoclass:: {{ objname }}
6+
:members:
7+
:undoc-members:
8+
:show-inheritance:
9+
10+
{% block methods %}
11+
.. automethod:: __init__
12+
13+
{% if methods %}
14+
.. rubric:: {{ _('Methods') }}
15+
16+
.. autosummary::
17+
{% for item in methods %}
18+
~{{ name }}.{{ item }}
19+
{%- endfor %}
20+
{% endif %}
21+
{% endblock %}
22+
23+
{% block attributes %}
24+
{% if attributes %}
25+
.. rubric:: {{ _('Attributes') }}
26+
27+
.. autosummary::
28+
{% for item in attributes %}
29+
~{{ name }}.{{ item }}
30+
{%- endfor %}
31+
{% endif %}
32+
{% endblock %}
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{{ fullname | escape | underline}}
2+
3+
{% block submodules %}
4+
{% if modules %}
5+
.. rubric:: {{ _('Sub-Modules') }}
6+
.. autosummary::
7+
:toctree:
8+
:template: autosummary-module.rst
9+
:recursive:
10+
11+
{% for item in modules %}
12+
{{ item }}
13+
{%- endfor %}
14+
{% endif %}
15+
{% endblock %}
16+
17+
.. automodule:: {{ fullname }}
18+
19+
{% block attributes %}
20+
{% if attributes %}
21+
.. rubric:: {{ _('Module Attributes') }}
22+
23+
.. autosummary::
24+
:toctree:
25+
{% for item in attributes %}
26+
{{ item }}
27+
{%- endfor %}
28+
{% endif %}
29+
{% endblock %}
30+
31+
{% block functions %}
32+
{% if functions %}
33+
.. rubric:: {{ _('Functions') }}
34+
35+
.. autosummary::
36+
:toctree:
37+
{% for item in functions %}
38+
{{ item }}
39+
{%- endfor %}
40+
{% endif %}
41+
{% endblock %}
42+
43+
{% block classes %}
44+
{% if classes %}
45+
.. rubric:: {{ _('Classes') }}
46+
47+
.. autosummary::
48+
:toctree:
49+
:template: autosummary-class.rst
50+
{% for item in classes %}
51+
{{ item }}
52+
{%- endfor %}
53+
{% endif %}
54+
{% endblock %}
55+
56+
{% block exceptions %}
57+
{% if exceptions %}
58+
.. rubric:: {{ _('Exceptions') }}
59+
60+
.. autosummary::
61+
:toctree:
62+
{% for item in exceptions %}
63+
{{ item }}
64+
{%- endfor %}
65+
{% endif %}
66+
{% endblock %}

docs/source/api/connections.rst

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/source/api/dict_diff.rst

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/source/api/double_import_denier.rst

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/source/api/filewatcher.rst

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/source/api/h5_lock.rst

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/source/api/impprof.rst

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/source/api/index.rst

Lines changed: 5 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -2,62 +2,10 @@
22
API Reference
33
*************
44

5-
Labscript Tools
6-
~~~~~~~~~~~~~~~
7-
8-
.. toctree::
9-
:maxdepth: 2
5+
.. autosummary::
6+
:toctree: _autosummary
7+
:template: autosummary-module.rst
8+
:recursive:
109

1110
labscript_utils
12-
connections
13-
dict_diff
14-
labconfig
15-
settings
16-
testing_utils
17-
properties
18-
unitconversions
19-
20-
Communications
21-
~~~~~~~~~~~~~~
22-
23-
.. toctree::
24-
:maxdepth: 2
25-
26-
h5_lock
27-
ls_zprocess
28-
remote
29-
shared_drive
30-
zlock
31-
zlog
32-
33-
GUI
34-
~~~~
35-
36-
.. toctree::
37-
:maxdepth: 2
38-
39-
splash
40-
qtwidgets
41-
42-
Logging and Profiling
43-
~~~~~~~~~~~~~~~~~~~~~
44-
45-
.. toctree::
46-
:maxdepth: 2
47-
48-
impprof
49-
memprof
50-
setup_logging
51-
tracelog
52-
53-
54-
Module and File Tools
55-
~~~~~~~~~~~~~~~~~~~~~
56-
57-
.. toctree::
58-
:maxdepth: 2
59-
60-
double_import_denier
61-
filewatcher
62-
modulewatcher
63-
versions
11+
labscript_profile

docs/source/api/labconfig.rst

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/source/api/labscript_utils.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.

docs/source/api/ls_zprocess.rst

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/source/api/memprof.rst

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/source/api/modulewatcher.rst

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/source/api/properties.rst

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/source/api/qtwidgets.rst

Lines changed: 0 additions & 78 deletions
This file was deleted.

docs/source/api/remote.rst

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/source/api/settings.rst

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)