Debian Codegraph @

docs/source/_templates/genindex.html

raw
1 {% extends "page.html" %}
2
3 {% block htmltitle -%}
4 <title>{{ _("Index") }} - {{ docstitle|striptags|e }}</title>
5 {% endblock htmltitle -%}
6
7 {% macro indexentries(firstname, links) %}
8 {%- if links -%}
9 <a href="{{ links[0][1] }}">
10 {%- if links[0][0] %}<strong>{% endif -%}
11 {{ firstname|e }}
12 {%- if links[0][0] %}</strong>{% endif -%}
13 </a>
14
15 {%- for ismain, link in links[1:] -%}
16 , <a href="{{ link }}">{% if ismain %}<strong>{% endif -%}
17 [{{ loop.index }}]
18 {%- if ismain %}</strong>{% endif -%}
19 </a>
20 {%- endfor %}
21 {%- else %}
22 {{ firstname|e }}
23 {%- endif %}
24 {% endmacro %}
25
26 {% block content %}
27 <section class="genindex-section">
28 <h1 id="index">{{ _('Index') }}</h1>
29 <div class="genindex-jumpbox">
30 {%- for key, dummy in genindexentries -%}
31 <a href="#{{ key }}"><strong>{{ key }}</strong></a>
32 {%- if not loop.last %} | {% endif -%}
33 {%- endfor -%}
34 </div>
35 </section>
36
37 {%- for key, entries in genindexentries %}
38 <section id="{{ key }}" class="genindex-section">
39 <h2>{{ key }}</h2>
40 <table class="max-width indextable genindextable"><tr>
41 {%- for column in entries|slice_index(2) if column %}
42 <td class="styled-row-col"><ul>
43 {%- for entryname, (links, subitems, _) in column %}
44 <li>{{ indexentries(entryname, links) }}
45 {%- if subitems %}
46 <ul>
47 {%- for subentryname, subentrylinks in subitems %}
48 <li>{{ indexentries(subentryname, subentrylinks) }}</li>
49 {%- endfor %}
50 </ul>
51 {%- endif -%}</li>
52 {%- endfor %}
53 </ul></td>
54 {%- endfor %}
55 </tr></table>
56 </section>
57 {% endfor %}
58 {% endblock %}