{% extends "base.html" %} {# CLI Reference Command Group Template Renders a CLI command group's documentation showing nested commands and groups. Extends base.html to inherit theme navigation, sidebars, and styling. Uses autodoc.css for all styling. This template receives: - element: DocElement for the command group - config: Autodoc configuration - site: Site instance #} {% from 'partials/navigation-components.html' import breadcrumbs, page_navigation, toc with context %} {% block content %} {# 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 #} {% if element.qualified_name %}

Usage

{{ element.qualified_name }} [COMMAND] [OPTIONS]
{% endif %} {# Commands and Sub-groups - use getattr for safe access to children #} {% set element_children = getattr(element, 'children', []) %} {# Get output prefix from config, default to 'cli' #} {% set cli_config = config.cli if config is defined and config.cli is defined else none %} {% set cli_prefix = (cli_config.output_prefix if cli_config is not none and cli_config.output_prefix else 'cli') | trim('/') %} {% if element_children %}

Commands

{% for child in element_children %} {# Drop the first segment of qualified_name (the root command name) to get the correct path #} {% set qualified_parts = child.qualified_name.split('.') %} {% set child_path = (qualified_parts[1:] if qualified_parts | length > 1 else []) | join('/') %} {% set child_url = '/' ~ cli_prefix ~ '/' ~ (child_path ~ '/' if child_path else '') %} {{ child.name }} {% if child.description %} {{ child.description | truncate(100) }} {% elif child.element_type == 'command-group' %} {% set child_children = getattr(child, 'children', []) %} {{ child_children | length }} {{ child_children | length | pluralize('command') }} {% else %} No description available {% endif %} {% endfor %}
{% endif %} {# 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 %}