{# basic/layout.html ~~~~~~~~~~~~~~~~~ Master layout template for Sphinx themes. :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. #} {%- block doctype -%}{%- if html5_doctype %} {%- else %} {%- endif %}{%- 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 != []) %} {# URL root should never be #, then all links are fragments #} {%- if not embedded and docstitle %} {%- set titlesuffix = " — "|safe + docstitle|e %} {%- else %} {%- set titlesuffix = "" %} {%- endif %} {%- macro relbar() %}
{{ _('Navigation') }}:
{%- endmacro %} {%- macro sidebar() %} {%- if render_sidebar %} {%- endif %} {%- endmacro %} {%- macro script() %} {%- for js in script_files %} {{ js_tag(js) }} {%- endfor %} {%- endmacro %} {%- macro css() %} {%- for css in css_files %} {%- if css|attr("filename") %} {{ css_tag(css) }} {%- else %} {%- endif %} {%- endfor %} {%- endmacro %} {%- if html_tag %} {{ html_tag }} {%- else %} {%- endif %} {%- if not html5_doctype and not skip_ua_compatible %} {%- endif %} {%- if use_meta_charset or html5_doctype %} {%- else %} {%- endif %} {{- metatags }} {%- block htmltitle %} {{ title|striptags|e }}{{ titlesuffix }} {%- endblock %} {%- block css %} {{- css() }} {%- endblock %} {%- if not embedded %} {%- block scripts %} {{- script() }} {%- endblock %} {%- if pageurl %} {%- endif %} {%- if use_opensearch %} {%- endif %} {%- if favicon_url %} {%- endif %} {%- endif %} {%- block linktags %}{%- endblock %} {%- block extrahead %} {% endblock %} {%- block body_tag %}{% endblock %} {%- block header %}{% endblock %} {% set tocNav = toc | replace("
  • ", reldelim2) | replace("
  • ", "") | replace("", "")%} {% block relbar1 %}{% endblock %} {% block relbar2 %}{% endblock %} {% macro nav() %}

    Top{{ reldelim1 }} {%- for parent in parents %} {{ parent.title }}{{ reldelim1 }} {%- endfor %} {{ title }}

    {% endmacro %} {% block content %}

    {{ shorttitle|e }}


    Navigation: {%- if hasdoc('about') %} {{ _('About these documents') }} {%- endif %} {%- if hasdoc('genindex') %}  {{ reldelim2 }} {{ _('Index') }} {%- endif %} {%- if hasdoc('search') %}  {{ reldelim2 }} {{ _('Search') }} {%- endif %} {%- if hasdoc('copyright') %}  {{ reldelim2 }} {{ _('Copyright') }} {%- endif %}  {{ reldelim2 }} Top {%- if parents %}  {{ reldelim2 }} Up {%- endif %} {%- if prev %}  {{ reldelim2 }} {{ _('Prev') }} {%- endif %} {%- if next %}  {{ reldelim2 }} {{ _('Next') }} {%- endif %}  {{ reldelim2 }}
    Table of Content: {{ tocNav }} |

    {%- if show_copyright %} {%- if hasdoc('copyright') %} {% trans path=pathto('copyright'), copyright=copyright|e %}© Copyright {{ copyright }}.{% endtrans %} {%- else %} {% trans copyright=copyright|e %}© Copyright {{ copyright }}.{% endtrans %} {%- endif %} {%- endif %} {%- if last_updated %} {% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %} {%- endif %}
    {#{%- if display_toc %} {%- endif %}#}
    {{ nav() }}

    {{ _('Table of Contents') }}

    {{ toc }}
    {% block body %}{% endblock %}
    {{ nav() }}
    {% endblock %} {%- block footer %}
    © {% if theme_copyright_url or hasdoc('copyright') %}{% endif %}{% trans %}Copyright{% endtrans %}{% if theme_copyright_url or hasdoc('copyright') %}{% endif %} {{ copyright|e }}.
    {% trans %}This page is licensed under the {{ theme_license }}.{% endtrans %}
    {% trans %}Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.{% endtrans %}
    {% trans pathto_license=license_file %}See History and License for more information.{% endtrans %}

    {% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %} {% if theme_issues_url %}{% trans pathto_bugs=theme_issues_url %}Found a bug?{% endtrans %}{% endif %}
    {% trans sphinx_version=sphinx_version|e %}Created using Sphinx {{ sphinx_version }}.{% endtrans %}
    {%- endblock %}