~posulliv/akiban-persistit/update-docs-theme

« back to all changes in this revision

Viewing changes to doc/_theme/genindex.html

  • Committer: Padraig O'Sullivan
  • Date: 2012-12-04 21:02:33 UTC
  • Revision ID: osullivan.padraig@gmail.com-20121204210233-u9emn3petvfy4lf5
Add theme related files for sphinx docs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
{#
 
2
    basic/genindex.html
 
3
    ~~~~~~~~~~~~~~~~~~~
 
4
 
 
5
    Template for an "all-in-one" index.
 
6
 
 
7
    :copyright: Copyright 2007-2010 by the Sphinx team, see AUTHORS.
 
8
    :license: BSD, see LICENSE for details.
 
9
#}
 
10
{% extends "layout.html" %}
 
11
{% set title = _('Index') %}
 
12
{% block body %}
 
13
 
 
14
   <h1 id="index">{{ _('Index') }}</h1>
 
15
 
 
16
   <div class="genindex-jumpbox">
 
17
   {% for key, dummy in genindexentries -%}
 
18
   <a href="#{{ key }}"><strong>{{ key }}</strong></a> {% if not loop.last %}| {% endif %}
 
19
   {%- endfor %}
 
20
   </div>
 
21
 
 
22
   {%- for key, entries in genindexentries %}
 
23
<h2 id="{{ key }}">{{ key }}</h2>
 
24
<table width="100%" class="indextable genindextable"><tr>
 
25
  {%- for column in entries|slice(2) if column %}
 
26
  <td width="33%" valign="top"><dl>
 
27
  {%- for entryname, (links, subitems) in column %}
 
28
    <dt>{% if links %}<a href="{{ links[0] }}">{{ entryname|e }}</a>
 
29
      {%- for link in links[1:] %}, <a href="{{ link }}">[{{ loop.index }}]</a>{% endfor %}
 
30
      {%- else %}{{ entryname|e }}{% endif %}</dt>
 
31
    {%- if subitems %}
 
32
    <dd><dl>
 
33
    {%- for subentryname, subentrylinks in subitems %}
 
34
      <dt><a href="{{ subentrylinks[0] }}">{{ subentryname|e }}</a>
 
35
      {%- for link in subentrylinks[1:] %}, <a href="{{ link }}">[{{ loop.index }}]</a>{% endfor -%}
 
36
      </dt>
 
37
    {%- endfor %}
 
38
  </dl></dd>
 
39
  {%- endif -%}
 
40
{%- endfor %}
 
41
</dl></td>
 
42
{%- endfor %}
 
43
</tr></table>
 
44
{% endfor %}
 
45
 
 
46
{% endblock %}
 
47
 
 
48
{% block sidebarrel %}
 
49
{% if split_index %}
 
50
   <h4>{{ _('Index') }}</h4>
 
51
   <p>{% for key, dummy in genindexentries -%}
 
52
   <a href="{{ pathto('genindex-' + key) }}"><strong>{{ key }}</strong></a>
 
53
     {% if not loop.last %}| {% endif %}
 
54
   {%- endfor %}</p>
 
55
 
 
56
   <p><a href="{{ pathto('genindex-all') }}"><strong>{{ _('Full index on one page') }}</strong></a></p>
 
57
{% endif %}
 
58
   {{ super() }}
 
59
{% endblock %}