{% extends "base.html" %} {# ================================================================================ API Reference Module Template (Kida-Native) ================================================================================ Renders a Python module's API documentation using the unified autodoc skeleton. Extends base.html to inherit theme navigation, sidebars, and styling. TEMPLATE VARIABLES: - element: DocElement for the module (required) - page: PageContext proxy with title, metadata, tags, _path - config: Autodoc configuration - site: Site instance - section: Parent section (for navigation) KIDA FEATURES USED: - Optional chaining (?.) for safe attribute access - Null coalescing (??) for defaults - {% def %} macros for DRY component reuse - {% match %} for element type dispatch - {% let %} for template-scoped caching ================================================================================ #} {% from 'partials/navigation-components.html' import breadcrumbs, page_navigation, toc %} {% from 'autodoc/partials/_macros/class-member.html' import class_member %} {% from 'autodoc/partials/_macros/function-member.html' import function_member %} {% block content %} {# Template-scoped caching of computed values #} {% let element_children = element?.children ?? [] %} {% let classes = element_children | selectattr('element_type', 'eq', 'class') | list %} {% let functions = element_children | selectattr('element_type', 'eq', 'function') | list %} {% let page_tags = page?.tags ?? [] %} {# Three-column documentation layout #}