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/
7777
7878# Sphinx documentation
7979docs /_build /
80+ docs /source /api /_autosummary /
8081
8182# PyBuilder
8283.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 22API Reference
33=============
44
5- .. toctree ::
5+ .. autosummary ::
6+ :toctree: _autosummary
7+ :template: autosummary-module.rst
8+ :recursive:
9+
10+ labscript.labscript
11+ labscript.functions
12+
13+ .. toctree:
614 :maxdepth: 2
715
816 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 3838# ones.
3939extensions = [
4040 "sphinx.ext.autodoc" ,
41+ "sphinx.ext.autosummary" ,
4142 "sphinx.ext.autosectionlabel" ,
4243 "sphinx.ext.intersphinx" ,
4344 "sphinx.ext.napoleon" ,
4849]
4950
5051autodoc_typehints = 'description'
52+ autosummary_generate = True
53+ add_module_names = False
5154
5255# Prefix each autosectionlabel with the name of the document it is in and a colon
5356autosectionlabel_prefix_document = True
You can’t perform that action at this time.
0 commit comments