Skip to content

Commit 7d6cdd3

Browse files
committed
adding missing rtd layout
Was accidentally removed with some refactoring
1 parent ebf116e commit 7d6cdd3

File tree

1 file changed

+150
-0
lines changed

1 file changed

+150
-0
lines changed
Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
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+
{#{%- set lang_attr = 'en' if language == None else (language | replace('_', '-')) %}#}
10+
11+
<!DOCTYPE html>
12+
<!--[if IE 8]>
13+
<html class="no-js lt-ie9" lang="en"> <![endif]-->
14+
<!--[if gt IE 8]><!-->
15+
<html class="no-js" lang="en"> <!--<![endif]-->
16+
<head>
17+
<meta charset="utf-8">
18+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
19+
{#{% block htmltitle %}#}
20+
{#<title>{{ title|striptags|e }}{{ titlesuffix }}</title>#}
21+
{#{% endblock %}#}
22+
23+
{# FAVICON #}
24+
{#{% if favicon %}#}
25+
{#<link rel="shortcut icon" href="{{ pathto('_static/' + favicon, 1) }}"/>#}
26+
{#{% endif %}#}
27+
{# CANONICAL URL #}
28+
{#{% if theme_canonical_url %}#}
29+
{#<link rel="canonical" href="{{ theme_canonical_url }}{{ pagename }}.html"/>#}
30+
{#{% endif %}#}
31+
32+
{# CSS #}
33+
34+
<link rel="stylesheet" href="{{ asset('css/theme.css') }}" type="text/css" />
35+
<link rel="stylesheet" href="{{ asset('css/badge_only.css') }}" type="text/css" />
36+
37+
{# Keep modernizr in head - http://modernizr.com/docs/#installing #}
38+
<script src="{{ asset('js/modernizr.min.js') }}"></script>
39+
40+
</head>
41+
42+
<body class="wy-body-for-nav">
43+
{% block extrabody %} {% endblock %}
44+
<div class="wy-grid-for-nav">
45+
46+
{# SIDE NAV, TOGGLES ON MOBILE #}
47+
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
48+
<div class="wy-side-scroll">
49+
<div class="wy-side-nav-search">
50+
{% block sidebartitle %}
51+
52+
{#{% if logo and theme_logo_only %}#}
53+
{#<a href="{{ pathto(master_doc) }}">#}
54+
{#{% else %}#}
55+
{#<a href="{{ pathto(master_doc) }}" class="icon icon-home"> {{ project }}#}
56+
{#{% endif %}#}
57+
58+
{#{% if logo %}#}
59+
{# Not strictly valid HTML, but it's the only way to display/scale#}
60+
{#it properly, without weird scripting or heaps of work#}
61+
{##}
62+
{#<img src="{{ pathto('_static/' + logo, 1) }}" class="logo" alt="Logo"/>#}
63+
{#{% endif %}#}
64+
{#</a>#}
65+
{% endblock %}
66+
</div>
67+
68+
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
69+
{#{% block menu %}#}
70+
{##}
71+
{#The singlehtml builder doesn't handle this toctree call when the#}
72+
{#toctree is empty. Skip building this for now.#}
73+
{##}
74+
{#{% if 'singlehtml' not in builder %}#}
75+
{#{% set global_toc = toctree(maxdepth=theme_navigation_depth|int,#}
76+
{#collapse=theme_collapse_navigation|tobool,#}
77+
{#includehidden=theme_includehidden|tobool,#}
78+
{#titles_only=theme_titles_only|tobool) %}#}
79+
{#{% endif %}#}
80+
{#{% if global_toc %}#}
81+
{#{{ global_toc }}#}
82+
{#{% else %}#}
83+
{#<!-- Local TOC -->#}
84+
{#<div class="local-toc">{{ toc }}</div>#}
85+
{#{% endif %}#}
86+
{#{% endblock %}#}
87+
{#</div>#}
88+
</div>
89+
</div>
90+
</nav>
91+
92+
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
93+
94+
{# MOBILE NAV, TRIGGLES SIDE NAV ON TOGGLE #}
95+
{#<nav class="wy-nav-top" aria-label="top navigation">#}
96+
{#{% block mobile_nav %}#}
97+
{#<i data-toggle="wy-nav-top" class="fa fa-bars"></i>#}
98+
{#<a href="{{ pathto(master_doc) }}">{{ project }}</a>#}
99+
{#{% endblock %}#}
100+
{#</nav>#}
101+
102+
103+
<div class="wy-nav-content">
104+
{%- block content %}
105+
<div class="rst-content">
106+
{#{% include "breadcrumbs.html" %}#}
107+
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
108+
{%- block document %}
109+
<div itemprop="articleBody">
110+
{% block body %}{% endblock %}
111+
</div>
112+
{%- endblock %}
113+
</div>
114+
{#{% include "footer.html" %}#}
115+
</div>
116+
{%- endblock %}
117+
</div>
118+
119+
</section>
120+
121+
</div>
122+
{#{% include "versions.html" %}#}
123+
124+
{#<script type="text/javascript">#}
125+
{#var DOCUMENTATION_OPTIONS = {#}
126+
{#URL_ROOT: '{{ url_root }}',#}
127+
{#VERSION: '{{ release|e }}',#}
128+
{#LANGUAGE: '{{ language }}',#}
129+
{#COLLAPSE_INDEX: false,#}
130+
{#FILE_SUFFIX: '{{ '' if no_search_suffix else file_suffix }}',#}
131+
{#HAS_SOURCE: {{ has_source|lower }},#}
132+
{#SOURCELINK_SUFFIX: '{{ sourcelink_suffix }}'#}
133+
{#}#}
134+
{#</script>#}
135+
{#{%- for scriptfile in script_files %}#}
136+
{#<script type="text/javascript" src="{{ pathto(scriptfile, 1) }}"></script>#}
137+
{#{%- endfor %}#}
138+
139+
<script type="text/javascript" src="{{ asset('js/theme.js') }}"></script>
140+
141+
{#<script type="text/javascript">#}
142+
{#jQuery(function () {#}
143+
{#SphinxRtdTheme.Navigation.enable({{ 'true' if theme_sticky_navigation|tobool else 'false' }})#}
144+
{#})#}
145+
{#</script>#}
146+
147+
{%- block footer %} {% endblock %}
148+
149+
</body>
150+
</html>

0 commit comments

Comments
 (0)