{# Page Hero: Use direct macro call with explicit context #}
{% from 'partials/page-hero/_macros.html' import hero_element %}
{{ hero_element(element, page, config) }}
{# Article Content - Unified autodoc skeleton #}
{# Usage #}
{% include 'autodoc/partials/usage.html' %}
{# Options (as table) - using OptionView properties #}
{% if cli_options | length > 0 %}
Options
| Option |
Type |
Description |
{% for opt in cli_options %}
{{ opt.flags_str }}
{% if opt.required %}
required
{% end %}
{% if opt.is_flag %}
flag
{% end %}
|
{{ opt.type }} |
{{ opt.description | markdownify | safe }}
{% if opt.default is not none and opt.default != '' and not opt.is_flag %}
Default: {{ opt.default }}
{% end %}
{% if opt.envvar %}
Env: {{ opt.envvar }}
{% end %}
|
{% end %}
{% end %}
{# Arguments (as table) - using OptionView properties #}
{% if cli_arguments | length > 0 %}
Arguments
| Argument |
Type |
Description |
{% for arg in cli_arguments %}
{{ arg.name }}
{% if arg.required %}
required
{% end %}
{% if arg.multiple %}
multiple
{% end %}
|
{{ arg.type }} |
{{ arg.description | markdownify | safe }}
{% if arg.default is not none and arg.default != '' %}
Default: {{ arg.default }}
{% end %}
|
{% end %}
{% end %}
{# Examples #}
{% include 'autodoc/partials/examples.html' %}
{# 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' %}