refs #1742: :name: option is provided for toctree, code-block and literalinclude dirctives.

This commit is contained in:
shimizukawa
2015-03-08 18:58:23 +09:00
parent ad612fb03d
commit e2a921ff07
6 changed files with 37 additions and 17 deletions

View File

@@ -85,10 +85,13 @@ tables of contents. The ``toctree`` directive is the central element.
**Additional options**
You can use ``caption`` option to provide toctree caption::
You can use ``caption`` option to provide toctree caption and you can use
``name`` option to provide implicit target name that can be referenced by
using :rst:role:`ref`::
.. toctree::
:caption: Table of Contents
:name: mastertoc
foo
@@ -176,7 +179,7 @@ tables of contents. The ``toctree`` directive is the central element.
Added "includehidden" option.
.. versionchanged:: 1.3
Added "caption" option.
Added "caption" and "name" option.
Special names
-------------