{#
SPDX-License-Identifier: BSD-2-Clause
Copyright 2007-2021 by the Sphinx team (sphinx-doc/sphinx#AUTHORS)
Copyright Sphinx Confluence Builder Contributors (AUTHORS)
Template for a storage-format genindex document.
#}
{% 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 %}