Merging upstream version 1.3.0.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-03-17 07:33:51 +01:00
parent 5b922100c9
commit 8a6a3342fc
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
337 changed files with 16571 additions and 4891 deletions

View file

@ -57,7 +57,7 @@
{% set heading_level = heading_level + 1 %}
{% set old_obj = obj %}
{% set obj = class %}
{% include "attributes_table.html" with context %}
{% include "attributes_table.html.jinja" with context %}
{% set obj = old_obj %}
{% else %}
{% if members_list is not none or class.is_public %}

View file

@ -34,7 +34,7 @@
{% set heading_level = heading_level + 1 %}
{% set old_obj = obj %}
{% set obj = class %}
{% include "attributes_table.html" with context %}
{% include "attributes_table.html.jinja" with context %}
{% set obj = old_obj %}
{% endwith %}
{% endif %}

View file

@ -61,7 +61,7 @@
{% set heading_level = heading_level + 1 %}
{% set old_obj = obj %}
{% set obj = class %}
{% include "attributes_table.html" with context %}
{% include "attributes_table.html.jinja" with context %}
{% set obj = old_obj %}
</div>
{% endfor %}

View file

@ -59,7 +59,7 @@
{{ super() }}
{% for dec in class.decorators %}
{% if dec.value.function.name == "deprecated_test_class" %}
{% if dec.value.function is defined and dec.value.function.name == "deprecated_test_class" %}
<img alt="Static Badge" src="https://img.shields.io/badge/DEPRECATED-yellow?style=flat&logoSize=auto">
{% for arg in dec.value.arguments | selectattr("name", "equalto", "removal_in_version") | list %}
<img alt="Static Badge" src="https://img.shields.io/badge/REMOVAL-{{ arg.value[1:-1] }}-grey?style=flat&logoSize=auto&labelColor=red">

View file

@ -1,36 +0,0 @@
{% if docstring_sections %}
{{ log.debug("Rendering docstring") }}
{% for section in docstring_sections %}
{% if config.show_docstring_description and section.kind.value == "text" %}
{% if not (config.anta_hide_test_module_description and module == obj) %}
{{ section.value|convert_markdown(heading_level, html_id) }}
{% endif %}
{% elif config.show_docstring_attributes and section.kind.value == "attributes" %}
{% include "docstring/attributes.html" with context %}
{% elif config.show_docstring_functions and section.kind.value == "functions" %}
{% include "docstring/functions.html" with context %}
{% elif config.show_docstring_classes and section.kind.value == "classes" %}
{% include "docstring/classes.html" with context %}
{% elif config.show_docstring_modules and section.kind.value == "modules" %}
{% include "docstring/modules.html" with context %}
{% elif config.show_docstring_parameters and section.kind.value == "parameters" %}
{% include "docstring/parameters.html" with context %}
{% elif config.show_docstring_other_parameters and section.kind.value == "other parameters" %}
{% include "docstring/other_parameters.html" with context %}
{% elif config.show_docstring_raises and section.kind.value == "raises" %}
{% include "docstring/raises.html" with context %}
{% elif config.show_docstring_warns and section.kind.value == "warns" %}
{% include "docstring/warns.html" with context %}
{% elif config.show_docstring_yields and section.kind.value == "yields" %}
{% include "docstring/yields.html" with context %}
{% elif config.show_docstring_receives and section.kind.value == "receives" %}
{% include "docstring/receives.html" with context %}
{% elif config.show_docstring_returns and section.kind.value == "returns" %}
{% include "docstring/returns.html" with context %}
{% elif config.show_docstring_examples and section.kind.value == "examples" %}
{% include "docstring/examples.html" with context %}
{% elif config.show_docstring_description and section.kind.value == "admonition" %}
{% include "docstring/admonition.html" with context %}
{% endif %}
{% endfor %}
{% endif %}