1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
|
{% if obj.members %}
{{ log.debug("Rendering children of " + obj.path) }}
<div class="doc doc-children">
{# Notice inherited members false #}
{% with attributes = obj.attributes|filter_objects(
filters=config.filters,
members_list=members_list,
inherited_members=false,
keep_no_docstrings=config.show_if_no_docstring,
) %}
<table>
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Description</th>
<th>Default</th>
</tr>
</thead>
<tbody>
{% for attribute in attributes %}
<tr>
<td><code>{{ attribute.name }}</code></td>
<td>
{% if attribute.annotation %}
{% with expression = attribute.annotation %}
<code>{% include "expression.html.jinja" with context %}</code>
{% endwith %}
{% endif %}
</td>
<td>
<div class="doc-md-description">
{{ attribute.docstring.value }}
</div>
</td>
<td>
{% if attribute.value %}
{% with expression = attribute.value %}
<code>{% include "expression.html.jinja" with context %}</code>
{% endwith %}
{% else %}
<em>-</em>
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
{%endwith %}
{% with classes = obj.classes|filter_objects(
filters=config.filters,
members_list=members_list,
inherited_members=false,
keep_no_docstrings=config.show_if_no_docstring,
) %}
{% for class in classes %}
{% filter heading(heading_level, id=html_id ~ "-attributes") %}{{class.name}}{% endfilter %}
<div class="doc doc-children doc-contents">
{% set root = False %}
{% set heading_level = heading_level + 1 %}
{% set old_obj = obj %}
{% set obj = class %}
{% include "attributes_table.html.jinja" with context %}
{% set obj = old_obj %}
</div>
{% endfor %}
{%endwith %}
</div>
{% endif %}
|