summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-06-12 09:45:01 (GMT)
committerGeorg Brandl <georg@python.org>2010-06-12 09:45:01 (GMT)
commitfd3eff68f58646c5f32c8957b1d3a8ddd5e6e72e (patch)
tree1c57be0fac3a75f30e1de0b61211460db7763c13 /Doc
parent3e83ff78c65a83d5392634a42180becbcfecfd3b (diff)
downloadcpython-fd3eff68f58646c5f32c8957b1d3a8ddd5e6e72e.zip
cpython-fd3eff68f58646c5f32c8957b1d3a8ddd5e6e72e.tar.gz
cpython-fd3eff68f58646c5f32c8957b1d3a8ddd5e6e72e.tar.bz2
Use newer toctree syntax.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/documenting/markup.rst12
1 files changed, 6 insertions, 6 deletions
diff --git a/Doc/documenting/markup.rst b/Doc/documenting/markup.rst
index eec8650..9cffc6c 100644
--- a/Doc/documenting/markup.rst
+++ b/Doc/documenting/markup.rst
@@ -698,10 +698,10 @@ tables of contents. The ``toctree`` directive is the central element.
.. toctree::
:maxdepth: 2
- intro.rst
- strings.rst
- datatypes.rst
- numeric.rst
+ intro
+ strings
+ datatypes
+ numeric
(many more files listed here)
This accomplishes two things:
@@ -709,8 +709,8 @@ tables of contents. The ``toctree`` directive is the central element.
* Tables of contents from all those files are inserted, with a maximum depth
of two, that means one nested heading. ``toctree`` directives in those
files are also taken into account.
- * Sphinx knows that the relative order of the files ``intro.rst``,
- ``strings.rst`` and so forth, and it knows that they are children of the
+ * Sphinx knows that the relative order of the files ``intro``,
+ ``strings`` and so forth, and it knows that they are children of the
shown file, the library index. From this information it generates "next
chapter", "previous chapter" and "parent chapter" links.