Debian Codegraph @

nature/base.html

raw
1 <!DOCTYPE html>
2
3 {%- macro nav_item(item) %}
4 {%- if item.active %}
5 <li class="nav-item">
6 {%- if item.url %}
7 <a href="{{ item.url|url }}">{{ item.title }}</a>
8 {%- else %}
9 {{ item.title }}
10 {%- endif %}
11 &#187; </li>
12 {%- if item.children %}
13 {%- for child in item.children %}
14 {{ nav_item(child) }}
15 {%- endfor %}
16 {%- endif %}
17 {%- endif %}
18 {%- endmacro %}
19
20 {%- macro relbar() %}
21 <div class="related" role="navigation" aria-label="related navigation">
22 <h3>Navigation</h3>
23 <ul>
24 {%- block repo %}
25 {%- if config.repo_url %}
26 <li class="right" style="margin-right: 10px">
27 <a href="{{ config.repo_url }}" title="View this project on {{ config.repo_name }}">
28 {%- if config.repo_name == 'GitHub' -%}
29 <img src="{{ 'static/github.png'|url }}" width=16px style="vertical-align: middle; margin-top: -1px" />
30 {%- elif config.repo_name == 'Bitbucket' -%}
31 <img src="{{ 'static/bitbucket.png'|url }}" width=16px style="vertical-align: middle; margin-top: -1px" />
32 {%- endif -%}
33 </a>
34 </li>
35 {%- endif %}
36 {%- endblock %}
37 <li class="right" style="margin-right: 10px">
38 <a href="{{ 'sitemap.html'|url }}" title="Sitemap" accesskey="I">index</a>
39 </li>
40 {% if page and page.next_page %}<li class="right">
41 <a href="{{ page.next_page.url|url }}" title="{{ page.next_page.title }}" accesskey="N">next</a> |
42 </li>{% endif %}
43 {% if page and page.previous_page %}<li class="right">
44 <a href="{{ page.previous_page.url|url }}" title="{{ page.previous_page.title }}" accesskey="P">previous</a> |
45 </li>{% endif %}
46 {% if config.theme.icon %}<li><img src="{{ config.theme.icon|url }}"
47 alt="icon" style="vertical-align: middle; margin-top: -1px"/></li>{% endif %}
48 <li class="nav-item nav-item-0">
49 <a href="{{ nav.homepage.url|url }}">{{ config.site_name }} {{ config.theme.release }} documentation</a> &#187;
50 </li>
51 {%- if page and not page.is_homepage %}
52 {%- for item in nav %}
53 {{ nav_item(item) }}
54 {%- endfor %}
55 {%- endif %}
56 </ul>
57 </div>
58 {%- endmacro %}
59
60 {%- macro toc_item(item, depth=6) %}
61 <li>
62 <a class="reference internal" href="{{ item.url }}">{{ item.title }}</a>
63 {%- if item.level < depth and item.children %}
64 <ul>
65 {%- for child in item.children %}
66 {{ toc_item(child, depth) }}
67 {%- endfor %}
68 </ul>
69 {%- endif %}
70 </li>
71 {%- endmacro %}
72
73 {%- macro sidebar() %}
74 <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
75 <div class="sphinxsidebarwrapper">
76 {%- block sidebarlogo %}
77 {%- if config.theme.logo %}
78 <p class="logo"><a href="{{ nav.homepage.url|url }}">
79 <img class="logo" src="{{ config.theme.logo|url }}" alt="Logo"/>
80 </a></p>
81 {%- endif %}
82 {%- endblock %}
83
84 {%- if page and page.toc %}
85 {%- set toc_depth = page.meta.toc_depth|int() if page.meta.toc_depth is defined else 6 %}
86 <h3><a href="index.html">Table Of Contents</a></h3>
87 <ul>
88 {%- for item in page.toc %}
89 {{ toc_item(item, toc_depth) }}
90 {%- endfor %}
91 </ul>
92 {%- endif %}
93
94 {%- block next_prev %}
95 {% if page and page.previous_page %}
96 <h4>Previous topic</h4>
97 <p class="topless">
98 <a href="{{ page.previous_page.url|url }}" title="previous page">{{ page.previous_page.title }}</a>
99 </p>
100 {%- endif %}
101
102 {% if page and page.next_page %}
103 <h4>Next topic</h4>
104 <p class="topless">
105 <a href="{{ page.next_page.url|url }}" title="next page">{{ page.next_page.title }}</a>
106 </p>
107 {%- endif %}
108 {%- endblock %}
109
110 <div role="note" aria-label="source link">
111 <h3>This Page</h3>
112 <ul class="this-page-menu">
113 {%- if config.theme.issue_tracker %}
114 <li><a href="{{ config.theme.issue_tracker }}">Report a Bug</a></li>
115 {%- endif %}
116 {%- if page and page.edit_url %}
117 <li><a href="{{ page.edit_url }}">Edit on {{ config.repo_name }}</a></li>
118 {%- endif %}
119 </ul>
120 </div>
121
122 {%- block search_button %}
123 {%- if config.plugins.search %}
124 <div id="searchbox" style="display: none" role="search">
125 <h3>Quick search</h3>
126 <form class="search" action="{{ 'search.html'|url }}" method="get">
127 <div><input type="text" name="q" placeholder="Search docs" /></div>
128 <div><input type="submit" value="Go" /></div>
129 </form>
130 </div>
131 <script type="text/javascript">$('#searchbox').show(0);</script>
132 {%- endif %}
133 {%- endblock %}
134
135 </div>
136 </div>
137 {%- endmacro %}
138
139 <html lang="en">
140 <head>
141 {%- block site_meta %}
142 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
143
144 {% if page and page.is_homepage %}<meta name="description" content="{{ config['site_description'] }}">{% endif %}
145 {% if config.site_author %}<meta name="author" content="{{ config.site_author }}">{% endif %}
146 {% if page and page.canonical_url %}<link rel="canonical" href="{{ page.canonical_url }}">{% endif %}
147 <link rel="shortcut icon" href="{{ 'favicon.ico'|url }}">
148 <link rel="search" title="Search" href="{{ 'search.html'|url }}" />
149 {% if page and page.next_page %}<link rel="next" title="{{ page.next_page.title }}" href="{{ page.next_page.url|url }}" />{% endif %}
150 {% if page and page.previous_page %}<link rel="prev" title="{{ page.previous_page.title }}" href="{{ page.previous_page.url|url }}" />{% endif %}
151 {%- endblock %}
152
153 {%- block htmltitle %}
154 <title>{% if page and page.title %}{{ page.title|striptags }} &#8212; {% endif %}{{ config.site_name }} {{ config.theme.release }} documentation</title>
155 {%- endblock %}
156
157 {%- block styles %}
158 <link rel="stylesheet" href="{{ 'static/nature.css'|url }}" type="text/css" />
159 <link rel="stylesheet" href="{{ 'static/pygments.css'|url }}" type="text/css" />
160 {%- for path in config.extra_css %}
161 <link rel="stylesheet" href="{{ path|url }}" type="text/css" />
162 {%- endfor %}
163 {%- endblock %}
164
165 {%- block libs %}
166 <script type="text/javascript" src="{{ 'static/jquery.js'|url }}"></script>
167 <script type="text/javascript" src="{{ 'static/underscore.js'|url }}"></script>
168 {%- endblock %}
169
170 {%- block analytics %}
171 {%- if config.google_analytics %}
172 <script>
173 (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
174 (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
175 m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
176 })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
177 ga('create', '{{ config.google_analytics[0] }}', '{{ config.google_analytics[1] }}');
178 ga('send', 'pageview');
179 </script>
180 {%- endif %}
181 {%- endblock %}
182
183 {%- block extrahead %} {% endblock %}
184 </head>
185
186 <body{% if page and page.is_homepage %} class="homepage"{% endif %}>
187
188 {%- block relbar1 %}{{ relbar() }}{% endblock %}
189
190 <div class="document">
191 <div class="documentwrapper">
192 <div class="bodywrapper">
193 <div class="body" role="main">
194
195 {%- block content %}{{ page.content }}{%- endblock %}
196
197 </div>
198 </div>
199 </div>
200
201 {%- block sidebar %}{{ sidebar() }}{% endblock %}
202
203 <div class="clearer"></div>
204 </div>
205
206 {%- block relbar2 %}{{ relbar() }}{% endblock %}
207
208 {%- block footer %}
209 <div class="footer" role="contentinfo">
210 {%- if config.copyright %}{{ config.copyright }}{% if config.site_author %}, {{ config.site_author }}{% endif %}.{% endif %}
211 Created using <a href="https://www.mkdocs.org/">MkDocs</a> {{ mkdocs_version }}.
212 </div>
213 {%- endblock %}
214
215 {%- block scripts %}
216 <script>var base_url = '{{ base_url }}';</script>
217 {%- for path in config.extra_javascript %}
218 <script src="{{ path|url }}"></script>
219 {%- endfor %}
220 {%- endblock %}
221
222 <!--
223 MkDocs version : {{ mkdocs_version }}
224 Docs Build Date UTC : {{ build_date_utc }}
225 -->
226 </body>
227 </html>