{% load i18n flex_menu %} {% comment %} One page of the contents, drawn by mvp_sphinx.renderers.SidebarRenderer: a link to the page, then, for a page with pages of its own, a toggle and the list it opens. The list holds the pages only on the way to the page being read. Anywhere else it is empty and hidden, and the toggle fetches it from the entry's branch_url the first time it opens. A project puts something of its own in each entry, such as a count or a tick, by overriding this template, extending it, and filling the mvp_sphinx.entry_end block, which sits after the title, inside the link (or the heading of a hidden page). The block sees the processed menu item as item, and its label, url, page_url, style, current, branch, open, request, and entry, the navigation file's mapping for the page with the pages under it. {% endcomment %}
  • {% if url %} {% else %} {% endif %} {{ label }} {% block mvp_sphinx.entry_end %} {% endblock mvp_sphinx.entry_end %} {% if url %}{% else %}{% endif %} {% if branch %} {% endif %}