{% extends "base.html" %} {# Documentation Template Three-column layout optimized for documentation sites: - Left sidebar: Navigation tree - Center: Content - Right sidebar: TOC + metadata Usage: Set `template: doc.html` in frontmatter Or set `type: doc` to auto-select this template #} {% from 'partials/navigation-components.html' import breadcrumbs, page_navigation, toc with context %} {% from 'partials/content-components.html' import tag_list with context %} {% block content %} {# Three-column documentation layout #}
{# Left Sidebar: Navigation #} {# Main Content #}
{# Version Banner - warns users when viewing old/deprecated versions #} {% include 'partials/version-banner.html' %} {# Page Hero: Breadcrumbs + Title + Description + Metadata #} {# Supports variants: classic (default) or magazine (set via hero_style) #} {% include 'partials/page-hero.html' %} {# Article Content #}
{# Track Navigation (Top) #} {% include 'partials/track_nav.html' %} {# Main content #}
{{ content | safe }}
{# Tags #} {% if page.tags %}
Tagged {{ tag_list(page.tags) }}
{% endif %}
{# Track Navigation (Bottom) #} {% include 'partials/track_nav.html' %} {# Page navigation (prev/next) at bottom #} {{ page_navigation(page) }}
{# Right Sidebar: Contextual Graph + TOC + Metadata #} {% if toc_items %} {% endif %}
{# Mobile sidebar toggle button #} {# Sidebar overlay for mobile #} {% endblock %} {# Sidebar toggle functionality is handled by interactive.js #} {# Graph scripts loaded in base.html #}