|
| 1 | +{# |
| 2 | + basic/domainindex.html |
| 3 | + ~~~~~~~~~~~~~~~~~~~~~~ |
| 4 | +
|
| 5 | + Template for domain indices (module index, ...). |
| 6 | +
|
| 7 | + :copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS. |
| 8 | + :license: BSD, see LICENSE for details. |
| 9 | +#} |
| 10 | +{%- extends "layout.html" %} |
| 11 | +{% set title = indextitle %} |
| 12 | + |
| 13 | +{% block extrahead %} |
| 14 | +{{ super() }} |
| 15 | +{% if not embedded and collapse_index %} |
| 16 | + <script type="text/javascript"> |
| 17 | + DOCUMENTATION_OPTIONS.COLLAPSE_INDEX = true; |
| 18 | + </script> |
| 19 | +{% endif %} |
| 20 | +{% endblock %} |
| 21 | + |
| 22 | +{% block body %} |
| 23 | +<section class="b-block b-modindex-block-top"> |
| 24 | + <div class="b-block-wrapper"> |
| 25 | + {%- set groupid = idgen() %} |
| 26 | + |
| 27 | + <h1 class="b-section-title" id="index">{{ indextitle }}</h1> |
| 28 | + |
| 29 | + <div class="modindex-jumpbox"> |
| 30 | + {%- for (letter, entries) in content %} |
| 31 | + <a href="#cap-{{ letter }}"><strong>{{ letter }}</strong></a> |
| 32 | + {%- if not loop.last %} | {% endif %} |
| 33 | + {%- endfor %} |
| 34 | + </div> |
| 35 | + </div> |
| 36 | +</section> |
| 37 | + |
| 38 | +<section class="b-block b-modindex-block"> |
| 39 | + <div class="b-block-wrapper"> |
| 40 | + <table class="indextable modindextable" |
| 41 | + cellspacing="0" |
| 42 | + cellpadding="2"> |
| 43 | + {%- for letter, entries in content %} |
| 44 | + <tr class="pcap"> |
| 45 | + <td></td> |
| 46 | + <td> </td> |
| 47 | + <td></td> |
| 48 | + </tr> |
| 49 | + <tr class="cap" id="cap-{{ letter }}"> |
| 50 | + <td></td> |
| 51 | + <td><strong>{{ letter }}</strong></td> |
| 52 | + <td></td> |
| 53 | + </tr> |
| 54 | + {%- for (name, grouptype, page, anchor, |
| 55 | + extra, qualifier, description) in entries %} |
| 56 | + <tr{% if grouptype == 2 %} class="cg-{{ groupid.current() }}"{% endif %}> |
| 57 | + <td> |
| 58 | + {% if grouptype == 1 -%} |
| 59 | + <img src="{{ pathto('_static/minus.png', 1) }}" |
| 60 | + class="toggler" |
| 61 | + id="toggle-{{ groupid.next() }}" |
| 62 | + style="display: none" |
| 63 | + alt="-" /> |
| 64 | + {%- endif %} |
| 65 | + </td> |
| 66 | + <td> |
| 67 | + {% if grouptype == 2 %}   {% endif %} |
| 68 | + {% if page %}<a href="{{ pathto(page) }}#{{ anchor }}">{% endif -%} |
| 69 | + <code class="xref">{{ name|e }}</code> |
| 70 | + {%- if page %}</a>{% endif %} |
| 71 | + {%- if extra %}<em>({{ extra|e }})</em>{% endif -%} |
| 72 | + </td> |
| 73 | + <td> |
| 74 | + {% if qualifier %}<strong>{{ qualifier|e }}:</strong>{% endif %} |
| 75 | + <em>{{ description|e }}</em> |
| 76 | + </td> |
| 77 | + </tr> |
| 78 | + {%- endfor %} |
| 79 | + {%- endfor %} |
| 80 | + </table> |
| 81 | + </div> |
| 82 | +</section> |
| 83 | +{% endblock %} |
| 84 | + |
| 85 | +{# vim: syntax=htmldjango ts=2 sts=2 sw=2 expandtab #} |
0 commit comments