Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 49f4718

Browse files
committed
Merged revisions 78921 via svnmerge from
svn+ssh://[email protected]/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. ........
1 parent 252e400 commit 49f4718

2 files changed

Lines changed: 11 additions & 13 deletions

File tree

Doc/Makefile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,16 +161,17 @@ check:
161161
serve:
162162
../Tools/scripts/serve.py build/html
163163

164-
# Targets for automatic doc build
164+
# Targets for daily automated doc build
165165

166166
# for development releases: always build
167167
autobuild-dev:
168168
make update
169-
make dist
169+
make dist SPHINXOPTS='-A daily=1'
170170

171-
# for stable releases: only build if not in development mode
171+
# for stable releases: only build if not in pre-release stage (alpha, beta, rc)
172172
autobuild-stable:
173173
@case $(DISTVERSION) in *[abc]*) \
174-
echo "Not building; not a release version."; exit 1;; \
174+
echo "Not building; $(DISTVERSION) is not a release version."; \
175+
exit 1;; \
175176
esac
176177
@make autobuild-dev

Doc/tools/sphinxext/download.html

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
{% extends "layout.html" %}
22
{% set title = 'Download' %}
3-
{% set dlbase = 'http://docs.python.org/ftp/python/doc/' + release %}
4-
{% block body %}
3+
{% if daily is defined %}
4+
{% set dlbase = pathto('archives', 1) %}
5+
{% else %}
6+
{% set dlbase = 'http://docs.python.org/ftp/python/doc/' + release %}
7+
{% endif %}
58

9+
{% block body %}
610
<h1>Download Python {{ release }} Documentation</h1>
711

8-
{% if 'a' in release or 'b' in release or 'c' in release %}
9-
<p>We don't package the documentation for development releases for download.
10-
Downloads will be available for the final release.</p>
11-
12-
{% else %}
1312
{% if last_updated %}<p><b>Last updated on: {{ last_updated }}.</b></p>{% endif %}
1413

1514
<p>To download an archive containing all the documents for this version of
@@ -55,6 +54,4 @@ <h2>Problems</h2>
5554

5655
<p>If you have comments or suggestions for the Python documentation, please send
5756
email to <a href="mailto:[email protected]">[email protected]</a>.</p>
58-
{% endif %}
59-
6057
{% endblock %}

0 commit comments

Comments
 (0)