merge litesata
[litex.git] / misoclib / mem / doc / source / _themes / enjoydigital_sphinx_rtd_theme / layout.html
1 {# TEMPLATE VAR SETTINGS #}
2 {%- set url_root = pathto('', 1) %}
3 {%- if url_root == '#' %}{% set url_root = '' %}{% endif %}
4 {%- if not embedded and docstitle %}
5 {%- set titlesuffix = " — "|safe + docstitle|e %}
6 {%- else %}
7 {%- set titlesuffix = "" %}
8 {%- endif %}
9
10 <!DOCTYPE html>
11 <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
12 <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
13 <head>
14 <meta charset="utf-8">
15 <meta name="viewport" content="width=device-width, initial-scale=1.0">
16 {% block htmltitle %}
17 <title>{{ title|striptags|e }}{{ titlesuffix }}</title>
18 {% endblock %}
19
20 {# FAVICON #}
21 {% if favicon %}
22 <link rel="shortcut icon" href="{{ pathto('_static/' + favicon, 1) }}"/>
23 {% endif %}
24
25 {# CSS #}
26 <link href='https://fonts.googleapis.com/css?family=Lato:400,700|Roboto+Slab:400,700|Inconsolata:400,700' rel='stylesheet' type='text/css'>
27
28 {# OPENSEARCH #}
29 {% if not embedded %}
30 {% if use_opensearch %}
31 <link rel="search" type="application/opensearchdescription+xml" title="{% trans docstitle=docstitle|e %}Search within {{ docstitle }}{% endtrans %}" href="{{ pathto('_static/opensearch.xml', 1) }}"/>
32 {% endif %}
33
34 {% endif %}
35
36 {# RTD hosts this file, so just load on non RTD builds #}
37 {% if not READTHEDOCS %}
38 <link rel="stylesheet" href="{{ pathto('_static/' + style, 1) }}" type="text/css" />
39 {% endif %}
40
41 {% for cssfile in css_files %}
42 <link rel="stylesheet" href="{{ pathto(cssfile, 1) }}" type="text/css" />
43 {% endfor %}
44
45 {%- block linktags %}
46 {%- if hasdoc('about') %}
47 <link rel="author" title="{{ _('About these documents') }}"
48 href="{{ pathto('about') }}"/>
49 {%- endif %}
50 {%- if hasdoc('genindex') %}
51 <link rel="index" title="{{ _('Index') }}"
52 href="{{ pathto('genindex') }}"/>
53 {%- endif %}
54 {%- if hasdoc('search') %}
55 <link rel="search" title="{{ _('Search') }}" href="{{ pathto('search') }}"/>
56 {%- endif %}
57 {%- if hasdoc('copyright') %}
58 <link rel="copyright" title="{{ _('Copyright') }}" href="{{ pathto('copyright') }}"/>
59 {%- endif %}
60 <link rel="top" title="{{ docstitle|e }}" href="{{ pathto('index') }}"/>
61 {%- if parents %}
62 <link rel="up" title="{{ parents[-1].title|striptags|e }}" href="{{ parents[-1].link|e }}"/>
63 {%- endif %}
64 {%- if next %}
65 <link rel="next" title="{{ next.title|striptags|e }}" href="{{ next.link|e }}"/>
66 {%- endif %}
67 {%- if prev %}
68 <link rel="prev" title="{{ prev.title|striptags|e }}" href="{{ prev.link|e }}"/>
69 {%- endif %}
70 {%- endblock %}
71 {%- block extrahead %} {% endblock %}
72
73 {# Keep modernizr in head - http://modernizr.com/docs/#installing #}
74 <script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.6.2/modernizr.min.js"></script>
75
76 </head>
77
78 <body class="wy-body-for-nav" role="document">
79
80
81 <div class="grid-to-center-rtd-theme">
82
83 <div class="wy-grid-for-nav">
84
85
86
87 {# SIDE NAV, TOGGLES ON MOBILE #}
88 <nav data-toggle="wy-nav-shift" class="wy-nav-side">
89 <div class="wy-side-nav-search">
90 <!-- <a href="{{ pathto(master_doc) }}" class="fa fa-home"> {{ project }}</a> -->
91 <a href="{{ pathto(master_doc) }}"> <img src="{{ url_root }}/_static/{{ logo }}" alt="Logo" /> </a>
92
93 {% include "searchbox.html" %}
94 </div>
95
96 <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
97
98 {% set toctree = toctree(maxdepth=4, collapse=False, includehidden=True) %}
99 {% if toctree %}
100 {{ toctree }}
101 <a class="toctree-l1" title="Index" href="{{ pathto('genindex') }}">Index</a>
102 {% else %}
103 <!-- Local TOC -->
104 <div class="local-toc">{{ toc }}</div>
105 {% endif %}
106 </div>
107 &nbsp;
108 </nav>
109
110 <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
111
112 {# MOBILE NAV, TRIGGLES SIDE NAV ON TOGGLE #}
113 <nav class="wy-nav-top" role="navigation" aria-label="top navigation">
114 <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
115 <!-- <a href="{{ pathto(master_doc) }}">{{ project }}</a> -->
116 <a href="{{ pathto(master_doc) }}"> <img src="{{ url_root }}/_static/{{ logo }}" alt="Logo" /> </a>
117 </nav>
118
119
120
121 {# PAGE CONTENT #}
122 <div class="wy-nav-content">
123 <div class="rst-content">
124
125 <!--begin hamishw addition -->
126
127 <!--Nav bar defined as a document followed by short version of nav text and long version
128 If no such page exists then nav item is not created. CSS defines which of the long or short version is
129 displayed. -->
130 {% set navigation_bar = [
131 ('docs/index', 'Docs', 'Documentation'),
132 ('docs/getting_started/downloads', 'SDK', 'Downloads'),
133 ('docs/introducing_litesata/community', 'Help', 'Community'),
134 ('https://github.com/enjoy-digital/litesata', 'Github', 'Github Project')
135 ] -%}
136
137
138 <div class="main-nav-bar" style="">
139
140 <!-- the layout of the menu options - centered with left and right alignment of the first and last loop items respectively.
141 This is VERY UGLY as I'm adding to the CSS in the code to force the alignment. Would be better just to have the elements here and have the CSS in the CSS file. This could be done with a CSS selector, but not worked out how yet. -->
142
143 <ul id="menu-options">
144 {% for document, shorttext, longtext in navigation_bar %}
145 {%- if hasdoc(document) %}
146 <li{%- if loop.first %} style="text-align:left;" {%- endif %}{%- if loop.last %} style="text-align:right;" {%- endif %}><a class="navlink-short" title="{{ shorttext }}" href="{{ pathto(document) }}">{{ shorttext }}</a><a class="navlink-long" title="{{ longtext }}" href="{{ pathto(document) }}">{{ longtext }}</a></li>
147 {%- elif document | truncate(4, True, end='') == 'http' %}
148 <li{%- if loop.first %} style="text-align:left;" {%- endif %}{%- if loop.last %} style="text-align:right;" {%- endif %}><a class="navlink-short external" href="{{ document }}">{{ shorttext }}</a><a class="navlink-long external" href="{{ document }}">{{ longtext }}</a></li>
149 {%- endif %}
150 {% endfor %}
151 </ul>
152 <!-- <div style="clear:both;"></div> -->
153 {% include "breadcrumbs.html" %}
154
155 </div>
156
157
158
159 <!--end hamishw addition -->
160
161 <!--HamishW move {% include "breadcrumbs.html" %} -->
162 <div role="main">
163 {% block body %}{% endblock %}
164 </div>
165 {% include "footer.html" %}
166 </div>
167 </div>
168
169 </section>
170
171 </div>
172 {% include "versions.html" %}
173
174 {% if not embedded %}
175
176 <script type="text/javascript">
177 var DOCUMENTATION_OPTIONS = {
178 URL_ROOT:'{{ url_root }}',
179 VERSION:'{{ release|e }}',
180 COLLAPSE_INDEX:false,
181 FILE_SUFFIX:'{{ '' if no_search_suffix else file_suffix }}',
182 HAS_SOURCE: {{ has_source|lower }}
183 };
184 </script>
185 {%- for scriptfile in script_files %}
186 <script type="text/javascript" src="{{ pathto(scriptfile, 1) }}"></script>
187 {%- endfor %}
188
189 {% endif %}
190
191 {# RTD hosts this file, so just load on non RTD builds #}
192 {% if not READTHEDOCS %}
193 <script type="text/javascript" src="{{ pathto('_static/js/theme.js', 1) }}"></script>
194 {% endif %}
195
196 {# STICKY NAVIGATION #}
197 {% if theme_sticky_navigation %}
198 <script type="text/javascript">
199 jQuery(function () {
200 SphinxRtdTheme.StickyNav.enable();
201 });
202 </script>
203 {% endif %}
204
205 {%- block footer %} {% endblock %}
206 </div>
207 </body>
208 </html>