Georg Brandl | e757005 | 2008-05-03 20:52:18 +0000 | [diff] [blame] | 1 | {% extends "!layout.html" %} |
Jon Wayne Parrott | bf63e8d | 2018-03-01 13:02:50 -0800 | [diff] [blame] | 2 | |
Julien Palard | 46ed90d | 2019-05-29 18:34:04 +0200 | [diff] [blame] | 3 | {% 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 Palard | 5529515 | 2019-06-16 10:25:05 +0200 | [diff] [blame] | 8 | <a href="/3/{{ pagename }}{{ file_suffix }}">{% trans %} Python documentation for the current stable release{% endtrans %}</a>. |
Julien Palard | 46ed90d | 2019-05-29 18:34:04 +0200 | [diff] [blame] | 9 | </div> |
| 10 | {%- endif %} |
| 11 | {% endblock %} |
| 12 | |
Georg Brandl | e757005 | 2008-05-03 20:52:18 +0000 | [diff] [blame] | 13 | {% block rootrellink %} |
Jon Wayne Parrott | bf63e8d | 2018-03-01 13:02:50 -0800 | [diff] [blame] | 14 | {{ 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 Ware | a3090a4 | 2016-09-09 13:11:27 -0700 | [diff] [blame] | 23 | </li> |
Zachary Ware | a3090a4 | 2016-09-09 13:11:27 -0700 | [diff] [blame] | 24 | {% endblock %} |
Jon Wayne Parrott | bf63e8d | 2018-03-01 13:02:50 -0800 | [diff] [blame] | 25 | |
Georg Brandl | af265f4 | 2008-12-07 15:06:20 +0000 | [diff] [blame] | 26 | {% block extrahead %} |
Nick Coghlan | e662445 | 2017-02-09 16:03:59 +0100 | [diff] [blame] | 27 | <link rel="canonical" href="https://docs.python.org/3/{{pagename}}.html" /> |
Steve Dower | fb4a96a | 2016-09-22 17:07:56 -0700 | [diff] [blame] | 28 | {% if builder != "htmlhelp" %} |
Jon Wayne Parrott | bf63e8d | 2018-03-01 13:02:50 -0800 | [diff] [blame] | 29 | {% 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 Dower | fb4a96a | 2016-09-22 17:07:56 -0700 | [diff] [blame] | 33 | {% endif %} |
Yury Selivanov | 394374e | 2018-09-17 15:35:24 -0400 | [diff] [blame] | 34 | |
| 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 Brandl | af265f4 | 2008-12-07 15:06:20 +0000 | [diff] [blame] | 43 | {{ super() }} |
Georg Brandl | e757005 | 2008-05-03 20:52:18 +0000 | [diff] [blame] | 44 | {% endblock %} |