]> granicus.if.org Git - python/commitdiff
Use newer toctree syntax.
authorGeorg Brandl <georg@python.org>
Sat, 12 Jun 2010 09:45:01 +0000 (09:45 +0000)
committerGeorg Brandl <georg@python.org>
Sat, 12 Jun 2010 09:45:01 +0000 (09:45 +0000)
Doc/documenting/markup.rst

index eec86501d3edc51af714b1d5a5c57d63468e028b..9cffc6c8b85de341cd206510fe2afe503b20f1dc 100644 (file)
@@ -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.