Commit bf62d1aa authored by Jason Madden's avatar Jason Madden

compatibility with sphinx 1.4 [skip ci]

parent 9b33506b
...@@ -46,7 +46,10 @@ def missing_reference(app, env, node, contnode): ...@@ -46,7 +46,10 @@ def missing_reference(app, env, node, contnode):
for docname, items in env.indexentries.items(): for docname, items in env.indexentries.items():
if noisy >= 2: if noisy >= 2:
print(docname) print(docname)
for (i_type, i_string, i_target, i_aliasname) in items: for _x in items:
if noisy >= 4:
print(_x)
(i_type, i_string, i_target, i_aliasname) = _x[:4]
if noisy >= 3: if noisy >= 3:
print('---', [i_type, i_string, i_target, i_aliasname]) print('---', [i_type, i_string, i_target, i_aliasname])
if i_aliasname.endswith(target): if i_aliasname.endswith(target):
......
...@@ -17,7 +17,8 @@ ...@@ -17,7 +17,8 @@
{%- set breakat = genindexcounts[loop.index0] // 2 %} {%- set breakat = genindexcounts[loop.index0] // 2 %}
{%- set numcols = 1 %} {%- set numcols = 1 %}
{%- set numitems = 0 %} {%- set numitems = 0 %}
{% for entryname, (links, subitems) in entries %} {% for entryname, links_subitems in entries %}
{%- set links, subitems = links_subitems[:2] %}
<dt>{%- if links -%}<a href="{{ links[0] }}">{{ entryname|e }}</a> <dt>{%- if links -%}<a href="{{ links[0] }}">{{ entryname|e }}</a>
{%- for link in links[1:] %}, <a href="{{ link }}">[{{ loop.index }}]</a>{% endfor -%} {%- for link in links[1:] %}, <a href="{{ link }}">[{{ loop.index }}]</a>{% endfor -%}
{%- else -%} {%- else -%}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment