1
1
{% extends "layout.html" %}
2
2
{% set title = _('Download') %}
3
3
{% if daily is defined %}
4
- {% set dlbase = pathto('archives', 1) %}
4
+ {% set dl_base = pathto('archives', resource=True) %}
5
+ {% set dl_version = version %}
5
6
{% else %}
6
7
{#
7
8
The link below returns HTTP 404 until the first related alpha release.
8
9
This is expected; use daily documentation builds for CPython development.
9
10
#}
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 %}
11
13
{% endif %}
12
14
13
15
{% block body %}
@@ -26,27 +28,27 @@ <h1>{% trans %}Download Python {{ release }} Documentation{% endtrans %}</h1>
26
28
</ tr >
27
29
< tr >
28
30
< 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 >
31
33
</ tr >
32
34
< tr >
33
35
< 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 >
36
38
</ tr >
37
39
< tr >
38
40
< 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 >
41
43
</ tr >
42
44
< tr >
43
45
< 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 >
46
48
</ tr >
47
49
< tr >
48
50
< 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 >
50
52
< td > </ td >
51
53
</ tr >
52
54
</ table >
0 commit comments