Skip to content

Commit 2a045d7

Browse files
author
georg.brandl
committed
Make all whatsnew docs accessible.
git-svn-id: http://svn.python.org/projects/python/trunk@66857 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent 3b6422d commit 2a045d7

File tree

5 files changed

+28
-16
lines changed

5 files changed

+28
-16
lines changed

Doc/conf.py

-7
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,6 @@
4141

4242
# List of files that shouldn't be included in the build.
4343
unused_docs = [
44-
'whatsnew/2.0',
45-
'whatsnew/2.1',
46-
'whatsnew/2.2',
47-
'whatsnew/2.3',
48-
'whatsnew/2.4',
49-
'whatsnew/2.5',
50-
'whatsnew/2.6',
5144
'maclib/scrap',
5245
'library/xmllib',
5346
'library/xml.etree',

Doc/contents.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
.. toctree::
66

7-
whatsnew/2.7.rst
7+
whatsnew/index.rst
88
tutorial/index.rst
99
using/index.rst
1010
reference/index.rst

Doc/tools/sphinxext/indexcontent.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<table class="contentstable" align="center"><tr>
55
<td width="50%">
66
<p class="biglink"><a class="biglink" href="{{ pathto("whatsnew/" + version) }}">What's new in Python {{ version }}?</a><br/>
7-
<span class="linkdescr">changes since previous major release</span></p>
7+
<span class="linkdescr">or <a href="{{ pathto("whatsnew/index") }}">all "What's new" documents</a> since 2.0</span></span></p>
88
<p class="biglink"><a class="biglink" href="{{ pathto("tutorial/index") }}">Tutorial</a><br/>
99
<span class="linkdescr">start here</span></p>
1010
<p class="biglink"><a class="biglink" href="{{ pathto("using/index") }}">Using Python</a><br/>

Doc/whatsnew/2.5.rst

+5-7
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ release schedule.
1616
The changes in Python 2.5 are an interesting mix of language and library
1717
improvements. The library enhancements will be more important to Python's user
1818
community, I think, because several widely-useful packages were added. New
19-
modules include ElementTree for XML processing (section :ref:`module-etree`),
20-
the SQLite database module (section :ref:`module-sqlite`), and the :mod:`ctypes`
21-
module for calling C functions (section :ref:`module-ctypes`).
19+
modules include ElementTree for XML processing (:mod:`xml.etree`),
20+
the SQLite database module (:mod:`sqlite`), and the :mod:`ctypes`
21+
module for calling C functions.
2222

2323
The language changes are of middling significance. Some pleasant new features
2424
were added, but most of them aren't features that you'll use every day.
@@ -736,7 +736,7 @@ add a :keyword:`return` statement at the marked location. ::
736736
# return False
737737

738738

739-
.. _module-contextlib:
739+
.. _contextlibmod:
740740

741741
The contextlib module
742742
---------------------
@@ -1273,7 +1273,7 @@ complete list of changes, or look through the SVN logs for all the details.
12731273
(Contributed by Raymond Hettinger.)
12741274

12751275
* New module: The :mod:`contextlib` module contains helper functions for use
1276-
with the new ':keyword:`with`' statement. See section :ref:`module-contextlib`
1276+
with the new ':keyword:`with`' statement. See section :ref:`contextlibmod`
12771277
for more about this module.
12781278

12791279
* New module: The :mod:`cProfile` module is a C implementation of the existing
@@ -2272,8 +2272,6 @@ code:
22722272
.. ======================================================================
22732273
22742274
2275-
.. _acks:
2276-
22772275
Acknowledgements
22782276
================
22792277

Doc/whatsnew/index.rst

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
.. _whatsnew-index:
2+
3+
######################
4+
What's New in Python
5+
######################
6+
7+
The "What's New in Python" series of essays takes tours through the most
8+
important changes between major Python versions. They are a "must read" for
9+
anyone wishing to stay up-to-date after a new release.
10+
11+
.. toctree::
12+
:maxdepth: 1
13+
14+
2.7.rst
15+
2.6.rst
16+
2.5.rst
17+
2.4.rst
18+
2.3.rst
19+
2.2.rst
20+
2.1.rst
21+
2.0.rst

0 commit comments

Comments
 (0)