{#
Template for a storage-format genindex document.
:copyright: Copyright 2007-2021 by the Sphinx team (sphinx-doc/sphinx#AUTHORS)
:copyright: Copyright 2021 Sphinx Confluence Builder Contributors (AUTHORS)
:license: BSD-2-Clause (LICENSE)
#}
{% macro indexentry(name, links) %}
{%- if links -%}
{%- set ismain = links[0][0] -%}
{%- set docname, anchor = links[0][1] -%}
{%- if ismain %}{% endif -%}
{{- indexentry(name, links) -}}
{%- if subitems %} {%- for subname, sublinks in subitems -%}{{- indexentry(subname, sublinks) -}}
{%- endfor %} {%- endif -%} {%- endfor %} {% endfor %}