Debian Codegraph @

docs/templates/python/material/anta_test.html.jinja

raw
1 {% if obj.members %}
2 {{ log.debug("Rendering children of " + obj.path) }}
3
4 <div class="doc doc-children">
5
6 {% if root_members %}
7 {% set members_list = config.members %}
8 {% else %}
9 {% set members_list = none %}
10 {% endif %}
11
12 {% if config.group_by_category %}
13
14 {% with %}
15
16 {% if config.show_category_heading %}
17 {% set extra_level = 1 %}
18 {% else %}
19 {% set extra_level = 0 %}
20 {% endif %}
21
22 {% with attributes = obj.attributes|filter_objects(
23 filters=config.filters,
24 members_list=members_list,
25 inherited_members=config.inherited_members,
26 keep_no_docstrings=config.show_if_no_docstring,
27 ) %}
28 {% if attributes %}
29 {% if config.show_category_heading %}
30 {% filter heading(heading_level, id=html_id ~ "-attributes") %}Attributes{% endfilter %}
31 {% endif %}
32 {% with heading_level = heading_level + extra_level %}
33 {% for attribute in attributes|order_members(config.members_order, members_list) %}
34 {% if members_list is not none or attribute.is_public %}
35 {% include attribute|get_template with context %}
36 {% endif %}
37 {% endfor %}
38 {% endwith %}
39 {% endif %}
40 {% endwith %}
41
42 {% with classes = obj.classes|filter_objects(
43 filters=config.filters,
44 members_list=members_list,
45 inherited_members=config.inherited_members,
46 keep_no_docstrings=config.show_if_no_docstring,
47 ) %}
48 {% if classes %}
49 {% if config.show_category_heading %}
50 {% filter heading(heading_level, id=html_id ~ "-classes") %}Classes{% endfilter %}
51 {% endif %}
52 {% with heading_level = heading_level + extra_level %}
53 {% for class in classes|order_members(config.members_order, members_list) %}
54 {% if class.name == "Input" %}
55 {% filter heading(heading_level, id=html_id ~ "-attributes") %}Inputs{% endfilter %}
56 {% set root = False %}
57 {% set heading_level = heading_level + 1 %}
58 {% set old_obj = obj %}
59 {% set obj = class %}
60 {% include "attributes_table.html.jinja" with context %}
61 {% set obj = old_obj %}
62 {% else %}
63 {% if members_list is not none or class.is_public %}
64 {% include class|get_template with context %}
65 {% endif %}
66 {% endif %}
67 {% endfor %}
68 {% endwith %}
69 {% endif %}
70 {% endwith %}
71
72 {% with functions = obj.functions|filter_objects(
73 filters=config.filters,
74 members_list=members_list,
75 inherited_members=config.inherited_members,
76 keep_no_docstrings=config.show_if_no_docstring,
77 ) %}
78 {% if functions %}
79 {% if config.show_category_heading %}
80 {% filter heading(heading_level, id=html_id ~ "-functions") %}Functions{% endfilter %}
81 {% endif %}
82 {% with heading_level = heading_level + extra_level %}
83 {% for function in functions|order_members(config.members_order, members_list) %}
84 {% if not (obj.kind.value == "class" and function.name == "__init__" and config.merge_init_into_class) %}
85 {% if members_list is not none or function.is_public %}
86 {% include function|get_template with context %}
87 {% endif %}
88 {% endif %}
89 {% endfor %}
90 {% endwith %}
91 {% endif %}
92 {% endwith %}
93
94 {% if config.show_submodules %}
95 {% with modules = obj.modules|filter_objects(
96 filters=config.filters,
97 members_list=members_list,
98 inherited_members=config.inherited_members,
99 keep_no_docstrings=config.show_if_no_docstring,
100 ) %}
101 {% if modules %}
102 {% if config.show_category_heading %}
103 {% filter heading(heading_level, id=html_id ~ "-modules") %}Modules{% endfilter %}
104 {% endif %}
105 {% with heading_level = heading_level + extra_level %}
106 {% for module in modules|order_members(config.members_order.alphabetical, members_list) %}
107 {% if members_list is not none or module.is_public %}
108 {% include module|get_template with context %}
109 {% endif %}
110 {% endfor %}
111 {% endwith %}
112 {% endif %}
113 {% endwith %}
114 {% endif %}
115
116 {% endwith %}
117
118 {% else %}
119
120 {% for child in obj.all_members
121 |filter_objects(
122 filters=config.filters,
123 members_list=members_list,
124 inherited_members=config.inherited_members,
125 keep_no_docstrings=config.show_if_no_docstring,
126 )
127 |order_members(config.members_order, members_list)
128 %}
129
130 {% if not (obj.is_class and child.name == "__init__" and config.merge_init_into_class) %}
131
132 {% if members_list is not none or child.is_public %}
133 {% if child.is_attribute %}
134 {% with attribute = child %}
135 {% include attribute|get_template with context %}
136 {% endwith %}
137
138 {% elif child.is_class %}
139 {% with class = child %}
140 {% include class|get_template with context %}
141 {% endwith %}
142
143 {% elif child.is_function %}
144 {% with function = child %}
145 {% include function|get_template with context %}
146 {% endwith %}
147
148 {% elif child.is_module and config.show_submodules %}
149 {% with module = child %}
150 {% include module|get_template with context %}
151 {% endwith %}
152
153 {% endif %}
154 {% endif %}
155
156 {% endif %}
157
158 {% endfor %}
159
160 {% endif %}
161
162 </div>
163 {% endif %}