blob: 17592d74a4eb529250b1166260a05e5dc371cc06 [file] [log] [blame]
Georg Brandle7570052008-05-03 20:52:18 +00001{% extends "!layout.html" %}
Jon Wayne Parrottbf63e8d2018-03-01 13:02:50 -08002
Julien Palard46ed90d2019-05-29 18:34:04 +02003{% block header %}
4{%- if outdated %}
5<div id="outdated-warning" style="padding: .5em; text-align: center; background-color: #FFBABA; color: #6A0E0E;">
6 {% trans %}This document is for an old version of Python that is no longer supported.
7 You should upgrade, and read the {% endtrans %}
Julien Palard55295152019-06-16 10:25:05 +02008 <a href="/3/{{ pagename }}{{ file_suffix }}">{% trans %} Python documentation for the current stable release{% endtrans %}</a>.
Julien Palard46ed90d2019-05-29 18:34:04 +02009</div>
10{%- endif %}
11{% endblock %}
12
Georg Brandle7570052008-05-03 20:52:18 +000013{% block rootrellink %}
Jon Wayne Parrottbf63e8d2018-03-01 13:02:50 -080014{{ super() }}
15 <li>
16 {%- if switchers is defined %}
17 <span class="language_switcher_placeholder">{{ language or 'en' }}</span>
18 <span class="version_switcher_placeholder">{{ release }}</span>
19 <a href="{{ pathto('index') }}">{% trans %}Documentation {% endtrans %}</a>{{ reldelim1 }}
20 {%- else %}
21 <a href="{{ pathto('index') }}">{{ shorttitle }}</a>{{ reldelim1 }}
22 {%- endif %}
Zachary Warea3090a42016-09-09 13:11:27 -070023 </li>
Zachary Warea3090a42016-09-09 13:11:27 -070024{% endblock %}
Jon Wayne Parrottbf63e8d2018-03-01 13:02:50 -080025
Georg Brandlaf265f42008-12-07 15:06:20 +000026{% block extrahead %}
Nick Coghlane6624452017-02-09 16:03:59 +010027 <link rel="canonical" href="https://docs.python.org/3/{{pagename}}.html" />
Steve Dowerfb4a96a2016-09-22 17:07:56 -070028 {% if builder != "htmlhelp" %}
Jon Wayne Parrottbf63e8d2018-03-01 13:02:50 -080029 {% if switchers is defined and not embedded %}
30 <script type="text/javascript" src="{{ pathto('_static/switchers.js', 1) }}"></script>{% endif %}
31 {% if pagename == 'whatsnew/changelog' and not embedded %}
32 <script type="text/javascript" src="{{ pathto('_static/changelog_search.js', 1) }}"></script>{% endif %}
Steve Dowerfb4a96a2016-09-22 17:07:56 -070033 {% endif %}
Yury Selivanov394374e2018-09-17 15:35:24 -040034
35 {# custom CSS; used in asyncio docs! #}
36 <style>
37 @media only screen {{ "{" }}
38 table.full-width-table {{ "{" }}
39 width: 100%;
40 {{ "}" }}
41 {{ "}" }}
42 </style>
Georg Brandlaf265f42008-12-07 15:06:20 +000043{{ super() }}
Georg Brandle7570052008-05-03 20:52:18 +000044{% endblock %}