{# Element Hero - for DocElement pages (modules, classes, functions, commands) Contract: - element: DocElement instance (REQUIRED, not None) - page: Page instance - section: Section instance (may be None) - site: Site instance (from global context) - config: Autodoc config dict Data access: All via element.attribute (dataclass properties) Usage: {% include 'partials/page-hero/element.html' %} #} {# Include shared wrapper (opens .page-hero div) #} {% include 'partials/page-hero/_wrapper.html' %} {# Badges - element type indicators #}
{% include 'autodoc/partials/badges.html' %}
{# Title - qualified name for elements #}

{{ element.qualified_name }}

{# Description from element (attribute access) #} {% if element.description %}
{{ element.description | markdownify | safe }}
{% endif %} {# Footer: Source link + stats #}