{% load static %} {# Multi-Section Markdown Documentation Block with Management Commands and Mermaid Support #} {# Load Mermaid resources once per page #} {% if documentation_config.enable_plugins and not mermaid_loaded %} {{ mermaid_resources|safe }} {% with mermaid_loaded=True %}{% endwith %} {% endif %} {% if documentation_config and documentation_sections or management_commands %}
{# Main documentation container with unfold semantic classes #}
{# Header with semantic font colors #}
description

{{ documentation_config.title }}

{% if documentation_sections %} {{ documentation_sections|length }} section{{ documentation_sections|length|pluralize }} {% endif %}
{# Management Commands Section (if any) #} {% if management_commands %}
{# Terminal icon #} terminal {# Title #} Management Commands {# Badge #} {{ management_commands|length }} command{{ management_commands|length|pluralize }} {# Expand/collapse hint #} Click to expand {# Commands list #}
{% for cmd in management_commands %}
{# Command name #}
code
python manage.py {{ cmd.name }} {% if cmd.help %}

{{ cmd.help }}

{% endif %}
{# Arguments #} {% if cmd.arguments %}
Arguments:
{% for arg in cmd.arguments %}
{{ arg.name }} {% if arg.required %} required {% endif %} {% if arg.help %} - {{ arg.help }} {% endif %} {% if arg.default %} default: {{ arg.default }} {% endif %}
{% endfor %}
{% endif %}
{% endfor %}
{% endif %} {# Documentation Sections #} {% if documentation_sections %}
{% for section in documentation_sections %} {% if documentation_config.collapsible %} {# Collapsible section #}
{# Chevron icon #} chevron_right {# Section title #} {{ section.title }} {# Expand/collapse hint #} Click to expand {# Section content #}
{{ section.content|safe }}
{% else %} {# Non-collapsible section #}
{% if section.title != documentation_config.title %}

{{ section.title }}

{% endif %}
{{ section.content|safe }}
{% endif %} {% endfor %}
{% endif %}
{# Enhanced dark mode prose styles with unfold semantic colors #} {% endif %}