{# Page Hero: Use direct macro call with explicit context #}
{% from 'partials/page-hero.html' import hero_element %}
{{ hero_element(element, page, config) }}
{# Article Content - Unified autodoc skeleton #}
{# Optional member summary table (autosummary-style) #}
{% set show_summary = config?.autodoc?.python?.show_member_summary ?? false %}
{% if show_summary and (classes | length + functions | length) > 0 %}
Summary
| Name | Type | Description |
{% for cls in classes %}
| {{ cls.name }} | class | {{ (cls.description ?? '') | first_sentence }} |
{% end %}
{% for func in functions %}
| {{ func.name }} | function | {{ (func.description ?? '') | first_sentence }} |
{% end %}
{% end %}
{# Classes Section #}
{% if classes | length > 0 %}
Classes
{% for cls in classes %}
{{ class_member(cls, is_first=loop.first) }}
{% end %}
{% end %}
{# Functions Section #}
{% if functions | length > 0 %}
Functions
{% for func in functions %}
{{ function_member(func, is_first=loop.first) }}
{% end %}
{% end %}
{# Tags - with null-safe access #}
{% if page_tags | length > 0 %}
{% end %}
{# Page navigation (prev/next) at bottom - null-safe #}
{% if page %}
{{ page_navigation(page) }}
{% end %}
{# Right Sidebar: Contextual Graph + TOC + Metadata #}
{% include 'partials/docs-toc-sidebar.html' %}