Browse files

Fix #19834 -- Adapt to Sphinx' new genindex JSON.

  • Loading branch information...
1 parent 45d4a12 commit 28cfdc6039875b74cfd7d2cbe67c8a7a48a11991 @aaugustin aaugustin committed Feb 15, 2013
Showing with 9 additions and 9 deletions.
  1. +9 −9 docs/templates/docs/genindex.html
View
18 docs/templates/docs/genindex.html
@@ -12,34 +12,34 @@
<a href="#{{ letter }}">{{ letter }}</a> {% if not forloop.last %} |{% endif %}
{% endfor %}
</p>
-
-
- {% for letter, entries in doc.genindexentries %}
+
+
+ {% for letter, entries in doc.genindexentries %}
<br/ ><hr />
-
+
<h2 id="{{ letter }}">{{ letter }}</h2>
<dl class="index">
{% for name, contents in entries %}
<dt>
{# contents.0 is a list of links for the item #}
{% if contents.0 %}
- <a href="{{ contents.0.0 }}">{{ name }}</a>
+ <a href="{{ contents.0.0.1 }}">{{ name }}</a>
{% else %}
{{ name }}
{% endif %}
</dt>
-
+
{# contents.1 is a list of subitems #}
{% if contents.1 %}
{% for subname, sublinks in contents.1 %}
<dd>
- <a href="{{ sublinks.0 }}">{{ subname }}</a>
- {% for link in sublinks|slice:"1:" %}, <a href="{{ link }}">[Link]</a>{% endfor %}
+ <a href="{{ sublinks.0.1 }}">{{ subname }}</a>
+ {% for link in sublinks|slice:"1:" %}, <a href="{{ link.1 }}">[Link]</a>{% endfor %}
</dd>
{% endfor %}
{% endif %}
{% endfor %}
</dl>
{% endfor %}
-{% endblock %}
+{% endblock %}

0 comments on commit 28cfdc6

Please sign in to comment.