{% extends "base.html" %} {# CLI Reference Section Index Template Renders a CLI section index page showing command groups and commands using a card-based layout. Extends base.html to inherit theme navigation. Uses autodoc.css for all styling. This template receives: - section: Section object for the CLI section - config: Autodoc configuration - site: Site instance #} {% from 'partials/navigation-components.html' import breadcrumbs, page_navigation, toc %} {% block content %} {# Three-column documentation layout #}
{# Left Sidebar: Navigation #} {# Main Content #}
{# Page Hero: Breadcrumbs + Title + Description + Stats (with CLI labels) #} {% from 'partials/page-hero/_macros.html' import hero_section %} {{ hero_section(section, page, {'is_cli': true}) }} {# Article Content - autodoc skeleton #}
{# Subsections (Command Groups) - Card Grid #} {% if section and section.sorted_subsections %}

Command Groups

{% for subsection in section.sorted_subsections %} {% if subsection.name %} {% set desc = subsection.metadata.description | default('') | first_sentence %} {% set child_count = (subsection.subsections | length) + (subsection.pages | length) %}
{{ icon("terminal", size=20, css_class="icon-muted") }} {{ subsection.name }}
{% if desc %}

{{ desc }}

{% else %}

{{ subsection.name }} commands

{% end %}
{% end %} {% end %}
{% end %} {# Command Pages - Card Grid #} {% set command_pages = [] %} {% if section %} {% for page in section.sorted_pages %} {% if page != section.index_page and not (page.source_path is match('.*_index.*')) %} {% set _ = command_pages.append(page) %} {% end %} {% end %} {% end %} {% if command_pages %}

Commands

{% end %} {# Empty State #} {% if not section or (not section.subsections and not command_pages) %}
{{ icon("terminal", size=48, css_class="icon-muted") }}

No CLI documentation available in this section yet.

{% end %}
{# 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 #} {% end %}