From: Georg Brandl Date: Sat, 13 Mar 2010 13:39:46 +0000 (+0000) Subject: Change/fix handling of docs download location: for daily builds, put them right next... X-Git-Tag: v2.7b1~370 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e82110f3a53b34bcaca10b115b037c1cf1b5bd78;p=python Change/fix handling of docs download location: for daily builds, put them right next to the HTML. --- diff --git a/Doc/Makefile b/Doc/Makefile index 9df8e1d95e..f5c890c60b 100644 --- a/Doc/Makefile +++ b/Doc/Makefile @@ -161,16 +161,17 @@ check: serve: ../Tools/scripts/serve.py build/html -# Targets for automatic doc build +# Targets for daily automated doc build # for development releases: always build autobuild-dev: make update - make dist + make dist SPHINXOPTS='-A daily=1' -# for stable releases: only build if not in development mode +# for stable releases: only build if not in pre-release stage (alpha, beta, rc) autobuild-stable: @case $(DISTVERSION) in *[abc]*) \ - echo "Not building; not a release version."; exit 1;; \ + echo "Not building; $(DISTVERSION) is not a release version."; \ + exit 1;; \ esac @make autobuild-dev diff --git a/Doc/tools/sphinxext/download.html b/Doc/tools/sphinxext/download.html index 22a03a0d2f..4fca13882a 100644 --- a/Doc/tools/sphinxext/download.html +++ b/Doc/tools/sphinxext/download.html @@ -1,15 +1,14 @@ {% extends "layout.html" %} {% set title = 'Download' %} -{% set dlbase = 'http://docs.python.org/ftp/python/doc/' + release %} -{% block body %} +{% if daily is defined %} + {% set dlbase = pathto('archives', 1) %} +{% else %} + {% set dlbase = 'http://docs.python.org/ftp/python/doc/' + release %} +{% endif %} +{% block body %}

Download Python {{ release }} Documentation

-{% if 'a' in release or 'b' in release or 'c' in release %} -

We don't package the documentation for development releases for download. - Downloads will be available for the final release.

- -{% else %} {% if last_updated %}

Last updated on: {{ last_updated }}.

{% endif %}

To download an archive containing all the documents for this version of @@ -55,6 +54,4 @@ platform. These are created on Unix using the InfoZIP zip program.

If you have comments or suggestions for the Python documentation, please send email to docs@python.org.

-{% endif %} - {% endblock %}