{# Documentation Navigation Section Component (Recursive) Renders an individual section with pages and subsections in the docs nav tree. Variables: - section: Section object to render (required) - section.title: Section title - section.url: Section URL - section.index_page: Section index page (optional) - section.sorted_pages: Pages in section (pre-sorted by weight) - section.sorted_subsections: Subsections (pre-sorted by weight) - depth: Current nesting depth for styling (required) - page: Current page object (for active highlighting) Features: - Collapsible section with toggle button - Clickable section header (links to index page) - Active page highlighting - Recursive rendering of subsections - Smart title display (extracts short names from dotted titles) Note: This component calls itself recursively for subsections. Included by 'partials/docs-nav.html'. Usage: {% set depth = 0 %} {% include 'partials/docs-nav-section.html' %} #}
{# Section Toggle Button - with link functionality #}
{% if section.index_page %} {{ section.title }} {% else %} {{ section.title }} {% endif %}
{# Section Items #}