Skip to content

Commit cb6a6d8

Browse files
committed
Completely copy over the basic template genindex
1 parent 9594f73 commit cb6a6d8

1 file changed

Lines changed: 32 additions & 1 deletion

File tree

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,36 @@
11
{% extends "!genindex.html" %}
22

3+
{# check sphinx/themes/basic/genindex:sidebartitle if this snippet has become outdated #}
4+
35
{% block body %}
4-
<p>TESTING</p>
6+
7+
<h1 id="index">{{ _('Index') }}</h1>
8+
9+
<div class="genindex-jumpbox">
10+
{% for key, dummy in genindexentries -%}
11+
<a href="#{{ key }}"><strong>{{ key }}</strong></a>
12+
{% if not loop.last %}| {% endif %}
13+
{%- endfor %}
14+
</div>
15+
16+
{%- for key, entries in genindexentries %}
17+
<h2 id="{{ key }}">{{ key }}</h2>
18+
<table style="width: 100%" class="indextable genindextable"><tr>
19+
{%- for column in entries|slice_index(2) if column %}
20+
<td style="width: 33%; vertical-align: top;"><ul>
21+
{%- for entryname, (links, subitems, _) in column %}
22+
<li>{{ indexentries(entryname, links) }}
23+
{%- if subitems %}
24+
<ul>
25+
{%- for subentryname, subentrylinks in subitems %}
26+
<li>{{ indexentries(subentryname, subentrylinks) }}</li>
27+
{%- endfor %}
28+
</ul>
29+
{%- endif -%}</li>
30+
{%- endfor %}
31+
</ul></td>
32+
{%- endfor %}
33+
</tr></table>
34+
{% endfor %}
35+
536
{% endblock %}

0 commit comments

Comments
 (0)