1 {% extends "basic/layout.html" %}
3 {% set theme_css_files = [] %}
4 {% if theme_bootstrap_version == "3" %}
5 {% set bootstrap_version, bootstrap_additional_css, navbar_version = "3.1.0", "theme", "" %}
6 {% set bs_span_prefix = "col-md-" %}
8 {% set bootstrap_version, bootstrap_additional_css, navbar_version = "2.3.2", "responsive", "-2" %}
9 {% set bs_span_prefix = "span" %}
12 {% if theme_bootswatch_theme %}
13 {# BS2 needs "bootstrap-responsive.css". BS3 doesn't. #}
14 {% if theme_bootstrap_version == "3" %}
15 {% set theme_css_files = theme_css_files + [
16 '_static/bootswatch-' + bootstrap_version + '/' + theme_bootswatch_theme + '/bootstrap.min.css',
17 '_static/bootstrap-sphinx.css'
21 {% set theme_css_files = theme_css_files + [
22 '_static/bootswatch-' + bootstrap_version + '/' + theme_bootswatch_theme + '/bootstrap.min.css',
23 '_static/bootstrap-' + bootstrap_version + '/css/bootstrap-' + bootstrap_additional_css + '.min.css',
24 '_static/bootstrap-sphinx.css'
29 {% set theme_css_files = theme_css_files + [
30 '_static/bootstrap-' + bootstrap_version + '/css/bootstrap.min.css',
31 '_static/bootstrap-' + bootstrap_version + '/css/bootstrap-' + bootstrap_additional_css + '.min.css',
32 '_static/bootstrap-sphinx.css'
37 {% if not bootswatch_css_custom %}
38 {% set bootswatch_css_custom = [] %}
40 {% set css_files = css_files + theme_css_files + bootswatch_css_custom %}
42 {% set script_files = script_files + [
43 '_static/js/jquery-1.11.0.min.js',
44 '_static/js/jquery-fix.js',
45 '_static/bootstrap-' + bootstrap_version + '/js/bootstrap.min.js',
46 '_static/bootstrap-sphinx.js'
50 {%- set render_sidebar = (not embedded) and (not theme_nosidebar|tobool) and sidebars %}
52 {%- set bs_content_width = render_sidebar and "9" or "12"%}
58 {# Sidebar: Rework into our Bootstrap nav section. #}
60 {% include "navbar" + navbar_version + ".html" %}
63 {% if theme_bootstrap_version == "3" %}
64 {%- macro bsidebar() %}
65 {%- if render_sidebar %}
66 <div class="{{ bs_span_prefix }}3">
67 <div id="sidebar" class="bs-sidenav" role="complementary">
68 {%- for sidebartemplate in sidebars %}
69 {%- include sidebartemplate %}
76 {%- macro bsidebar() %}
77 {%- if render_sidebar %}
78 <div class="{{ bs_span_prefix }}3">
79 <div id="sidebar" class="bs-sidenav well" data-spy="affix">
80 {%- for sidebartemplate in sidebars %}
81 {%- include sidebartemplate %}
89 {%- block extrahead %}
90 <meta charset='utf-8'>
91 <meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'>
92 <meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1'>
93 <meta name="apple-mobile-web-app-capable" content="yes">
96 {# Silence the sidebar's, relbar's #}
97 {% block header %}{% endblock %}
98 {% block relbar1 %}{% endblock %}
99 {% block relbar2 %}{% endblock %}
100 {% block sidebarsourcelink %}{% endblock %}
104 <div class="container">
106 {%- block sidebar1 %}{{ bsidebar() }}{% endblock %}
107 <div class="{{ bs_span_prefix }}{{ bs_content_width }}">
108 {% block body %}{% endblock %}
110 {% block sidebar2 %} {# possible location for sidebar #} {% endblock %}
116 <footer class="footer">
117 <div class="container">
118 <p class="pull-right">
119 <a href="#">Back to top</a>
120 {% if theme_source_link_position == "footer" %}
122 {% include "sourcelink.html" %}
126 {%- if show_copyright %}
127 {%- if hasdoc('copyright') %}
128 {% trans path=pathto('copyright'), copyright=copyright|e %}© <a href="{{ path }}">Copyright</a> {{ copyright }}.{% endtrans %}<br/>
130 {% trans copyright=copyright|e %}© Copyright {{ copyright }}.{% endtrans %}<br/>
133 {%- if last_updated %}
134 {% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %}<br/>
136 {%- if show_sphinx %}
137 {% trans sphinx_version=sphinx_version|e %}Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> {{ sphinx_version }}.{% endtrans %}<br/>