{# 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 -%} {{ name|e }} {%- if ismain %}{% endif -%} {%- for ismain, link in links[1:] -%} , {% set docname, anchor = link -%} {%- if ismain %}{% endif -%} [{{ loop.index }}] {%- if ismain %}{% endif -%} {%- endfor %} {%- else -%} {{- name|e -}} {%- endif %} {% endmacro %} {%- if pagegen_notice -%}
{%- if pagegen_notice is sameas true -%} {{ L('This page has been automatically generated.') }} {%- else -%} {{ L(pagegen_notice|e)}} {%- endif %}

{%- else -%}
{%- endif -%}

{%- for key, _ in index -%} {{ key }} {%- if not loop.last %} | {% endif %} {%- endfor %}


{%- for key, entries in index %}

{{ key }} {{ key }}

{%- for name, (links, subitems, _) in entries -%}

{{- indexentry(name, links) -}}

{%- if subitems %} {%- for subname, sublinks in subitems -%}

{{- indexentry(subname, sublinks) -}}

{%- endfor %} {%- endif -%} {%- endfor %} {% endfor %}