File tree Expand file tree Collapse file tree 10 files changed +111
-46
lines changed Expand file tree Collapse file tree 10 files changed +111
-46
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ instance/
77
77
78
78
# Sphinx documentation
79
79
docs /_build /
80
+ docs /source /api /_autosummary /
80
81
81
82
# PyBuilder
82
83
.pybuilder /
Original file line number Diff line number Diff line change
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 %}
Original file line number Diff line number Diff line change
1
+ {{ fullname | escape | underline}}
2
+
3
+ .. automodule :: {{ fullname }}
4
+
5
+ {% block attributes %}
6
+ {% if attributes %}
7
+ .. rubric :: {{ _('Module Attributes') }}
8
+
9
+ .. autosummary ::
10
+ :toctree:
11
+ {% for item in attributes %}
12
+ {{ item }}
13
+ {%- endfor %}
14
+ {% endif %}
15
+ {% endblock %}
16
+
17
+ {% block functions %}
18
+ {% if functions %}
19
+ .. rubric :: {{ _('Functions') }}
20
+
21
+ .. autosummary ::
22
+ :toctree:
23
+ {% for item in functions %}
24
+ {{ item }}
25
+ {%- endfor %}
26
+ {% endif %}
27
+ {% endblock %}
28
+
29
+ {% block classes %}
30
+ {% if classes %}
31
+ .. rubric :: {{ _('Classes') }}
32
+
33
+ .. autosummary ::
34
+ :toctree:
35
+ :template: autosummary-class.rst
36
+ {% for item in classes %}
37
+ {{ item }}
38
+ {%- endfor %}
39
+ {% endif %}
40
+ {% endblock %}
41
+
42
+ {% block exceptions %}
43
+ {% if exceptions %}
44
+ .. rubric :: {{ _('Exceptions') }}
45
+
46
+ .. autosummary ::
47
+ :toctree:
48
+ {% for item in exceptions %}
49
+ {{ item }}
50
+ {%- endfor %}
51
+ {% endif %}
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 %}
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2
2
API Reference
3
3
=============
4
4
5
- .. toctree ::
5
+ .. autosummary ::
6
+ :toctree: _autosummary
7
+ :template: autosummary-module.rst
8
+ :recursive:
9
+
10
+ labscript.labscript
11
+ labscript.functions
12
+
13
+ .. toctree:
6
14
:maxdepth: 2
7
15
8
16
device
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 38
38
# ones.
39
39
extensions = [
40
40
"sphinx.ext.autodoc" ,
41
+ "sphinx.ext.autosummary" ,
41
42
"sphinx.ext.autosectionlabel" ,
42
43
"sphinx.ext.intersphinx" ,
43
44
"sphinx.ext.napoleon" ,
48
49
]
49
50
50
51
autodoc_typehints = 'description'
52
+ autosummary_generate = True
53
+ add_module_names = False
51
54
52
55
# Prefix each autosectionlabel with the name of the document it is in and a colon
53
56
autosectionlabel_prefix_document = True
You can’t perform that action at this time.
0 commit comments