{#- Template for Python modules. This template renders a Python module. Context: module (griffe.Module): The module to render. root (bool): Whether this is the root object, injected with `:::` in a Markdown page. heading_level (int): The HTML heading level to use. config (dict): The configuration options. -#} {% block logs scoped %} {#- Logging block. This block can be used to log debug messages, deprecation messages, warnings, etc. -#} {{ log.debug("Rendering " + module.path) }} {% endblock logs %}
'|safe if config.show_symbol_type_toc else '') + (config.toc_label if config.toc_label and root else module.name),
) %}
{% block heading scoped %}
{#- Heading block.
This block renders the heading for the module.
-#}
{% if config.show_symbol_type_heading %}{% endif %}
{% if config.separate_signature %}
{{ config.heading if config.heading and root else module_name }}
{% else %}
{{ module_name }}
{% endif %}
{% endblock heading %}
{% block labels scoped %}
{#- Labels block.
This block renders the labels for the module.
-#}
{% with labels = module.labels %}
{# YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. #}
{% include "labels"|get_template with context %}
{% endwith %}
{% endblock labels %}
{% endfilter %}
{% else %}
{% if config.show_root_toc_entry %}
{% filter heading(heading_level,
role="module",
id=html_id,
toc_label=(' '|safe if config.show_symbol_type_toc else '') + (config.toc_label if config.toc_label and root else module.name),
hidden=True,
) %}
{% endfilter %}
{% endif %}
{% set heading_level = heading_level - 1 %}
{% endif %}