{% extends "base.html" %} {# CLI Reference Command Template Renders a CLI command's documentation using the unified autodoc skeleton. Extends base.html to inherit theme navigation, sidebars, and styling. Uses autodoc.css for all styling. This template receives: - element: DocElement for the command - config: Autodoc configuration - site: Site instance #} {% from 'partials/navigation-components.html' import breadcrumbs, page_navigation, toc with context %} {% from 'autodoc/partials/_macros/element-card.html' import element_card %} {% block content %} {# Pre-compute child elements - cache children to avoid duplicate getattr calls #} {% set children = getattr(element, 'children', []) %} {% set options = children | selectattr('element_type', 'eq', 'option') | list %} {% set arguments = children | selectattr('element_type', 'eq', 'argument') | list %} {# Three-column documentation layout #}
{# Left Sidebar: Navigation #} {# Main Content #}
{# Page Hero: Breadcrumbs + Badges + Title + Description + Stats #} {% include 'partials/page-hero/element.html' %} {# Article Content - New autodoc skeleton #}
{# Usage #} {% include 'autodoc/partials/usage.html' %} {# Options (as table) #} {% if options %} {% set params = options %} {% set title = 'Options' %} {% include 'autodoc/partials/params-table.html' %} {% endif %} {# Arguments (as table) #} {% if arguments %} {% set params = arguments %} {% set title = 'Arguments' %} {% include 'autodoc/partials/params-table.html' %} {% endif %} {# Examples #} {% include 'autodoc/partials/examples.html' %} {# Tags #} {% if page.tags %} {% endif %}
{# Page navigation (prev/next) at bottom #} {{ page_navigation(page) }}
{# Right Sidebar: Contextual Graph + TOC + Metadata #} {% include 'partials/docs-toc-sidebar.html' %}
{# Mobile sidebar toggle button #} {# Sidebar overlay for mobile #} {% endblock %}