Debian Codegraph @

doc/_themes/sphinx13/layout.html

raw
1 {# Sphinx layout template for the sphinxdoc theme. #}
2 {%- extends "basic/layout.html" %}
3
4 {% block extrahead %}
5 {{ super() }}
6 {%- if not embedded and pagename == root_doc %}
7 <style>.related { display: none; }</style>
8 {%- endif %}
9 {% endblock %}
10
11 {% block header %}
12 {{ svgs() }}
13 <div class="pageheader">
14 <div class="brand">
15 <a href="{{ pathto(root_doc)|e }}">
16 <img src="{{ pathto('_static/sphinx-logo.svg', resource=True) }}" alt="logo" />
17 <span>Sphinx</span>
18 </a>
19 </div>
20 <div class="icons">
21 <a href="https://github.com/sphinx-doc/sphinx" title="{{ _('Source Code') }}" target="_blank">
22 <svg><use href="#github"></use></svg>
23 </a>
24 </div>
25 </div>
26 {% endblock %}
27
28 {%- block relbar1 %}
29 <div class="related" role="navigation" aria-label="Related">
30 <h3>{{ _('Navigation') }}</h3>
31 <ul>
32 <li><a href="{{ pathto(root_doc)|e }}">Documentation</a> &raquo;</li>
33 {%- for parent in parents %}
34 <li class="nav-item nav-item-{{ loop.index }}"><a href="{{ parent.link|e }}" {% if loop.last %}{{ accesskey("U") }}{% endif %}>{{ parent.title }}</a>{{ reldelim1 }}</li>
35 {%- endfor %}
36 <li class="nav-item nav-item-this"><a href="{{ link|e }}">{{ title }}</a></li>
37 </ul>
38 </div>
39 {% endblock %}
40
41 {%- block content %}
42 <div class="document">
43 <div class="sphinxsidebar" role="navigation" aria-label="Main">
44 {%- include "searchfield.html" %}
45 {%- if display_toc %}
46 <div class="sphinxsidebar-navigation__contents">
47 <h3>{{ _('On this page') }}</h3>
48 {{ toc }}
49 </div>
50 {%- endif %}
51 <div class="sphinxsidebar-navigation__pages">
52 {{ toctree(includehidden=True, maxdepth=3, titles_only=True) }}
53 </div>
54 </div>
55 {%- block document %}
56 <div class="body" role="main">
57 {% block body %}{% endblock %}
58 {{ prev_next() }}
59 </div>
60 {%- endblock %}
61 </div>
62 {%- endblock %}
63
64 {%- block relbar2 %}{% endblock %}
65
66 {%- block footer %}
67 <div class="footer" role="contentinfo">
68 {{ copyright_block() }}
69 {% trans sphinx_version=sphinx_version|e %}Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> {{ sphinx_version }}.{% endtrans %}
70 </div>
71 {%- endblock %}
72
73 {% macro prev_next() %}
74 <div class="related-pages" role="navigation" aria-label="Related">
75 {% if prev -%}
76 <a class="prev-page" href="{{ prev.link }}">
77 <svg><use href="#svg-arrow-right"></use></svg>
78 <div class="page-info">
79 <div class="context">
80 <span>{{ _("Previous") }}</span>
81 </div>
82 {% if prev.link == pathto(root_doc) %}
83 <div class="title">{{ _("Home") }}</div>
84 {% else %}
85 <div class="title">{{ prev.title }}</div>
86 {% endif %}
87 </div>
88 </a>
89 {%- else %}
90 <div></div>
91 {%- endif %}
92 {% if next -%}
93 <a class="next-page" href="{{ next.link }}">
94 <div class="page-info">
95 <div class="context">
96 <span>{{ _("Next") }}</span>
97 </div>
98 <div class="title">{{ next.title }}</div>
99 </div>
100 <svg><use href="#svg-arrow-right"></use></svg>
101 </a>
102 {%- endif %}
103 </div>
104 {% endmacro %}
105
106 {% macro svgs() %}
107 <svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
108 <symbol id="github" viewBox="0 0 16 16">
109 <title>GitHub</title>
110 <svg
111 stroke="currentColor"
112 fill="currentColor"
113 stroke-width="0"
114 viewBox="0 0 16 16"
115 >
116 <path
117 fill-rule="evenodd"
118 d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"
119 ></path>
120 </svg>
121 <symbol id="svg-arrow-right" viewBox="0 0 24 24">
122 <title>Expand</title>
123 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather-chevron-right">
124 <polyline points="9 18 15 12 9 6"></polyline>
125 </svg>
126 </symbol>
127 </svg>
128 {% endmacro %}