Debian Codegraph @

docs/_templates/custom-module-template.rst

raw
1 ..
2 Template based in the original one, with some changes
3 proposed on https://stackoverflow.com/a/62613202/3887420
4
5 {{ fullname | escape | underline}}
6
7 .. automodule:: {{ fullname }}
8
9 {% block attributes %}
10 {% if attributes %}
11 .. rubric:: {{ _('Module Attributes') }}
12
13 .. autosummary::
14 :toctree:
15 {% for item in attributes %}
16 {{ item }}
17 {%- endfor %}
18 {% endif %}
19 {% endblock %}
20
21 {% block functions %}
22 {% if functions %}
23 .. rubric:: {{ _('Functions') }}
24
25 .. autosummary::
26 :toctree:
27 {% for item in functions %}
28 {{ item }}
29 {%- endfor %}
30 {% endif %}
31 {% endblock %}
32
33 {% block classes %}
34 {% if classes %}
35 .. rubric:: {{ _('Classes') }}
36
37 .. autosummary::
38 :toctree:
39 :template: custom-class-template.rst
40 {% for item in classes %}
41 {{ item }}
42 {%- endfor %}
43 {% endif %}
44 {% endblock %}
45
46 {% block exceptions %}
47 {% if exceptions %}
48 .. rubric:: {{ _('Exceptions') }}
49
50 .. autosummary::
51 :toctree:
52 {% for item in exceptions %}
53 {{ item }}
54 {%- endfor %}
55 {% endif %}
56 {% endblock %}
57
58 {% block modules %}
59 {% if modules %}
60 .. rubric:: Modules
61
62 .. autosummary::
63 :toctree:
64 :template: custom-module-template.rst
65 :recursive:
66 {% for item in modules %}
67 {{ item }}
68 {%- endfor %}
69 {% endif %}
70 {% endblock %}