{% extends "base.html" %} {% from 'partials/reference-components.html' import reference_header, reference_metadata %} {% from 'partials/navigation-components.html' import breadcrumbs, page_navigation, toc with context %} {% from 'partials/content-components.html' import tag_list %} {# CLI Reference Single Page Template Three-column layout for individual CLI command documentation: - Left sidebar: Command navigation tree - Center: Content with command details, usage, options - Right sidebar: TOC for quick navigation Usage: Automatically applied to pages in cli-reference sections Or set `template: cli-reference/single.html` in frontmatter #} {% block content %} {# Three-column documentation layout #}
{# Left Sidebar: CLI Navigation #} {# Main Content #}
{# Breadcrumbs #} {{ breadcrumbs(page) }} {# Article Content #}
{# Reference header with icon and title #} {{ reference_header( icon=page.metadata.get('emoji', '⌨️'), title=page.title, description=page.metadata.get('description', ''), type='cli' ) }} {# Reference metadata box (source) #} {% set source_with_line = page.metadata.get('source_file', '') %} {% if page.metadata.get('source_line') %} {% set source_with_line = page.metadata.get('source_file', '') ~ ':' ~ page.metadata.get('source_line') %} {% endif %} {{ reference_metadata({ 'Source': source_with_line }) }} {# Command usage #} {% if page.metadata.get('usage') %}
Usage:
{{ page.metadata.get('usage') }}
{% endif %} {# Document metadata (last updated, etc) #} {% include 'partials/docs-meta.html' %}
{# Main content #}
{{ content | safe }}
{# Tags #} {% if page.tags %}
{{ tag_list(page.tags) }}
{% endif %}
{# Page navigation (prev/next command) at bottom #} {{ page_navigation(page) }}
{# Right Sidebar: TOC #} {% if toc_items %} {% endif %}
{# Mobile sidebar toggle button #} {# Sidebar overlay for mobile #} {% endblock %} {# Sidebar toggle functionality is handled by interactive.js #}