|
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(check_name=False) %} |
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 members_list is not none or class.is_public(check_name=False) %} |
55 |
| - {% include class|get_template with context %} |
56 |
| - {% endif %} |
57 |
| - {% endfor %} |
58 |
| - {% endwith %} |
59 |
| - {% endif %} |
60 |
| - {% endwith %} |
61 |
| - |
62 |
| - {% with functions = obj.functions|filter_objects( |
63 |
| - filters=config.filters, |
64 |
| - members_list=members_list, |
65 |
| - inherited_members=config.inherited_members, |
66 |
| - keep_no_docstrings=config.show_if_no_docstring, |
67 |
| - ) %} |
68 |
| - {% if functions %} |
69 |
| - {% if config.show_category_heading %} |
70 |
| - {% filter heading(heading_level, id=html_id ~ "-functions") %}Functions{% endfilter %} |
71 |
| - {% endif %} |
72 |
| - {% with heading_level = heading_level + extra_level %} |
73 |
| - {% for function in functions|order_members(config.members_order, members_list) %} |
74 |
| - {% if not (obj.kind.value == "class" and function.name == "__init__" and config.merge_init_into_class) %} |
75 |
| - {% if members_list is not none or function.is_public(check_name=False) %} |
76 |
| - {% include function|get_template with context %} |
77 |
| - {% endif %} |
78 |
| - {% endif %} |
79 |
| - {% endfor %} |
80 |
| - {% endwith %} |
81 |
| - {% endif %} |
82 |
| - {% endwith %} |
83 |
| - |
84 |
| - {% if config.show_submodules %} |
85 |
| - {% with modules = obj.modules|filter_objects( |
86 |
| - filters=config.filters, |
87 |
| - members_list=members_list, |
88 |
| - inherited_members=config.inherited_members, |
89 |
| - keep_no_docstrings=config.show_if_no_docstring, |
90 |
| - ) %} |
91 |
| - {% if modules %} |
92 |
| - {% if config.show_category_heading %} |
93 |
| - {% filter heading(heading_level, id=html_id ~ "-modules") %}Modules{% endfilter %} |
94 |
| - {% endif %} |
95 |
| - {% with heading_level = heading_level + extra_level %} |
96 |
| - {% for module in modules|order_members(config.members_order.alphabetical, members_list) %} |
97 |
| - {% if members_list is not none or module.is_public(check_name=False) %} |
98 |
| - {% include module|get_template with context %} |
99 |
| - {% endif %} |
100 |
| - {% endfor %} |
101 |
| - {% endwith %} |
102 |
| - {% endif %} |
103 |
| - {% endwith %} |
104 |
| - {% endif %} |
105 |
| - |
106 |
| - {% endwith %} |
107 |
| - |
108 |
| - {% else %} |
109 |
| - |
110 |
| - {% for child in obj.all_members |
111 |
| - |filter_objects( |
112 |
| - filters=config.filters, |
113 |
| - members_list=members_list, |
114 |
| - inherited_members=config.inherited_members, |
115 |
| - keep_no_docstrings=config.show_if_no_docstring, |
116 |
| - ) |
117 |
| - |order_members(config.members_order, members_list) |
118 |
| - %} |
119 |
| - |
120 |
| - {% if not (obj.is_class and child.name == "__init__" and config.merge_init_into_class) %} |
121 |
| - |
122 |
| - {% if members_list is not none or child.is_public(check_name=False) %} |
123 |
| - {% if child.is_attribute %} |
124 |
| - {% with attribute = child %} |
125 |
| - {% include attribute|get_template with context %} |
126 |
| - {% endwith %} |
127 |
| - |
128 |
| - {% elif child.is_class %} |
129 |
| - {% with class = child %} |
130 |
| - {% include class|get_template with context %} |
131 |
| - {% endwith %} |
132 |
| - |
133 |
| - {% elif child.is_function %} |
134 |
| - {% with function = child %} |
135 |
| - {% include function|get_template with context %} |
136 |
| - {% endwith %} |
137 |
| - |
138 |
| - {% elif child.is_module and config.show_submodules %} |
139 |
| - {% with module = child %} |
140 |
| - {% include module|get_template with context %} |
141 |
| - {% endwith %} |
142 |
| - |
143 |
| - {% endif %} |
144 |
| - {% endif %} |
145 |
| - |
146 |
| - {% endif %} |
147 |
| - |
148 |
| - {% endfor %} |
149 |
| - |
150 |
| - {% endif %} |
151 |
| - |
152 |
| - </div> |
153 |
| - |
154 |
| -{% endif %} |
| 1 | +{% extends "_base/children.html.jinja" %} |
| 2 | + |
| 3 | +{% block logs scoped %} |
| 4 | + {{ super() }} |
| 5 | + {# TODO: Switch to a warning after some time. #} |
| 6 | + {{ log.info( |
| 7 | + "DeprecationWarning: Extending '_base/children.html' is deprecated, extend '_base/children.html.jinja' instead. " ~ |
| 8 | + "After some time, this message will be logged as a warning, causing strict builds to fail.", |
| 9 | + once=True, |
| 10 | + ) }} |
| 11 | +{% endblock logs %} |
0 commit comments