Python: add Sphinx doc project
[babeltrace.git] / doc / bindings / python / source / _themes / 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,400italic,700italic|Roboto+Slab:400,700|Inconsolata:400,700&subset=latin,cyrillic' 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 <div class="wy-grid-for-nav">
81
82 {# SIDE NAV, TOGGLES ON MOBILE #}
83 <nav data-toggle="wy-nav-shift" class="wy-nav-side">
84 <div class="wy-side-nav-search">
85 {% block sidebartitle %}
86 <a href="{{ pathto(master_doc) }}" class="fa fa-home"> {{ project }}</a>
87 {% endblock %}
88 {% include "searchbox.html" %}
89 </div>
90
91 <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
92 {% block menu %}
93 {% set toctree = toctree(maxdepth=2, collapse=False, includehidden=True) %}
94 {% if toctree %}
95 {{ toctree }}
96 {% else %}
97 <!-- Local TOC -->
98 <div class="local-toc">{{ toc }}</div>
99 {% endif %}
100 {% endblock %}
101 </div>
102 &nbsp;
103 </nav>
104
105 <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
106
107 {# MOBILE NAV, TRIGGLES SIDE NAV ON TOGGLE #}
108 <nav class="wy-nav-top" role="navigation" aria-label="top navigation">
109 <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
110 <a href="{{ pathto(master_doc) }}">{{ project }}</a>
111 </nav>
112
113
114 {# PAGE CONTENT #}
115 <div class="wy-nav-content">
116 <div class="rst-content">
117 {% include "breadcrumbs.html" %}
118 <div role="main" class="document">
119 {% block body %}{% endblock %}
120 </div>
121 {% include "footer.html" %}
122 </div>
123 </div>
124
125 </section>
126
127 </div>
128 {% include "versions.html" %}
129
130 {% if not embedded %}
131
132 <script type="text/javascript">
133 var DOCUMENTATION_OPTIONS = {
134 URL_ROOT:'{{ url_root }}',
135 VERSION:'{{ release|e }}',
136 COLLAPSE_INDEX:false,
137 FILE_SUFFIX:'{{ '' if no_search_suffix else file_suffix }}',
138 HAS_SOURCE: {{ has_source|lower }}
139 };
140 </script>
141 {%- for scriptfile in script_files %}
142 <script type="text/javascript" src="{{ pathto(scriptfile, 1) }}"></script>
143 {%- endfor %}
144
145 {% endif %}
146
147 {# RTD hosts this file, so just load on non RTD builds #}
148 {% if not READTHEDOCS %}
149 <script type="text/javascript" src="{{ pathto('_static/js/theme.js', 1) }}"></script>
150 {% endif %}
151
152 {# STICKY NAVIGATION #}
153 {% if theme_sticky_navigation %}
154 <script type="text/javascript">
155 jQuery(function () {
156 SphinxRtdTheme.StickyNav.enable();
157 });
158 </script>
159 {% endif %}
160
161 {%- block footer %} {% endblock %}
162
163 </body>
164 </html>
This page took 0.032958 seconds and 4 git commands to generate.