5 Master layout template for Sphinx themes.
7 :copyright: Copyright
2007-
2013 by the Sphinx team, see AUTHORS.
8 :license: BSD, see LICENSE for details.
11 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
12 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
14 {%- set reldelim1 = reldelim1 is not defined and '
»' or reldelim1 %}
15 {%- set reldelim2 = reldelim2 is not defined and ' |' or reldelim2 %}
16 {%- set render_sidebar = (not embedded) and (not theme_nosidebar|tobool) and
18 {%- set url_root = pathto('',
1) %}
20 {%- if url_root == '#' %}{% set url_root = '' %}{% endif %}
21 {%- if not embedded and docstitle %}
22 {%- set titlesuffix =
" — "|safe + docstitle|e %}
24 {%- set titlesuffix =
"" %}
29 <h3>{{ _('Navigation') }}
</h3>
31 {%- for rellink in rellinks %}
32 <li class=
"right" {% if loop.first %}
style=
"margin-right: 10px"{% endif %}
>
33 <a href=
"{{ pathto(rellink[0]) }}" title=
"{{ rellink[1]|striptags|e }}"
34 {{ accesskey(rellink[
2]) }}
>{{ rellink[
3] }}
</a>
35 {%- if not loop.first %}{{ reldelim2 }}{% endif %}
</li>
37 {%- block rootrellink %}
38 <li><a href=
"{{ pathto(master_doc) }}">{{ shorttitle|e }}
</a>{{ reldelim1 }}
</li>
40 {%- for parent in parents %}
41 <li><a href=
"{{ parent.link|e }}" {% if loop.last %}{{ accesskey(
"U") }}{% endif %}
>{{ parent.title }}
</a>{{ reldelim1 }}
</li>
43 {%- block relbaritems %} {% endblock %}
48 {%- macro sidebar() %}
49 {%- if render_sidebar %}
50 <div class=
"sphinxsidebar">
51 <div class=
"sphinxsidebarwrapper">
52 {%- block sidebarlogo %}
54 <p class=
"logo"><a href=
"{{ pathto(master_doc) }}">
55 <img class=
"logo" src=
"{{ pathto('_static/' + logo, 1) }}" alt=
"Logo"/>
59 {%- if sidebars != None %}
60 {#- new style sidebar: explicitly include/exclude templates #}
61 {%- for sidebartemplate in sidebars %}
62 {%- include sidebartemplate %}
65 {#- old style sidebars: using blocks -- should be deprecated #}
66 {%- block sidebartoc %}
67 {%- include
"localtoc.html" %}
69 {%- block sidebarrel %}
70 {%- include
"relations.html" %}
72 {%- block sidebarsourcelink %}
73 {%- include
"sourcelink.html" %}
75 {%- if customsidebar %}
76 {%- include customsidebar %}
78 {%- block sidebarsearch %}
79 {%- include
"searchbox.html" %}
88 <script type=
"text/javascript">
89 var DOCUMENTATION_OPTIONS = {
90 URL_ROOT: '{{ url_root }}',
91 VERSION: '{{ release|e }}',
92 COLLAPSE_INDEX: false,
93 FILE_SUFFIX: '{{ '' if no_search_suffix else file_suffix }}',
94 HAS_SOURCE: {{ has_source|lower }}
97 {%- for scriptfile in script_files %}
98 <script type=
"text/javascript" src=
"{{ pathto(scriptfile, 1) }}"></script>
103 <link rel=
"stylesheet" href=
"{{ pathto('_static/' + style, 1) }}" type=
"text/css" />
104 <link rel=
"stylesheet" href=
"{{ pathto('_static/pygments.css', 1) }}" type=
"text/css" />
105 {%- for cssfile in css_files %}
106 <link rel=
"stylesheet" href=
"{{ pathto(cssfile, 1) }}" type=
"text/css" />
110 <html xmlns=
"http://www.w3.org/1999/xhtml">
112 <meta http-equiv=
"Content-Type" content=
"text/html; charset={{ encoding }}" />
114 {%- block htmltitle %}
115 <title>{{ title|striptags|e }}{{ titlesuffix }}
</title>
118 {%- if not embedded %}
120 {%- if use_opensearch %}
121 <link rel=
"search" type=
"application/opensearchdescription+xml"
122 title=
"{% trans docstitle=docstitle|e %}Search within {{ docstitle }}{% endtrans %}"
123 href=
"{{ pathto('_static/opensearch.xml', 1) }}"/>
126 <link rel=
"shortcut icon" href=
"{{ pathto('_static/' + favicon, 1) }}"/>
129 {%- block linktags %}
130 {%- if hasdoc('about') %}
131 <link rel=
"author" title=
"{{ _('About these documents') }}" href=
"{{ pathto('about') }}" />
133 {%- if hasdoc('genindex') %}
134 <link rel=
"index" title=
"{{ _('Index') }}" href=
"{{ pathto('genindex') }}" />
136 {%- if hasdoc('search') %}
137 <link rel=
"search" title=
"{{ _('Search') }}" href=
"{{ pathto('search') }}" />
139 {%- if hasdoc('copyright') %}
140 <link rel=
"copyright" title=
"{{ _('Copyright') }}" href=
"{{ pathto('copyright') }}" />
142 <link rel=
"top" title=
"{{ docstitle|e }}" href=
"{{ pathto('index') }}" />
144 <link rel=
"up" title=
"{{ parents[-1].title|striptags|e }}" href=
"{{ parents[-1].link|e }}" />
147 <link rel=
"next" title=
"{{ next.title|striptags|e }}" href=
"{{ next.link|e }}" />
150 <link rel=
"prev" title=
"{{ prev.title|striptags|e }}" href=
"{{ prev.link|e }}" />
153 {%- block extrahead %} {% endblock %}
156 {%- block header %}{% endblock %}
158 {%- block relbar1 %}{{ relbar() }}{% endblock %}
161 {%- block sidebar1 %} {# possible location for sidebar #} {% endblock %}
163 <div class=
"document">
164 {%- block document %}
165 <div class=
"documentwrapper">
166 {%- if render_sidebar %}
167 <div class=
"bodywrapper">
170 {% block body %} {% endblock %}
172 {%- if render_sidebar %}
178 {%- block sidebar2 %}{{ sidebar() }}{% endblock %}
179 <div class=
"clearer"></div>
183 {%- block relbar2 %}{{ relbar() }}{% endblock %}
187 {%- if show_copyright %}
188 {%- if hasdoc('copyright') %}
189 {% trans path=pathto('copyright'), copyright=copyright|e %}
© <a href=
"{{ path }}">Copyright
</a> {{ copyright }}.{% endtrans %}
191 {% trans copyright=copyright|e %}
© Copyright {{ copyright }}.{% endtrans %}
194 {%- if last_updated %}
195 {% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %}
197 {%- if show_sphinx %}
198 {% trans sphinx_version=sphinx_version|e %}Created using
<a href=
"http://sphinx-doc.org/">Sphinx
</a> {{ sphinx_version }}.{% endtrans %}
201 <p>asdf asdf asdf asdf
22</p>