summaryrefslogtreecommitdiff
path: root/doc/markup
diff options
context:
space:
mode:
authorRoland Meister <Roland Meister@localhost>2013-01-06 14:55:35 +0100
committerRoland Meister <Roland Meister@localhost>2013-01-06 14:55:35 +0100
commit1639f5972688dda9a90c7fcea5780d5718d52967 (patch)
tree982db6f10ab2c7b8b8291c3c1436bea596b25731 /doc/markup
parentc853aa2431407c49c53f3e69a5519cd868da1ae6 (diff)
downloadsphinx-git-1639f5972688dda9a90c7fcea5780d5718d52967.tar.gz
Add includehidden option to the toctree directive
This option is equivalent to the includehidden option of the template function toctree() and allows to restore to the toctree behaviour prior to version 1.1. See also bug #790.
Diffstat (limited to 'doc/markup')
-rw-r--r--doc/markup/toctree.rst14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/markup/toctree.rst b/doc/markup/toctree.rst
index 625fbb611..fe27e019d 100644
--- a/doc/markup/toctree.rst
+++ b/doc/markup/toctree.rst
@@ -126,6 +126,18 @@ tables of contents. The ``toctree`` directive is the central element.
intend to insert these links yourself, in a different style, or in the HTML
sidebar.
+ In cases where you want to have only one top-level toctree and hide all other
+ lower level toctrees you can add the "includehidden" option to the top-level
+ toctree entry::
+
+ .. toctree::
+ :includehidden:
+
+ doc_1
+ doc_2
+
+ All other toctree entries can then be eliminated by the "hidden" option.
+
In the end, all documents in the :term:`source directory` (or subdirectories)
must occur in some ``toctree`` directive; Sphinx will emit a warning if it
finds a file that is not included, because that means that this file will not
@@ -150,6 +162,8 @@ tables of contents. The ``toctree`` directive is the central element.
.. versionchanged:: 1.1
Added numeric argument to "numbered".
+ .. versionchanged:: 1.2
+ Added "includehidden" option.
Special names
-------------