Skip to content

Commit f6ca060

Browse files
Commit
1 parent 35e6138 commit f6ca060

File tree

1 file changed

+17
-26
lines changed

1 file changed

+17
-26
lines changed

Doc/tools/templates/download.html

Lines changed: 17 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -42,48 +42,39 @@ <h1>{% trans %}Download Python {{ dl_version }} documentation{% endtrans %}</h1>
4242
</tr>
4343
<tr>
4444
<td>{% trans %}PDF{% endtrans %}</td>
45-
<td>{% trans download_size="17" %}<a href="{{ dl_base }}/python-{{ dl_version }}-docs-pdf-a4.zip">Download</a> (ca. {{ download_size }} MiB){% endtrans %}</td>
46-
<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>
45+
<td>{% trans %}<a href="{{ dl_base }}/python-{{ dl_version }}-docs-pdf-a4.zip">Download</a>{% endtrans %}</td>
46+
<td>{% trans %}<a href="{{ dl_base }}/python-{{ dl_version }}-docs-pdf-a4.tar.bz2">Download</a>{% endtrans %}</td>
4747
</tr>
4848
<tr>
4949
<td>{% trans %}HTML{% endtrans %}</td>
50-
<td>{% trans download_size="13" %}<a href="{{ dl_base }}/python-{{ dl_version }}-docs-html.zip">Download</a> (ca. {{ download_size }} MiB){% endtrans %}</td>
51-
<td>{% trans download_size="8" %}<a href="{{ dl_base }}/python-{{ dl_version }}-docs-html.tar.bz2">Download</a> (ca. {{ download_size }} MiB){% endtrans %}</td>
50+
<td>{% trans %}<a href="{{ dl_base }}/python-{{ dl_version }}-docs-html.zip">Download</a>{% endtrans %}</td>
51+
<td>{% trans %}<a href="{{ dl_base }}/python-{{ dl_version }}-docs-html.tar.bz2">Download</a>{% endtrans %}</td>
5252
</tr>
5353
<tr>
5454
<td>{% trans %}Plain text{% endtrans %}</td>
55-
<td>{% trans download_size="4" %}<a href="{{ dl_base }}/python-{{ dl_version }}-docs-text.zip">Download</a> (ca. {{ download_size }} MiB){% endtrans %}</td>
56-
<td>{% trans download_size="3" %}<a href="{{ dl_base }}/python-{{ dl_version }}-docs-text.tar.bz2">Download</a> (ca. {{ download_size }} MiB){% endtrans %}</td>
55+
<td>{% trans %}<a href="{{ dl_base }}/python-{{ dl_version }}-docs-text.zip">Download</a>{% endtrans %}</td>
56+
<td>{% trans %}<a href="{{ dl_base }}/python-{{ dl_version }}-docs-text.tar.bz2">Download</a>{% endtrans %}</td>
5757
</tr>
5858
<tr>
5959
<td>{% trans %}Texinfo{% endtrans %}</td>
60-
<td>{% trans download_size="9" %}<a href="{{ dl_base }}/python-{{ dl_version }}-docs-texinfo.zip">Download</a> (ca. {{ download_size }} MiB){% endtrans %}</td>
61-
<td>{% trans download_size="7" %}<a href="{{ dl_base }}/python-{{ dl_version }}-docs-texinfo.tar.bz2">Download</a> (ca. {{ download_size }} MiB){% endtrans %}</td>
60+
<td>{% trans %}<a href="{{ dl_base }}/python-{{ dl_version }}-docs-texinfo.zip">Download</a>{% endtrans %}</td>
61+
<td>{% trans %}<a href="{{ dl_base }}/python-{{ dl_version }}-docs-texinfo.tar.bz2">Download</a>{% endtrans %}</td>
6262
</tr>
6363
<tr>
6464
<td>{% trans %}EPUB{% endtrans %}</td>
65-
<td>{% trans download_size="6" %}<a href="{{ dl_base }}/python-{{ dl_version }}-docs.epub">Download</a> (ca. {{ download_size }} MiB){% endtrans %}</td>
65+
<td>{% trans %}<a href="{{ dl_base }}/python-{{ dl_version }}-docs.epub">Download</a>{% endtrans %}</td>
6666
<td></td>
6767
</tr>
6868
</table>
6969

70-
<p>{% trans %}These archives contain all the content in the documentation.{% endtrans %}</p>
71-
72-
73-
<h2>{% trans %}Unpacking{% endtrans %}</h2>
74-
75-
<p>{% trans %}Unix users should download the .tar.bz2 archives; these are bzipped tar
76-
archives and can be handled in the usual way using tar and the bzip2
77-
program. The <a href="https://infozip.sourceforge.net">Info-ZIP</a> unzip program can be
78-
used to handle the ZIP archives if desired. The .tar.bz2 archives provide the
79-
best compression and fastest download times.{% endtrans %}</p>
80-
81-
<p>{% trans %}Windows users can use the ZIP archives since those are customary on that
82-
platform. These are created on Unix using the Info-ZIP zip program.{% endtrans %}</p>
83-
70+
{% set archives = pathto('archives')|replace('.html', '/') %}
71+
<p>{% trans archives = archives %}These archives contain all the content in the
72+
documentation.
73+
See the <a href="{{ archives }}">directory listing</a> for accurate size
74+
information.{% endtrans %}</p>
8475

8576
<h2>{% trans %}Problems{% endtrans %}</h2>
86-
87-
<p>{% trans %}If you have comments or suggestions for the Python documentation, please send
88-
email to <a href="mailto:[email protected]">[email protected]</a>.{% endtrans %}</p>
77+
{% set bugs = pathto('bugs') %}
78+
<p>{% trans bugs = bugs %}See <a href="{{ bugs }}">this page</a> if you
79+
have comments or suggestions for the Python documentation.{% endtrans %}</p>
8980
{% endblock %}

0 commit comments

Comments
 (0)