{# 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('_', '-')) %}
{{ metatags }} {# FAVICON #} {% if favicon %} {% endif %} {# CANONICAL URL #} {% if theme_canonical_url %} {% 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 %} {# OPENSEARCH #} {%- if use_opensearch %} {%- endif %} {%- endif %} {%- endblock %} {# CSS #} {%- for css in css_files %} {%- if css|attr("rel") %} {%- else %} {%- endif %} {%- endfor %} {%- for cssfile in extra_css_files %} {%- endfor %} {%- block linktags %} {%- if hasdoc('about') %} {%- endif %} {%- if hasdoc('genindex') %} {%- endif %} {%- if hasdoc('search') %} {%- endif %} {%- if hasdoc('copyright') %} {%- endif %} {%- if next %} {%- endif %} {%- if prev %} {%- endif %} {%- endblock %} {%- block extrahead %} {% endblock %}