summaryrefslogtreecommitdiffstats
path: root/Doc/tools/templates/layout.html
blob: c3992245614082c7a87f4f17feaed2d1d9ad95d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{% extends "!layout.html" %}

{% block rootrellink %}
{{ super() }}
    <li>
      {%- if switchers is defined %}
      <span class="language_switcher_placeholder">{{ language or 'en' }}</span>
      <span class="version_switcher_placeholder">{{ release }}</span>
      <a href="{{ pathto('index') }}">{% trans %}Documentation {% endtrans %}</a>{{ reldelim1 }}
      {%- else %}
      <a href="{{ pathto('index') }}">{{ shorttitle }}</a>{{ reldelim1 }}
      {%- endif %}
    </li>
{% endblock %}

{% block extrahead %}
    <link rel="canonical" href="https://docs.python.org/3/{{pagename}}.html" />
    {% if builder != "htmlhelp" %}
      {% if switchers is defined and not embedded %}
      <script type="text/javascript" src="{{ pathto('_static/switchers.js', 1) }}"></script>{% endif %}
      {% if pagename == 'whatsnew/changelog' and not embedded %}
      <script type="text/javascript" src="{{ pathto('_static/changelog_search.js', 1) }}"></script>{% endif %}
    {% endif %}

    {# custom CSS; used in asyncio docs! #}
    <style>
      @media only screen {{ "{" }}
        table.full-width-table {{ "{" }}
            width: 100%;
        {{ "}" }}
      {{ "}" }}
    </style>
{{ super() }}
{% endblock %}