Skip to content

Commit 40b45e9

Browse files
committed
Re-add autosummary template, and update it so it is compatible.
1 parent afae8e0 commit 40b45e9

File tree

2 files changed

+26
-25
lines changed

2 files changed

+26
-25
lines changed
Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,9 @@
11
{{ fullname | escape | underline}}
22

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-
173
.. automodule:: {{ fullname }}
184

195
{% block attributes %}
20-
{% if attributes %}
6+
{%- if attributes %}
217
.. rubric:: {{ _('Module Attributes') }}
228

239
.. autosummary::
@@ -26,10 +12,10 @@
2612
{{ item }}
2713
{%- endfor %}
2814
{% endif %}
29-
{% endblock %}
15+
{%- endblock %}
3016

31-
{% block functions %}
32-
{% if functions %}
17+
{%- block functions %}
18+
{%- if functions %}
3319
.. rubric:: {{ _('Functions') }}
3420

3521
.. autosummary::
@@ -38,10 +24,10 @@
3824
{{ item }}
3925
{%- endfor %}
4026
{% endif %}
41-
{% endblock %}
27+
{%- endblock %}
4228

43-
{% block classes %}
44-
{% if classes %}
29+
{%- block classes %}
30+
{%- if classes %}
4531
.. rubric:: {{ _('Classes') }}
4632

4733
.. autosummary::
@@ -51,10 +37,10 @@
5137
{{ item }}
5238
{%- endfor %}
5339
{% endif %}
54-
{% endblock %}
40+
{%- endblock %}
5541

56-
{% block exceptions %}
57-
{% if exceptions %}
42+
{%- block exceptions %}
43+
{%- if exceptions %}
5844
.. rubric:: {{ _('Exceptions') }}
5945

6046
.. autosummary::
@@ -63,4 +49,18 @@
6349
{{ item }}
6450
{%- endfor %}
6551
{% endif %}
66-
{% endblock %}
52+
{%- endblock %}
53+
54+
{%- block modules %}
55+
{%- if modules %}
56+
.. rubric:: Modules
57+
58+
.. autosummary::
59+
:toctree:
60+
:template: autosummary-module.rst
61+
:recursive:
62+
{% for item in modules %}
63+
{{ item }}
64+
{%- endfor %}
65+
{% endif %}
66+
{%- endblock %}

docs/source/api/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ API Reference
44

55
.. autosummary::
66
:toctree: _autosummary
7+
:template: autosummary-module.rst
78
:recursive:
89

910
labscript_utils

0 commit comments

Comments
 (0)