[Python-checkins] r65577 - in doctools/trunk/sphinx/templates: genindex-single.html genindex.html

georg.brandl python-checkins at python.org
Thu Aug 7 20:35:58 CEST 2008


Author: georg.brandl
Date: Thu Aug  7 20:35:58 2008
New Revision: 65577

Log:
Use numbers instead of [Link] in duplicate index entries.


Modified:
   doctools/trunk/sphinx/templates/genindex-single.html
   doctools/trunk/sphinx/templates/genindex.html

Modified: doctools/trunk/sphinx/templates/genindex-single.html
==============================================================================
--- doctools/trunk/sphinx/templates/genindex-single.html	(original)
+++ doctools/trunk/sphinx/templates/genindex-single.html	Thu Aug  7 20:35:58 2008
@@ -19,7 +19,7 @@
   <dd><dl>
     {%- for subentryname, subentrylinks in subitems %}
     <dt><a href="{{ subentrylinks[0] }}">{{ subentryname|e }}</a>
-    {%- for link in subentrylinks[1:] %}, <a href="{{ link }}">[Link]</a>{% endfor -%}
+    {%- for link in subentrylinks[1:] %}, <a href="{{ link }}">[{{ loop.index }}]</a>{% endfor -%}
     </dt>
     {%- endfor %}
   </dl></dd>

Modified: doctools/trunk/sphinx/templates/genindex.html
==============================================================================
--- doctools/trunk/sphinx/templates/genindex.html	(original)
+++ doctools/trunk/sphinx/templates/genindex.html	Thu Aug  7 20:35:58 2008
@@ -19,7 +19,7 @@
 {%- set numitems = 0 %}
 {% for entryname, (links, subitems) in entries %}
 <dt>{%- if links -%}<a href="{{ links[0] }}">{{ entryname|e }}</a>
-  {%- for link in links[1:] %}, <a href="{{ link }}">[Link]</a>{% endfor -%}
+  {%- for link in links[1:] %}, <a href="{{ link }}">[{{ loop.index }}]</a>{% endfor -%}
   {%- else -%}
 {{ entryname|e }}
   {%- endif -%}</dt>
@@ -27,7 +27,7 @@
   <dd><dl>
     {%- for subentryname, subentrylinks in subitems %}
     <dt><a href="{{ subentrylinks[0] }}">{{ subentryname|e }}</a>
-    {%- for link in subentrylinks[1:] %}, <a href="{{ link }}">[Link]</a>{% endfor -%}
+    {%- for link in subentrylinks[1:] %}, <a href="{{ link }}">[{{ loop.index }}]</a>{% endfor -%}
     </dt>
     {%- endfor %}
   </dl></dd>


More information about the Python-checkins mailing list