| 1 |
{% extends "classic/layout.html" %} |
| 2 |
|
| 3 |
{%- macro relbar() %} |
| 4 |
{# modified from sphinx/themes/basic/layout.html #} |
| 5 |
<div class="related" role="navigation" aria-label="related navigation"> |
| 6 |
<h3>{{ _('Navigation') }}</h3> |
| 7 |
<ul> |
| 8 |
{%- for rellink in rellinks %} |
| 9 |
<li class="right" {% if loop.first %}style="margin-right: 10px"{% endif %}> |
| 10 |
<a href="{{ pathto(rellink[0])|e }}" title="{{ rellink[1]|striptags|e }}" |
| 11 |
{{ accesskey(rellink[2]) }}>{{ rellink[3] }} |
| 12 |
</a> |
| 13 |
{%- if not loop.first %}{{ reldelim2 }}{% endif %} |
| 14 |
</li> |
| 15 |
{%- endfor %} |
| 16 |
{%- block rootrellink %} |
| 17 |
<li><img src="{{ pathto('_static/' ~ theme_root_icon, 1) }}" alt="{{ theme_root_icon_alt_text }}" style="vertical-align: middle; margin-top: -1px"></li> |
| 18 |
<li><a href="{{theme_root_url}}">{{theme_root_name}}</a>{{ reldelim1 }}</li> |
| 19 |
<li class="switchers"> |
| 20 |
<div class="language_switcher_placeholder"></div> |
| 21 |
<div class="version_switcher_placeholder"></div> |
| 22 |
</li> |
| 23 |
<li> |
| 24 |
{% if theme_root_include_title %} |
| 25 |
<a href="{{ pathto('index') }}">{{ shorttitle }}</a>{{ reldelim1 }} |
| 26 |
{% endif %} |
| 27 |
</li> |
| 28 |
{%- endblock %} |
| 29 |
{%- for parent in parents %} |
| 30 |
<li class="nav-item nav-item-{{ loop.index }}"><a href="{{ parent.link|e }}" {% if loop.last %}{{ accesskey("U") }}{% endif %}>{{ parent.title }}</a>{{ reldelim1 }}</li> |
| 31 |
{%- endfor %} |
| 32 |
<li class="nav-item nav-item-this"><a href="{{ link|e }}">{{ title }}</a></li> |
| 33 |
{% block relbaritems %} |
| 34 |
{%- if pagename != "search" and builder != "singlehtml" and builder != "htmlhelp" %} |
| 35 |
<li class="right"> |
| 36 |
{{ searchbox() }} |
| 37 |
{{ reldelim2 }} |
| 38 |
</li> |
| 39 |
{%- endif %} |
| 40 |
<li class="right">{{ themeselector() }}{{ reldelim2 }}</li> |
| 41 |
{% endblock %} |
| 42 |
</ul> |
| 43 |
</div> |
| 44 |
{%- endmacro %} |
| 45 |
|
| 46 |
{%- macro searchbox() %} |
| 47 |
{# modified from sphinx/themes/basic/searchbox.html #} |
| 48 |
{%- if builder != "htmlhelp" %} |
| 49 |
<div class="inline-search" role="search"> |
| 50 |
<form class="inline-search" action="{{ pathto('search') }}" method="get"> |
| 51 |
<input placeholder="{{ _('Quick search') }}" aria-label="{{ _('Quick search') }}" type="search" name="q" id="search-box"> |
| 52 |
<input type="submit" value="{{ _('Go') }}"> |
| 53 |
</form> |
| 54 |
</div> |
| 55 |
{%- endif %} |
| 56 |
{%- endmacro %} |
| 57 |
|
| 58 |
{%- macro themeselector() %} |
| 59 |
<label class="theme-selector-label"> |
| 60 |
{{ _('Theme') }} |
| 61 |
<select class="theme-selector" oninput="activateTheme(this.value)"> |
| 62 |
<option value="auto" selected>{{ _('Auto') }}</option> |
| 63 |
<option value="light">{{ _('Light') }}</option> |
| 64 |
<option value="dark">{{ _('Dark') }}</option> |
| 65 |
</select> |
| 66 |
</label> |
| 67 |
{%- endmacro %} |
| 68 |
|
| 69 |
{% block relbar1 %} {% if builder != 'qthelp' %} {{ relbar() }} {% endif %} {% endblock %} |
| 70 |
{% block relbar2 %} {% if builder != 'qthelp' %} {{ relbar() }} {% endif %} {% endblock %} |
| 71 |
|
| 72 |
{%- block extrahead -%} |
| 73 |
<link rel="stylesheet" href="{{ pathto('_static/pydoctheme_dark.css', 1) }}" media="(prefers-color-scheme: dark)" id="pydoctheme_dark_css"> |
| 74 |
<link rel="shortcut icon" type="image/png" href="{{ pathto('_static/' ~ theme_root_icon, 1) }}"> |
| 75 |
{%- if builder != "htmlhelp" %} |
| 76 |
{%- if not embedded %} |
| 77 |
<script type="text/javascript" src="{{ pathto('_static/copybutton.js', 1) }}"></script> |
| 78 |
<script type="text/javascript" src="{{ pathto('_static/menu.js', 1) }}"></script> |
| 79 |
<script type="text/javascript" src="{{ pathto('_static/search-focus.js', 1) }}"></script> |
| 80 |
<script type="text/javascript" src="{{ pathto('_static/themetoggle.js', 1) }}"></script> |
| 81 |
{%- endif -%} |
| 82 |
{%- endif -%} |
| 83 |
{{ super() }} |
| 84 |
{%- endblock -%} |
| 85 |
|
| 86 |
{%- block css -%} |
| 87 |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 88 |
{{ super() }} |
| 89 |
{%- endblock -%} |
| 90 |
|
| 91 |
{%- block body_tag %} |
| 92 |
{{ super() }} |
| 93 |
{%- if builder != 'htmlhelp' %} |
| 94 |
<div class="mobile-nav"> |
| 95 |
<input type="checkbox" id="menuToggler" class="toggler__input" aria-controls="navigation" |
| 96 |
aria-pressed="false" aria-expanded="false" role="button" aria-label="{{ _('Menu')}}"> |
| 97 |
<nav class="nav-content" role="navigation"> |
| 98 |
<label for="menuToggler" class="toggler__label"> |
| 99 |
<span></span> |
| 100 |
</label> |
| 101 |
<span class="nav-items-wrapper"> |
| 102 |
<a href="{{ theme_root_url }}" class="nav-logo"> |
| 103 |
<img src="{{ pathto('_static/' ~ theme_root_icon, 1) }}" alt="{{ theme_root_icon_alt_text }}"> |
| 104 |
</a> |
| 105 |
<span class="version_switcher_placeholder"></span> |
| 106 |
{%- if pagename != "search" and builder != "singlehtml" %} |
| 107 |
<form role="search" class="search" action="{{ pathto('search') }}" method="get"> |
| 108 |
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" class="search-icon"> |
| 109 |
<path fill-rule="nonzero" fill="currentColor" d="M15.5 14h-.79l-.28-.27a6.5 6.5 0 001.48-5.34c-.47-2.78-2.79-5-5.59-5.34a6.505 6.505 0 00-7.27 7.27c.34 2.8 2.56 5.12 5.34 5.59a6.5 6.5 0 005.34-1.48l.27.28v.79l4.25 4.25c.41.41 1.08.41 1.49 0 .41-.41.41-1.08 0-1.49L15.5 14zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"></path> |
| 110 |
</svg> |
| 111 |
<input placeholder="{{ _('Quick search') }}" aria-label="{{ _('Quick search') }}" type="search" name="q"> |
| 112 |
<input type="submit" value="{{ _('Go') }}"> |
| 113 |
</form> |
| 114 |
{%- endif %} |
| 115 |
</span> |
| 116 |
</nav> |
| 117 |
<div class="menu-wrapper"> |
| 118 |
<nav class="menu" role="navigation" aria-label="main navigation"> |
| 119 |
<div class="language_switcher_placeholder"></div> |
| 120 |
{{ themeselector() }} |
| 121 |
{%- if logo %} |
| 122 |
<p class="logo"> |
| 123 |
<a href="{{ pathto('index') }}"> |
| 124 |
<img class="logo" src="{{ pathto('_static/' ~ logo, 1)|e }}" alt="Logo"> |
| 125 |
</a> |
| 126 |
</p> |
| 127 |
{%- endif %} |
| 128 |
{%- for sidebartemplate in sidebars %} |
| 129 |
{%- include sidebartemplate %} |
| 130 |
{%- endfor %} |
| 131 |
</nav> |
| 132 |
</div> |
| 133 |
</div> |
| 134 |
{% endif -%} |
| 135 |
{% endblock %} |
| 136 |
|
| 137 |
{% block footer %} |
| 138 |
<div class="footer"> |
| 139 |
© {% if theme_copyright_url or hasdoc('copyright') -%} |
| 140 |
<a href="{% if theme_copyright_url %}{{ theme_copyright_url }}{% else %}{{ pathto('copyright') }}{% endif %}"> |
| 141 |
{%- endif -%} |
| 142 |
{%- trans %}Copyright{% endtrans -%} |
| 143 |
{%- if theme_copyright_url or hasdoc('copyright') -%} |
| 144 |
</a> |
| 145 |
{%- endif %} {{ copyright|e }}. |
| 146 |
<br> |
| 147 |
{% trans %}This page is licensed under the Python Software Foundation License Version 2.{% endtrans %} |
| 148 |
<br> |
| 149 |
{% trans %}Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.{% endtrans %} |
| 150 |
<br> |
| 151 |
{% if theme_license_url %} |
| 152 |
{% trans license_file=theme_license_url %}See <a href="{{ license_file }}">History and License</a> for more information.{% endtrans %}<br> |
| 153 |
{% endif %} |
| 154 |
{% if theme_hosted_on %} |
| 155 |
{% trans hosted_on=theme_hosted_on %}Hosted on {{ hosted_on }}.{% endtrans %}<br> |
| 156 |
{% endif %} |
| 157 |
<br> |
| 158 |
|
| 159 |
{% include "footerdonate.html" %} |
| 160 |
<br> |
| 161 |
|
| 162 |
{%- if last_updated %} |
| 163 |
{% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %} |
| 164 |
{%- endif %} |
| 165 |
{% if theme_issues_url %} |
| 166 |
{% trans %}<a href="{{ theme_issues_url }}">Found a bug</a>?{% endtrans %} |
| 167 |
{% endif %} |
| 168 |
<br> |
| 169 |
|
| 170 |
{% trans sphinx_version=sphinx_version|e %}Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> {{ sphinx_version }}.{% endtrans %} |
| 171 |
</div> |
| 172 |
{% endblock %} |