11{% extends "layout.html" %}
22{% set title = _('Download') %}
33{% if daily is defined %}
4-   {% set dlbase = pathto('archives', 1) %}
4+   {% set dl_base = pathto('archives', resource=True) %}
5+   {% set dl_version = version %}
56{% else %}
67  {#
78    The link below returns HTTP 404 until the first related alpha release.
89    This is expected; use daily documentation builds for CPython development.
910  #}
10-   {% set dlbase = 'https://www.python.org/ftp/python/doc/' + release %}
11+   {% set dl_base = 'https://www.python.org/ftp/python/doc/' + release %}
12+   {% set dl_version = release %}
1113{% endif %}
1214
1315{% block body %}
@@ -26,27 +28,27 @@ <h1>{% trans %}Download Python {{ release }} Documentation{% endtrans %}</h1>
2628  </ tr > 
2729  < tr > 
2830    < td > {% trans %}PDF{% endtrans %}</ td > 
29-     < td > {% trans download_size="17" %}< a  href ="{{ dlbase  }}/python-{{ release  }}-docs-pdf-a4.zip "> Download</ a >  (ca. {{ download_size }} MiB){% endtrans %}</ td > 
30-     < td > {% trans download_size="17" %}< a  href ="{{ dlbase  }}/python-{{ release  }}-docs-pdf-a4.tar.bz2 "> Download</ a >  (ca. {{ download_size }} MiB){% endtrans %}</ td > 
31+     < td > {% trans download_size="17" %}< a  href ="{{ dl_base  }}/python-{{ dl_version  }}-docs-pdf-a4.zip "> Download</ a >  (ca. {{ download_size }} MiB){% endtrans %}</ td > 
32+     < td > {% trans download_size="17" %}< a  href ="{{ dl_base  }}/python-{{ dl_version  }}-docs-pdf-a4.tar.bz2 "> Download</ a >  (ca. {{ download_size }} MiB){% endtrans %}</ td > 
3133  </ tr > 
3234  < tr > 
3335    < td > {% trans %}HTML{% endtrans %}</ td > 
34-     < td > {% trans download_size="13" %}< a  href ="{{ dlbase  }}/python-{{ release  }}-docs-html.zip "> Download</ a >  (ca. {{ download_size }} MiB){% endtrans %}</ td > 
35-     < td > {% trans download_size="8" %}< a  href ="{{ dlbase  }}/python-{{ release  }}-docs-html.tar.bz2 "> Download</ a >  (ca. {{ download_size }} MiB){% endtrans %}</ td > 
36+     < td > {% trans download_size="13" %}< a  href ="{{ dl_base  }}/python-{{ dl_version  }}-docs-html.zip "> Download</ a >  (ca. {{ download_size }} MiB){% endtrans %}</ td > 
37+     < td > {% trans download_size="8" %}< a  href ="{{ dl_base  }}/python-{{ dl_version  }}-docs-html.tar.bz2 "> Download</ a >  (ca. {{ download_size }} MiB){% endtrans %}</ td > 
3638  </ tr > 
3739  < tr > 
3840    < td > {% trans %}Plain text{% endtrans %}</ td > 
39-     < td > {% trans download_size="4" %}< a  href ="{{ dlbase  }}/python-{{ release  }}-docs-text.zip "> Download</ a >  (ca. {{ download_size }} MiB){% endtrans %}</ td > 
40-     < td > {% trans download_size="3" %}< a  href ="{{ dlbase  }}/python-{{ release  }}-docs-text.tar.bz2 "> Download</ a >  (ca. {{ download_size }} MiB){% endtrans %}</ td > 
41+     < td > {% trans download_size="4" %}< a  href ="{{ dl_base  }}/python-{{ dl_version  }}-docs-text.zip "> Download</ a >  (ca. {{ download_size }} MiB){% endtrans %}</ td > 
42+     < td > {% trans download_size="3" %}< a  href ="{{ dl_base  }}/python-{{ dl_version  }}-docs-text.tar.bz2 "> Download</ a >  (ca. {{ download_size }} MiB){% endtrans %}</ td > 
4143  </ tr > 
4244  < tr > 
4345    < td > {% trans %}Texinfo{% endtrans %}</ td > 
44-     < td > {% trans download_size="9" %}< a  href ="{{ dlbase  }}/python-{{ release  }}-docs-texinfo.zip "> Download</ a >  (ca. {{ download_size }} MiB){% endtrans %}</ td > 
45-     < td > {% trans download_size="7" %}< a  href ="{{ dlbase  }}/python-{{ release  }}-docs-texinfo.tar.bz2 "> Download</ a >  (ca. {{ download_size }} MiB){% endtrans %}</ td > 
46+     < td > {% trans download_size="9" %}< a  href ="{{ dl_base  }}/python-{{ dl_version  }}-docs-texinfo.zip "> Download</ a >  (ca. {{ download_size }} MiB){% endtrans %}</ td > 
47+     < td > {% trans download_size="7" %}< a  href ="{{ dl_base  }}/python-{{ dl_version  }}-docs-texinfo.tar.bz2 "> Download</ a >  (ca. {{ download_size }} MiB){% endtrans %}</ td > 
4648 </ tr > 
4749 < tr > 
4850    < td > {% trans %}EPUB{% endtrans %}</ td > 
49-     < td > {% trans download_size="6" %}< a  href ="{{ dlbase  }}/python-{{ release  }}-docs.epub "> Download</ a >  (ca. {{ download_size }} MiB){% endtrans %}</ td > 
51+     < td > {% trans download_size="6" %}< a  href ="{{ dl_base  }}/python-{{ dl_version  }}-docs.epub "> Download</ a >  (ca. {{ download_size }} MiB){% endtrans %}</ td > 
5052    < td > </ td > 
5153  </ tr > 
5254</ table > 
0 commit comments