Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 28cfdc6039875b74cfd7d2cbe67c8a7a48a11991 1 parent 45d4a12
@aaugustin aaugustin authored
Showing with 9 additions and 9 deletions.
  1. +9 −9 docs/templates/docs/genindex.html
View
18 docs/templates/docs/genindex.html
@@ -12,11 +12,11 @@
<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">
@@ -24,22 +24,22 @@ <h2 id="{{ letter }}">{{ letter }}</h2>
<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 %}
Please sign in to comment.
Something went wrong with that request. Please try again.