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() }} |
Julien Palard | ee2549c | 2020-11-07 12:28:31 +0100 | [diff] [blame] | 15 | <li id="cpython-language-and-version"> |
Jon Wayne Parrott | bf63e8d | 2018-03-01 13:02:50 -0800 | [diff] [blame] | 16 | <a href="{{ pathto('index') }}">{{ shorttitle }}</a>{{ reldelim1 }} |
Zachary Ware | a3090a4 | 2016-09-09 13:11:27 -0700 | [diff] [blame] | 17 | </li> |
Zachary Ware | a3090a4 | 2016-09-09 13:11:27 -0700 | [diff] [blame] | 18 | {% endblock %} |
Jon Wayne Parrott | bf63e8d | 2018-03-01 13:02:50 -0800 | [diff] [blame] | 19 | |
Georg Brandl | af265f4 | 2008-12-07 15:06:20 +0000 | [diff] [blame] | 20 | {% block extrahead %} |
Nick Coghlan | e662445 | 2017-02-09 16:03:59 +0100 | [diff] [blame] | 21 | <link rel="canonical" href="https://docs.python.org/3/{{pagename}}.html" /> |
Steve Dower | fb4a96a | 2016-09-22 17:07:56 -0700 | [diff] [blame] | 22 | {% if builder != "htmlhelp" %} |
Jon Wayne Parrott | bf63e8d | 2018-03-01 13:02:50 -0800 | [diff] [blame] | 23 | {% if pagename == 'whatsnew/changelog' and not embedded %} |
| 24 | <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] | 25 | {% endif %} |
Yury Selivanov | 394374e | 2018-09-17 15:35:24 -0400 | [diff] [blame] | 26 | |
| 27 | {# custom CSS; used in asyncio docs! #} |
| 28 | <style> |
| 29 | @media only screen {{ "{" }} |
| 30 | table.full-width-table {{ "{" }} |
| 31 | width: 100%; |
| 32 | {{ "}" }} |
| 33 | {{ "}" }} |
| 34 | </style> |
Georg Brandl | af265f4 | 2008-12-07 15:06:20 +0000 | [diff] [blame] | 35 | {{ super() }} |
Georg Brandl | e757005 | 2008-05-03 20:52:18 +0000 | [diff] [blame] | 36 | {% endblock %} |