{{ subsection.title }}
{% if desc %} {{ desc }} {% else %} {# Default descriptions based on type #} {%- if 'python' in sub_type -%} Browse Python packages, modules, classes, and functions. {%- elif 'openapi' in sub_type -%} Explore REST API endpoints, parameters, and response schemas. {%- elif 'cli' in sub_type -%} Command-line interface documentation with options and examples. {%- else -%} API documentation and reference material. {%- endif -%} {% endif %}
{# Preview Items #} {% if subsection.sorted_subsections or subsection.sorted_pages %}-
{% set preview_limit = 4 %}
{% set preview_items = subsection.sorted_subsections[:preview_limit] if subsection.sorted_subsections else subsection.sorted_pages[:preview_limit] %}
{% for item in preview_items %}
- {{ item.title | default(item.name) }} {% endfor %} {% set remaining = child_count - preview_limit %} {% if remaining > 0 %}
- +{{ remaining }} more {% endif %}