From 8c8430e2af6583056e059027c04013e9c5627e97 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sat, 13 Mar 2010 13:43:01 +0000 Subject: Merged revisions 78924 via svnmerge from svn+ssh://svn.python.org/python/branches/py3k MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ................ r78924 | georg.brandl | 2010-03-13 14:42:16 +0100 (Sa, 13 Mär 2010) | 9 lines Merged revisions 78921 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r78921 | georg.brandl | 2010-03-13 14:39:46 +0100 (Sa, 13 Mär 2010) | 1 line Change/fix handling of docs download location: for daily builds, put them right next to the HTML. ........ ................ --- Doc/Makefile | 9 +++++---- Doc/tools/sphinxext/download.html | 15 ++++++--------- 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/Doc/Makefile b/Doc/Makefile index 8e56855..a2724a1 100644 --- a/Doc/Makefile +++ b/Doc/Makefile @@ -157,16 +157,17 @@ dist: check: $(PYTHON) tools/rstlint.py -i tools -# 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 22a03a0..4fca138 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 %} -- cgit v0.12