{# TEMPLATE VAR SETTINGS #} {%- set url_root = pathto('', 1) %} {%- if url_root == '#' %}{% set url_root = '' %}{% endif %} {%- if not embedded and docstitle %} {%- set titlesuffix = " — "|safe + docstitle|e %} {%- else %} {%- set titlesuffix = "" %} {%- endif %} {%- set lang_attr = 'en' if language == None else (language | replace('_', '-')) %} {%- set sphinx_writer = 'writer-html5' if html5_doctype else 'writer-html4' -%} {{- metatags }} {%- block htmltitle %} {{ title|striptags|e }}{{ titlesuffix }} {%- endblock -%} {#- CSS #} {%- for css in css_files %} {%- if css|attr("rel") %} {%- else %} {%- endif %} {%- endfor %} {%- for cssfile in extra_css_files %} {%- endfor -%} {% if pagename == "index" %} {% else %} {% endif %} {#- FAVICON #} {%- if favicon %} {%- endif -%} {#- JAVASCRIPTS #} {%- block scripts %} {%- if not embedded %} {# XXX Sphinx 1.8.0 made this an external js-file, quick fix until we refactor the template to inherert more blocks directly from sphinx #} {%- if sphinx_version >= "1.8.0" -%} {%- for scriptfile in script_files %} {{ js_tag(scriptfile) }} {%- endfor %} {%- else %} {%- for scriptfile in script_files %} {%- endfor %} {%- endif %} {%- if pagename != "index" %} {% endif %} {#- OPENSEARCH #} {%- if use_opensearch %} {%- endif %} {%- endif %} {% endblock %} {%- block linktags %} {% endblock %} {%- block extrahead %} {% endblock %}
{% include "header.html" %}
{{ toc }}
{% block body %}{% endblock %}
{% include "footer.html" %} {%- block footer %} {% endblock %}