No API documentation available yet.
Enable Python, OpenAPI, or CLI autodoc in your configuration.
{% extends "base.html" %}
{#
================================================================================
API Hub Section Index Template (Kida-Native)
================================================================================
Renders an aggregating section showing all API documentation types.
KIDA FEATURES USED:
- {% let %} for template-scoped variables
- Optional chaining (?.) for null-safe access
- Null coalescing (??) for smart defaults
- {% match %} for type-based rendering
USAGE:
Used for sections with type="api-hub"
================================================================================
#}
{% from 'partials/navigation-components.html' import breadcrumbs, page_navigation, toc %}
{# =============================================================================
API CARD COMPONENT
============================================================================= #}
{% def api_card(subsection) %}
{% let sub_type = subsection?.params?.type ?? 'python-reference' %}
{% let sub_title = subsection?.title ?? 'API' %}
{% let sub_href = subsection?.href ?? '#' %}
{% let sub_desc = (subsection?.params?.description ?? '') | first_sentence %}
{% let sub_subsections = subsection?.subsections ?? [] %}
{% let sub_pages = subsection?.pages ?? [] %}
{% let child_count = (sub_subsections | length) + (sub_pages | length) %}
{% if sub_desc %}
{{ sub_desc }}
{% else %}
{% match sub_type %}
{% case _ if 'python' in sub_type %}
Browse Python packages, modules, and classes.
{% case _ if 'openapi' in sub_type %}
Explore REST API endpoints and schemas.
{% case _ if 'cli' in sub_type %}
Command-line tools and options.
{% case _ %}
API documentation.
{% end %}
{% end %}
{{ sub_title }}
Browse all API documentation for this project.
{% end %} {% if subsections | length > 0 %} {% end %}No API documentation available yet.
Enable Python, OpenAPI, or CLI autodoc in your configuration.