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 %}
7 {%- set titlesuffix =
"" %}
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]-->
14 <meta charset=
"utf-8">
15 <meta name=
"viewport" content=
"width=device-width, initial-scale=1.0">
17 <title>{{ title|striptags|e }}{{ titlesuffix }}
</title>
22 <link rel=
"shortcut icon" href=
"{{ pathto('_static/' + favicon, 1) }}"/>
26 <link href='https://fonts.googleapis.com/css?family=Lato:
400,
700|Roboto+Slab:
400,
700|Inconsolata:
400,
700' rel='stylesheet' type='text/css'
>
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) }}"/>
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" />
41 {% for cssfile in css_files %}
42 <link rel=
"stylesheet" href=
"{{ pathto(cssfile, 1) }}" type=
"text/css" />
46 {%- if hasdoc('about') %}
47 <link rel=
"author" title=
"{{ _('About these documents') }}"
48 href=
"{{ pathto('about') }}"/>
50 {%- if hasdoc('genindex') %}
51 <link rel=
"index" title=
"{{ _('Index') }}"
52 href=
"{{ pathto('genindex') }}"/>
54 {%- if hasdoc('search') %}
55 <link rel=
"search" title=
"{{ _('Search') }}" href=
"{{ pathto('search') }}"/>
57 {%- if hasdoc('copyright') %}
58 <link rel=
"copyright" title=
"{{ _('Copyright') }}" href=
"{{ pathto('copyright') }}"/>
60 <link rel=
"top" title=
"{{ docstitle|e }}" href=
"{{ pathto('index') }}"/>
62 <link rel=
"up" title=
"{{ parents[-1].title|striptags|e }}" href=
"{{ parents[-1].link|e }}"/>
65 <link rel=
"next" title=
"{{ next.title|striptags|e }}" href=
"{{ next.link|e }}"/>
68 <link rel=
"prev" title=
"{{ prev.title|striptags|e }}" href=
"{{ prev.link|e }}"/>
71 {%- block extrahead %} {% endblock %}
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>
78 <body class=
"wy-body-for-nav" role=
"document">
81 <div class=
"grid-to-center-rtd-theme">
83 <div class=
"wy-grid-for-nav">
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>
93 {% include
"searchbox.html" %}
96 <div class=
"wy-menu wy-menu-vertical" data-spy=
"affix" role=
"navigation" aria-label=
"main navigation">
98 {% set toctree = toctree(maxdepth=
4, collapse=False, includehidden=True) %}
101 <a class=
"toctree-l1" title=
"Index" href=
"{{ pathto('genindex') }}">Index
</a>
104 <div class=
"local-toc">{{ toc }}
</div>
110 <section data-toggle=
"wy-nav-shift" class=
"wy-nav-content-wrap">
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>
122 <div class=
"wy-nav-content">
123 <div class=
"rst-content">
125 <!--begin hamishw addition -->
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
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')
138 <div class=
"main-nav-bar" style=
"">
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. -->
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>
152 <!-- <div style="clear:both;"></div> -->
153 {% include
"breadcrumbs.html" %}
159 <!--end hamishw addition -->
161 <!--HamishW move {% include "breadcrumbs.html" %} -->
163 {% block body %}{% endblock %}
165 {% include
"footer.html" %}
172 {% include
"versions.html" %}
174 {% if not embedded %}
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 }}
185 {%- for scriptfile in script_files %}
186 <script type=
"text/javascript" src=
"{{ pathto(scriptfile, 1) }}"></script>
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>
196 {# STICKY NAVIGATION #}
197 {% if theme_sticky_navigation %}
198 <script type=
"text/javascript">
200 SphinxRtdTheme.StickyNav.enable();
205 {%- block footer %} {% endblock %}