Merge pull request #7348 from tk0miya/7340_toctree_doc

doc: Update about toctree directive
This commit is contained in:
Takeshi KOMIYA
2020-03-22 16:28:36 +09:00
committed by GitHub

View File

@@ -48,6 +48,11 @@ tables of contents. The ``toctree`` directive is the central element.
to the source directory. A numeric ``maxdepth`` option may be given to
indicate the depth of the tree; by default, all levels are included. [#]_
The representation of "TOC tree" is changed in each output format. The
builders that output multiple files (ex. HTML) treat it as a collection of
hyperlinks. On the other hand, the builders output a single file (ex. LaTeX,
man page, etc.) replace it with the content of the documents on the TOC tree.
Consider this example (taken from the Python docs' library reference index)::
.. toctree::