1
|
{%- block doctype -%}
|
2
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
3
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
4
|
{%- endblock %}
|
5
|
{%- set reldelim1 = reldelim1 is not defined and ' »' or reldelim1 %}
|
6
|
{%- set reldelim2 = reldelim2 is not defined and ' |' or reldelim2 %}
|
7
|
|
8
|
{%- macro relbar() %}
|
9
|
<div class="related">
|
10
|
<h3>{{ _('Navigation') }}</h3>
|
11
|
<ul>
|
12
|
|
13
|
{%- if pagename != "search" %}
|
14
|
<li class="right">
|
15
|
<span id="searchbox" style="display: none; margin-right: 10px">
|
16
|
<form class="search" action="{{ pathto('search') }}" method="get">
|
17
|
<input type="text" name="q" size="18" />
|
18
|
<input type="submit" value="{{ _('Go') }}" />
|
19
|
<input type="hidden" name="check_keywords" value="yes" />
|
20
|
<input type="hidden" name="area" value="default" />
|
21
|
</form>
|
22
|
</span>
|
23
|
</li>
|
24
|
<script type="text/javascript">$('#searchbox').show(0);</script>
|
25
|
{%- endif %}
|
26
|
|
27
|
|
28
|
{%- for rellink in rellinks %}
|
29
|
<li class="right">
|
30
|
<a href="{{ pathto(rellink[0]) }}" title="{{ rellink[1]|striptags }}"
|
31
|
{{ accesskey(rellink[2]) }}>{{ rellink[3] }}</a>
|
32
|
{{ reldelim2 }}</li>
|
33
|
{%- endfor %}
|
34
|
|
35
|
|
36
|
|
37
|
{%- block rootrellink %}
|
38
|
<li><a href="{{ pathto(master_doc) }}">{{ shorttitle|e }}</a>{{ reldelim1 }}</li>
|
39
|
{%- endblock %}
|
40
|
{%- for parent in parents %}
|
41
|
<li><a href="{{ parent.link|e }}" {% if loop.last %}{{ accesskey("U") }}{% endif %}>{{ parent.title }}</a>{{ reldelim1 }}</li>
|
42
|
{%- endfor %}
|
43
|
{%- block relbaritems %} {% endblock %}
|
44
|
</ul>
|
45
|
|
46
|
</div>
|
47
|
{%- endmacro %}
|
48
|
|
49
|
{%- macro sidebar() %}
|
50
|
{%- if not embedded %}{% if not theme_nosidebar|tobool %}
|
51
|
<div class="sphinxsidebar">
|
52
|
<div class="sphinxsidebarwrapper">
|
53
|
{%- block sidebarlogo %}
|
54
|
{%- if logo %}
|
55
|
<p class="logo"><a href="{{ pathto(master_doc) }}">
|
56
|
<img class="logo" src="{{ pathto('_static/' + logo, 1) }}" alt="Logo"/>
|
57
|
</a></p>
|
58
|
{%- endif %}
|
59
|
{%- endblock %}
|
60
|
{%- block sidebartoc %}
|
61
|
{%- if display_toc %}
|
62
|
<h3><a href="{{ pathto(master_doc) }}">{{ _('Table Of Contents') }}</a></h3>
|
63
|
{{ toc }}
|
64
|
{%- endif %}
|
65
|
{%- endblock %}
|
66
|
{%- block sidebarrel %}
|
67
|
{%- if prev %}
|
68
|
<h4>{{ _('Previous topic') }}</h4>
|
69
|
<p class="topless"><a href="{{ prev.link|e }}"
|
70
|
title="{{ _('previous chapter') }}">{{ prev.title }}</a></p>
|
71
|
{%- endif %}
|
72
|
{%- if next %}
|
73
|
<h4>{{ _('Next topic') }}</h4>
|
74
|
<p class="topless"><a href="{{ next.link|e }}"
|
75
|
title="{{ _('next chapter') }}">{{ next.title }}</a></p>
|
76
|
{%- endif %}
|
77
|
{%- endblock %}
|
78
|
{%- block sidebarsourcelink %}
|
79
|
{%- if show_source and has_source and sourcename %}
|
80
|
<h3>{{ _('This Page') }}</h3>
|
81
|
<ul class="this-page-menu">
|
82
|
<li><a href="{{ pathto('_sources/' + sourcename, true)|e }}"
|
83
|
rel="nofollow">{{ _('Show Source') }}</a></li>
|
84
|
</ul>
|
85
|
{%- endif %}
|
86
|
{%- endblock %}
|
87
|
{%- if customsidebar %}
|
88
|
{% include customsidebar %}
|
89
|
{%- endif %}
|
90
|
{%- block sidebarsearch %}
|
91
|
{%- if pagename != "search" %}
|
92
|
<div id="searchbox" style="display: none">
|
93
|
<h3>{{ _('Quick search') }}</h3>
|
94
|
<form class="search" action="{{ pathto('search') }}" method="get">
|
95
|
<input type="text" name="q" size="18" />
|
96
|
<input type="submit" value="{{ _('Go') }}" />
|
97
|
<input type="hidden" name="check_keywords" value="yes" />
|
98
|
<input type="hidden" name="area" value="default" />
|
99
|
</form>
|
100
|
<p class="searchtip" style="font-size: 90%">
|
101
|
{{ _('Enter search terms or a module, class or function name.') }}
|
102
|
</p>
|
103
|
</div>
|
104
|
<script type="text/javascript">$('#searchbox').show(0);</script>
|
105
|
{%- endif %}
|
106
|
{%- endblock %}
|
107
|
</div>
|
108
|
</div>
|
109
|
{%- endif %}{% endif %}
|
110
|
{%- endmacro %}
|
111
|
|
112
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
113
|
<head>
|
114
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
115
|
{{ metatags }}
|
116
|
{%- if not embedded %}
|
117
|
{%- set titlesuffix = " — "|safe + docstitle|e %}
|
118
|
{%- else %}
|
119
|
{%- set titlesuffix = "" %}
|
120
|
{%- endif %}
|
121
|
<title>{{ title|striptags }}{{ titlesuffix }}</title>
|
122
|
<link rel="stylesheet" href="{{ pathto('_static/' + style, 1) }}" type="text/css" />
|
123
|
<link rel="stylesheet" href="{{ pathto('_static/pygments.css', 1) }}" type="text/css" />
|
124
|
{%- if not embedded %}
|
125
|
<script type="text/javascript">
|
126
|
var DOCUMENTATION_OPTIONS = {
|
127
|
URL_ROOT: '{{ pathto("", 1) }}',
|
128
|
VERSION: '{{ release|e }}',
|
129
|
COLLAPSE_MODINDEX: false,
|
130
|
FILE_SUFFIX: '{{ file_suffix }}',
|
131
|
HAS_SOURCE: {{ has_source|lower }}
|
132
|
};
|
133
|
</script>
|
134
|
{%- for scriptfile in script_files %}
|
135
|
<script type="text/javascript" src="{{ pathto(scriptfile, 1) }}"></script>
|
136
|
{%- endfor %}
|
137
|
{%- if use_opensearch %}
|
138
|
<link rel="search" type="application/opensearchdescription+xml"
|
139
|
title="{% trans docstitle=docstitle|e %}Search within {{ docstitle }}{% endtrans %}"
|
140
|
href="{{ pathto('_static/opensearch.xml', 1) }}"/>
|
141
|
{%- endif %}
|
142
|
{%- if favicon %}
|
143
|
<link rel="shortcut icon" href="{{ pathto('_static/' + favicon, 1) }}"/>
|
144
|
{%- endif %}
|
145
|
{%- endif %}
|
146
|
{%- block linktags %}
|
147
|
{%- if hasdoc('about') %}
|
148
|
<link rel="author" title="{{ _('About these documents') }}" href="{{ pathto('about') }}" />
|
149
|
{%- endif %}
|
150
|
{%- if hasdoc('genindex') %}
|
151
|
<link rel="index" title="{{ _('Index') }}" href="{{ pathto('genindex') }}" />
|
152
|
{%- endif %}
|
153
|
{%- if hasdoc('search') %}
|
154
|
<link rel="search" title="{{ _('Search') }}" href="{{ pathto('search') }}" />
|
155
|
{%- endif %}
|
156
|
{%- if hasdoc('copyright') %}
|
157
|
<link rel="copyright" title="{{ _('Copyright') }}" href="{{ pathto('copyright') }}" />
|
158
|
{%- endif %}
|
159
|
<link rel="top" title="{{ docstitle|e }}" href="{{ pathto('index') }}" />
|
160
|
{%- if parents %}
|
161
|
<link rel="up" title="{{ parents[-1].title|striptags }}" href="{{ parents[-1].link|e }}" />
|
162
|
{%- endif %}
|
163
|
{%- if next %}
|
164
|
<link rel="next" title="{{ next.title|striptags }}" href="{{ next.link|e }}" />
|
165
|
{%- endif %}
|
166
|
{%- if prev %}
|
167
|
<link rel="prev" title="{{ prev.title|striptags }}" href="{{ prev.link|e }}" />
|
168
|
{%- endif %}
|
169
|
{%- endblock %}
|
170
|
{%- block extrahead %} {% endblock %}
|
171
|
</head>
|
172
|
<body>
|
173
|
{%- block header %}{% endblock %}
|
174
|
|
175
|
{%- block relbar1 %}{{ relbar() }}{% endblock %}
|
176
|
|
177
|
{# Comment out the sidebar
|
178
|
{%- block sidebar1 %} {# possible location for sidebar {% endblock %}
|
179
|
#}
|
180
|
<div class="document">
|
181
|
{%- block document %}
|
182
|
<div class="documentwrapper">
|
183
|
{%- if not embedded %}{% if not theme_nosidebar|tobool %}
|
184
|
<div class="bodywrapper">
|
185
|
{%- endif %}{% endif %}
|
186
|
<div class="body">
|
187
|
{% block body %} {% endblock %}
|
188
|
</div>
|
189
|
{%- if not embedded %}{% if not theme_nosidebar|tobool %}
|
190
|
</div>
|
191
|
{%- endif %}{% endif %}
|
192
|
</div>
|
193
|
{%- endblock %}
|
194
|
|
195
|
{# {%- block sidebar2 %}{{ sidebar() }}{% endblock %} #}
|
196
|
<div class="clearer"></div>
|
197
|
</div>
|
198
|
|
199
|
{%- block relbar2 %}{{ relbar() }}{% endblock %}
|
200
|
|
201
|
{%- block footer %}
|
202
|
<div class="footer">
|
203
|
{%- if hasdoc('copyright') %}
|
204
|
{% trans path=pathto('copyright'), copyright=copyright|e %}© <a href="{{ path }}">Copyright</a> {{ copyright }}.{% endtrans %}
|
205
|
{%- else %}
|
206
|
{% trans copyright=copyright|e %}© Copyright {{ copyright }}.{% endtrans %}
|
207
|
{%- endif %}
|
208
|
{%- if last_updated %}
|
209
|
{% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %}
|
210
|
{%- endif %}
|
211
|
{%- if show_sphinx %}
|
212
|
{% trans sphinx_version=sphinx_version|e %}Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> {{ sphinx_version }}.{% endtrans %}
|
213
|
{%- endif %}
|
214
|
</div>
|
215
|
{%- endblock %}
|
216
|
</body>
|
217
|
</html>
|