mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Cross-reference to role docs.
This commit is contained in:
@@ -308,6 +308,8 @@ single word, like this::
|
|||||||
:param integer limit: maximum number of stack frames to show
|
:param integer limit: maximum number of stack frames to show
|
||||||
|
|
||||||
|
|
||||||
|
.. _python-roles:
|
||||||
|
|
||||||
Cross-referencing Python objects
|
Cross-referencing Python objects
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
@@ -438,6 +440,8 @@ The C domain (name **c**) is suited for documentation of C API.
|
|||||||
.. c:var:: PyObject* PyClass_Type
|
.. c:var:: PyObject* PyClass_Type
|
||||||
|
|
||||||
|
|
||||||
|
.. _c-roles:
|
||||||
|
|
||||||
Cross-referencing C constructs
|
Cross-referencing C constructs
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
@@ -522,6 +526,9 @@ The following directives are available:
|
|||||||
|
|
||||||
Select the current C++ namespace for the following objects.
|
Select the current C++ namespace for the following objects.
|
||||||
|
|
||||||
|
|
||||||
|
.. _cpp-roles:
|
||||||
|
|
||||||
These roles link to the given object types:
|
These roles link to the given object types:
|
||||||
|
|
||||||
.. rst:role:: cpp:class
|
.. rst:role:: cpp:class
|
||||||
@@ -689,6 +696,8 @@ The JavaScript domain (name **js**) provides the following directives:
|
|||||||
|
|
||||||
Describes the attribute *name* of *object*.
|
Describes the attribute *name* of *object*.
|
||||||
|
|
||||||
|
.. _js-roles:
|
||||||
|
|
||||||
These roles are provided to refer to the described objects:
|
These roles are provided to refer to the described objects:
|
||||||
|
|
||||||
.. rst:role:: js:func
|
.. rst:role:: js:func
|
||||||
@@ -740,6 +749,8 @@ The reStructuredText domain (name **rst**) provides the following directives:
|
|||||||
|
|
||||||
Foo description.
|
Foo description.
|
||||||
|
|
||||||
|
.. _rst-roles:
|
||||||
|
|
||||||
These roles are provided to refer to the described objects:
|
These roles are provided to refer to the described objects:
|
||||||
|
|
||||||
.. rst:role:: rst:dir
|
.. rst:role:: rst:dir
|
||||||
|
|||||||
@@ -44,6 +44,18 @@ more versatile:
|
|||||||
tool-tip on mouse-hover) will always be the full target name.
|
tool-tip on mouse-hover) will always be the full target name.
|
||||||
|
|
||||||
|
|
||||||
|
Cross-referencing objects
|
||||||
|
-------------------------
|
||||||
|
|
||||||
|
These roles are described with their respective domains:
|
||||||
|
|
||||||
|
* :ref:`Python <python-roles>`
|
||||||
|
* :ref:`C <c-roles>`
|
||||||
|
* :ref:`C++ <cpp-roles>`
|
||||||
|
* :ref:`JavaScript <js-roles>`
|
||||||
|
* :ref:`ReST <rst-roles>`
|
||||||
|
|
||||||
|
|
||||||
.. _ref-role:
|
.. _ref-role:
|
||||||
|
|
||||||
Cross-referencing arbitrary locations
|
Cross-referencing arbitrary locations
|
||||||
|
|||||||
Reference in New Issue
Block a user