{%- macro script() %} {%- for js in script_files %} {{ js_tag(js) }} {%- endfor %} {%- if docsearch %} {%- endif %} {%- endmacro -%} {%- set lang_attr = "en" if language == None else (language|replace('_','-')) -%} {%- if not embedded and docstitle -%} {%- if title == docstitle -%} {%- set titlesuffix = "" -%} {%- else -%} {%- set titlesuffix = " | "|safe + docstitle|e -%} {%- endif -%} {%- else -%} {%- set titlesuffix = "" -%} {%- endif -%} {{ metatags }} {%- block htmltitle %} {{ title|striptags|e if title else docstitle }}{{ titlesuffix }} {%- endblock htmltitle %} {#- Extra CSS files for overriding stuff #} {%- for css in css_files %} {%- endfor %} {%- if docsearch %} {% endif %} {%- if pageurl %} {%- endif %} {%- set _favicon_url = favicon_url | default(pathto('_static/' + (favicon or ""), 1)) %} {%- if favicon_url or favicon %} {%- endif %} {%- block linktags %} {%- if hasdoc('search') and not docsearch %} {%- endif %} {%- if hasdoc('genindex') %} {%- endif %} {%- if next %} {%- endif %} {%- if prev %} {%- endif %} {%- endblock linktags %} {% block scripts %} {{ script() }} {% endblock scripts %} {%- block extrahead %}{%- endblock extrahead %} {#- A blurry background screen for the mobile sidebar -#} {%- if sidebars|length > 0 %}
{%- endif %} {#- The main page wrapper -#}
{#- Skip to content link -#} Skip to content {%- block header %} {%- include "header.html" %} {%- endblock header %}
{%- set only_main_nav = sidebars == ["sidebar_main_nav_links.html"] %} {%- if not only_main_nav and sidebars|length > 0 -%}
{%- else -%}
{%- endif -%} {%- block sidebar %} {%- if sidebars|length > 0 %} {%- include "sidebar.html" %} {%- endif %} {%- endblock sidebar %} {%- block main %}
{%- block body %}{%- endblock %}
{%- endblock main %}
{%- block footer %} {%- include "footer.html" %} {%- endblock footer %}