Commit fd3eff68 authored by Georg Brandl's avatar Georg Brandl

Use newer toctree syntax.

parent 3e83ff78
...@@ -698,10 +698,10 @@ tables of contents. The ``toctree`` directive is the central element. ...@@ -698,10 +698,10 @@ tables of contents. The ``toctree`` directive is the central element.
.. toctree:: .. toctree::
:maxdepth: 2 :maxdepth: 2
intro.rst intro
strings.rst strings
datatypes.rst datatypes
numeric.rst numeric
(many more files listed here) (many more files listed here)
This accomplishes two things: This accomplishes two things:
...@@ -709,8 +709,8 @@ tables of contents. The ``toctree`` directive is the central element. ...@@ -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 * Tables of contents from all those files are inserted, with a maximum depth
of two, that means one nested heading. ``toctree`` directives in those of two, that means one nested heading. ``toctree`` directives in those
files are also taken into account. files are also taken into account.
* Sphinx knows that the relative order of the files ``intro.rst``, * Sphinx knows that the relative order of the files ``intro``,
``strings.rst`` and so forth, and it knows that they are children of the ``strings`` and so forth, and it knows that they are children of the
shown file, the library index. From this information it generates "next shown file, the library index. From this information it generates "next
chapter", "previous chapter" and "parent chapter" links. chapter", "previous chapter" and "parent chapter" links.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment