Debian Codegraph @

docs/source/_templates/domainindex.html

raw
1 {#This file is normally inherited from the version defined by our docs theme (Furo).
2 However, that file includes in-line styling which isn't allowed by our website's
3 Content Security Policy (CSP). To resolve this issue, we copied this file from
4 Furo version "2022.12.7".#}
5
6 {% extends "page.html" %}
7
8 {% block htmltitle -%}
9 <title>{{ indextitle|striptags|e }} - {{ docstitle|striptags|e }}</title>
10 {% endblock htmltitle -%}
11
12 {% block scripts -%}
13 {{ super() }}
14 {%- if not embedded and collapse_index %}
15 <script>DOCUMENTATION_OPTIONS.COLLAPSE_INDEX = true</script>
16 {%- endif -%}
17 {%- endblock scripts %}
18
19 {% block content %}
20 <section class="domainindex-section">
21 <h1>{{ indextitle }}</h1>
22 <div class="domainindex-jumpbox">
23 {%- for (letter, entries) in content -%}
24 <a href="#cap-{{ letter }}"><strong>{{ letter }}</strong></a>
25 {%- if not loop.last %} | {% endif -%}
26 {%- endfor -%}
27 </div>
28 </section>
29
30 {%- set groupid = idgen() %}
31 <table class="domainindex-table">
32 {%- for letter, entries in content %}
33 <tr class="pcap">
34 <td></td><td>&#160;</td><td></td>
35 </tr>
36 <tr class="cap" id="cap-{{ letter }}">
37 <td></td><td><strong>{{ letter }}</strong></td><td></td>
38 </tr>
39 {%- for (name, grouptype, page, anchor, extra, qualifier, description) in entries %}
40 <tr{% if grouptype == 2 %} class="cg-{{ groupid.current() }}"{% endif %}>
41 <td>{% if grouptype == 1 -%}
42 <img src="{{ pathto('_static/minus.png', 1) }}" class="toggler"
43 id="toggle-{{ groupid.next() }}" class="hidden" alt="-" />
44 {%- endif %}</td>
45 <td>{% if grouptype == 2 %}&#160;&#160;&#160;{% endif %}
46 {% if page %}<a href="{{ pathto(page)|e }}#{{ anchor }}">{% endif -%}
47 <code class="xref">{{ name|e }}</code>
48 {%- if page %}</a>{% endif %}
49 {%- if extra %} <em>({{ extra|e }})</em>{% endif -%}
50 </td><td>{% if qualifier %}<strong>{{ qualifier|e }}:</strong>{% endif %}
51 <em>{{ description|e }}</em></td>
52 </tr>
53 {%- endfor %}
54 {%- endfor %}
55 </table>
56 {% endblock content %}