summaryrefslogtreecommitdiffstats
path: root/docs/templates/python/material/attributes_table.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 08:36:44 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 08:36:50 +0000
commit7763cc454d686d51bf2e0ccc1f2ccf7d62a0d625 (patch)
treef36d2006dd01bd01a069956741d831d9d5633377 /docs/templates/python/material/attributes_table.html
parentAdding debian version 0.13.0-1. (diff)
downloadanta-7763cc454d686d51bf2e0ccc1f2ccf7d62a0d625.tar.xz
anta-7763cc454d686d51bf2e0ccc1f2ccf7d62a0d625.zip
Merging upstream version 0.14.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'docs/templates/python/material/attributes_table.html')
-rw-r--r--docs/templates/python/material/attributes_table.html70
1 files changed, 70 insertions, 0 deletions
diff --git a/docs/templates/python/material/attributes_table.html b/docs/templates/python/material/attributes_table.html
new file mode 100644
index 0000000..4997145
--- /dev/null
+++ b/docs/templates/python/material/attributes_table.html
@@ -0,0 +1,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" 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" 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" with context %}
+ {% set obj = old_obj %}
+ </div>
+ {% endfor %}
+ {%endwith %}
+ </div>
+{% endif %}