Add cross reference to role definitions

This commit is contained in:
Juan Luis Cano Rodríguez
2021-08-09 14:05:55 +02:00
parent 1acdf4f873
commit 1a1e45f1af

View File

@@ -85,8 +85,9 @@ introduction paragraph in ``index.rst``:
Check out the :doc:`usage` section for further information.
The :rst:role:`doc` role you used automatically references a specific document
in the project, in this case the ``usage.rst`` you created earlier.
The :rst:role:`doc` :ref:`role <rst-roles-alt>` you used automatically
references a specific document in the project, in this case the ``usage.rst``
you created earlier.
Alternatively, you can also add a cross-reference to an arbitrary part of the
project. For that, you need to use the :rst:role:`ref` role, and add an