Add option to docs

This commit is contained in:
sethg
2020-02-16 21:37:41 +01:00
parent 6ed4d37503
commit 28ad370343

View File

@@ -874,6 +874,19 @@ mainly contained in information units, such as the language reference.
.. versionchanged:: 1.1
Added ``see`` and ``seealso`` types, as well as marking main entries.
.. rubric:: options
.. rst:directive:option:: name: a label for hyperlink
:type: text
Define implicit target name that can be referenced by using
:rst:role:`ref`. For example::
.. index:: Python
:name: py-index
.. versionadded:: 2.5
.. rst:role:: index
While the :rst:dir:`index` directive is a block-level markup and links to the