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