{# basicstrap/layout.html ~~~~~~~~~~~~~~~~~~~~~~~~~ Master layout template for Sphinx themes. on Twitter Bootstrap :copyright: Copyright 2012 by tell-k. :license: MIT Licence, see LICENSE for details. #} {%- block doctype -%} {%- endblock %} {%- set reldelim1 = reldelim1 is not defined and ' »' or reldelim1 %} {%- set reldelim2 = reldelim2 is not defined and ' |' or reldelim2 %} {%- set render_sidebar = (not embedded) and (not theme_nosidebar|tobool) and (sidebars != []) %} {%- set url_root = pathto('', 1) %} {# XXX necessary? #} {%- if url_root == '#' %}{% set url_root = '' %}{% endif %} {%- if not embedded and docstitle %} {%- set titlesuffix = " — "|safe + docstitle|e %} {%- else %} {%- set titlesuffix = "" %} {%- endif %} {%- macro relbar() %} {%- endmacro %} {%- macro sidebar(for_mobile=False) %} {%- if render_sidebar %}
{%- if (for_mobile|tobool) and (not theme_noresponsive|tobool) %} Open Table Of Contents {%- endif %}
{%- endif %} {%- endmacro %} {% set script_files = script_files + ['_static/js/bootstrap.min.js'] %} {%- macro script() %} {%- for scriptfile in script_files %} {%- if scriptfile == '_static/jquery.js' %} {%- else %} {%- endif %} {%- endfor %} {%- endmacro %} {%- macro css() %} {%- if (theme_googlewebfont|tobool) %} {%- endif %} {%- if (theme_inner_theme|tobool) %} {%- else %} {%- endif %} {%- for cssfile in css_files %} {%- endfor %} {%- if (not theme_noresponsive|tobool) %} {%- endif %} {%- endmacro %} {{ metatags }} {%- block htmltitle %} {{ title|striptags|e }}{{ titlesuffix }} {%- endblock %} {{ css() }} {%- if not embedded %} {{ script() }} {%- if use_opensearch %} {%- endif %} {%- if favicon %} {%- endif %} {%- endif %} {%- block linktags %} {%- if hasdoc('about') %} {%- endif %} {%- if hasdoc('genindex') %} {%- endif %} {%- if hasdoc('search') %} {%- endif %} {%- if hasdoc('copyright') %} {%- endif %} {%- if parents %} {%- endif %} {%- if next %} {%- endif %} {%- if prev %} {%- endif %} {%- endblock %} {%- block extrahead %} {% endblock %} {%- block header %} {% endblock %}
{% if not theme_noresponsive|tobool %}
{{ sidebar(for_mobile=True) }}
{% endif %}
{%- block content %} {%- block sidebar1 %} {% if (not theme_rightsidebar|tobool) %} {{ sidebar() }} {% endif %} {% endblock %}
{%- block document %}
{%- if render_sidebar %}
{%- endif %}
{% block body %} {% endblock %}
{%- if render_sidebar %}
{%- endif %}
{%- endblock %}
{%- block sidebar2 %} {% if (theme_rightsidebar|tobool) %} {{ sidebar() }} {% endif %} {% endblock %} {%- endblock %}{# /content block #}
{%- block relbar2 %}{{ relbar() }}{% endblock %}
{%- block footer %} {%- endblock %}