|
1 | | -{%- set render_sidebar = (not embedded) and (not theme_nosidebar|tobool) and |
2 | | - (sidebars != []) %} |
3 | | -{%- set url_root = pathto('', 1) %} |
4 | | -{%- if url_root == '#' %}{% set url_root = '' %}{% endif %} |
5 | | -{%- if not embedded and docstitle %} |
6 | | - {%- set titlesuffix = " — "|safe + docstitle|e %} |
7 | | -{%- else %} |
8 | | - {%- set titlesuffix = "" %} |
9 | | -{%- endif -%} |
| 1 | +{% extends "basic/layout.html" %} |
10 | 2 |
|
11 | | -<!DOCTYPE html> |
12 | | -{%- if html_tag %} |
13 | | -{{ html_tag }} |
14 | | -{%- else %} |
15 | | -<html{% if language is not none %} lang="{{ language }}"{% endif %}> |
16 | | -{%- endif %} |
17 | | - <head> |
18 | | - <meta charset="utf-8"> |
19 | | - <meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9"> |
20 | | - |
21 | | - {%- block htmltitle %} |
22 | | - <title>{{ title|striptags|e }}{{ titlesuffix }}</title> |
23 | | - {%- endblock %} |
24 | | - |
25 | | - {%- block css %} |
26 | | - {%- for css in css_files %} |
27 | | - {%- if css|attr("filename") %} |
28 | | - {{ css_tag(css) }} |
| 3 | +{%- block htmltitle %} |
| 4 | + {%- if not embedded and docstitle %} |
| 5 | + <title>{{ title|striptags|e }} — {{ docstitle|e }}</title> |
29 | 6 | {%- else %} |
30 | | - <link rel="stylesheet" href="{{ pathto(css, 1) }}" type="text/css" /> |
31 | | - {%- endif %} |
32 | | - {%- endfor %} |
33 | | - {%- endblock %} |
34 | | - |
35 | | - {%- if not embedded %} |
36 | | - {%- block scripts %} |
37 | | - <script type="text/javascript" id="documentation_options" data-url_root="{{ pathto('', 1) }}" src="{{ pathto('_static/documentation_options.js', 1) }}"></script> |
38 | | - {%- for js in script_files %} |
39 | | - {{ js_tag(js) }} |
40 | | - {%- endfor %} |
41 | | - {%- endblock %} |
42 | | - |
43 | | - {%- if favicon %} |
44 | | - <link rel="shortcut icon" href="{{ pathto('_static/' + favicon, 1) }}"/> |
45 | | - {%- endif %} |
46 | | - |
47 | | - {%- endif %} |
48 | | - |
49 | | - {%- block linktags %} |
50 | | - {%- if hasdoc('genindex') %} |
51 | | - <link rel="index" title="{{ _('Index') }}" href="{{ pathto('genindex') }}" /> |
52 | | - {%- endif %} |
53 | | - {%- if hasdoc('search') %} |
54 | | - <link rel="search" title="{{ _('Search') }}" href="{{ pathto('search') }}" /> |
55 | | - {%- endif %} |
56 | | - |
57 | | - <link rel="top" title="{{ docstitle|e }}" href="{{ pathto(master_doc) }}" /> |
58 | | - {%- if parents %} |
59 | | - <link rel="up" title="{{ parents[-1].title|striptags|e }}" href="{{ parents[-1].link|e }}" /> |
| 7 | + <title>{{ title|striptags|e }}</title> |
60 | 8 | {%- endif %} |
61 | | - {%- if next %} |
62 | | - <link rel="next" title="{{ next.title|striptags|e }}" href="{{ next.link|e }}" /> |
63 | | - {%- endif %} |
64 | | - {%- if prev %} |
65 | | - <link rel="prev" title="{{ prev.title|striptags|e }}" href="{{ prev.link|e }}" /> |
66 | | - {%- endif %} |
67 | | - {%- if pageurl %} |
68 | | - <link rel="canonical" href="{{ pageurl|e }}" /> |
69 | | - {%- endif %} |
70 | | - {% endblock %} |
| 9 | +{%- endblock %} |
71 | 10 |
|
72 | | - {%- block extrahead %} {% endblock %} |
73 | | - </head> |
74 | | - {%- block body_tag %}<body>{% endblock %} |
| 11 | +{% block content %} |
75 | 12 | <div id="container"> |
76 | 13 | <header> |
77 | 14 | <div class="logo-area"> |
|
87 | 24 | </header> |
88 | 25 |
|
89 | 26 | <div id="content"> |
90 | | - {%- if render_sidebar %} |
91 | | - <aside class="sphinxsidebar" role="navigation" aria-label="main navigation"> |
92 | | - {%- for sidebartemplate in sidebars %} |
93 | | - {%- include sidebartemplate %} |
94 | | - {%- endfor %} |
95 | | - </aside> |
96 | | - {%- endif %} |
| 27 | + {{ sidebar() }} |
97 | 28 |
|
98 | 29 | <div id="main"> |
99 | 30 | <nav id="navigation"> |
|
106 | 37 | </ul> |
107 | 38 | </nav> |
108 | 39 |
|
109 | | - {%- block content %} |
110 | 40 | <main class="document"> |
111 | 41 | {%- block document %} |
112 | 42 | <div class="body" role="main"> |
113 | 43 | {% block body %} {% endblock %} |
114 | 44 | </div> |
115 | 45 | {%- endblock %} |
116 | 46 | </main> |
117 | | - {%- endblock %} |
118 | 47 |
|
119 | | - {%- block footer %} |
120 | 48 | <footer> |
121 | 49 | {%- if show_copyright %} |
122 | 50 | © {{ copyright }} |
123 | 51 | {%- endif %} |
124 | 52 | </footer> |
125 | | - {%- endblock %} |
126 | 53 | </div> |
127 | 54 | </div> |
128 | 55 | </div> |
129 | | - </body> |
130 | | -</html> |
| 56 | +{% endblock %} |
| 57 | + |
| 58 | +{% block relbar1 %}{% endblock %} |
| 59 | +{% block relbar2 %}{% endblock %} |
| 60 | +{% block footer %}{% endblock %} |
0 commit comments