summaryrefslogtreecommitdiff
path: root/sphinx/templates/genindex.html
diff options
context:
space:
mode:
authorgeorg.brandl <devnull@localhost>2008-06-17 09:01:26 +0000
committergeorg.brandl <devnull@localhost>2008-06-17 09:01:26 +0000
commitc45ee96c567e0dbc8ba878dbfda68b8bc6b0c4fa (patch)
tree7cf4f4c503a972538ea5ea8670ac1ff957448475 /sphinx/templates/genindex.html
parent3a1f414240e26776d0e434dcc7d88aa5c503ac63 (diff)
downloadsphinx-c45ee96c567e0dbc8ba878dbfda68b8bc6b0c4fa.tar.gz
Support splitting the HTML index.
Diffstat (limited to 'sphinx/templates/genindex.html')
-rw-r--r--sphinx/templates/genindex.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/sphinx/templates/genindex.html b/sphinx/templates/genindex.html
index f3376927..38ac1396 100644
--- a/sphinx/templates/genindex.html
+++ b/sphinx/templates/genindex.html
@@ -42,3 +42,15 @@
{% endfor %}
{% endblock %}
+
+{% block sidebarrel %}
+{% if split_index %}
+ <h4>Index</h4>
+ <p>{% for key, dummy in genindexentries -%}
+ <a href="{{ pathto('genindex-' + key) }}"><strong>{{ key }}</strong></a>
+ {% if not loop.last %}| {% endif %}
+ {%- endfor %}</p>
+
+ <p><a href="{{ pathto('genindex-all') }}"><strong>Full index on one page</strong></a></p>
+{% endif %}
+{% endblock %}