{% for toc in toctree_data %} {% if toc.current %}

{{ toc.caption }}

    {% for entry in toc.entries %}
  • {{entry.title}} {% if entry.children %}
      {% for entry2 in entry.children %} {% if entry.title != entry2.title or entry.children|length > 1 %}
    • {{entry2.title}}
    • {% endif %} {% endfor %}
    {% endif %}
  • {% endfor %}
{% endif %} {% endfor %}