{% extends "base.html" %} {# API Reference Template Three-column layout optimized for API documentation sites: - Left sidebar: Navigation tree - Center: Content - Right sidebar: Contextual Graph + TOC + metadata Usage: Set `template: autodoc/python/single.html` in frontmatter Or set `type: autodoc-python` to auto-select this template Features: - Page hero with breadcrumbs, title, description, and metadata - Contextual graph minimap (connections to current page) - Table of contents - Track navigation support (optional) - Tag list in footer #} {% 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 #}
{# Page Hero: Breadcrumbs + Title + Description + Metadata #} {# Supports variants: classic (default) or magazine (set via hero_style) #} {% include 'partials/page-hero.html' %} {# Article Content - flattened structure #}
{# Track Navigation (Top) #} {% include 'partials/track_nav.html' %} {{ content | safe }} {# Tags #} {% if 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 #} {% include 'partials/docs-toc-sidebar.html' %}
{# Mobile sidebar toggle button #} {# Sidebar overlay for mobile #} {% endblock %} {# Sidebar toggle functionality is handled by interactive.js #} {# Graph scripts loaded in base.html #}