Clarify what happens if no title is used in the :ref:

This commit is contained in:
Juan Luis Cano Rodríguez
2021-06-22 15:44:52 +02:00
parent 15fe52dce6
commit 013e67f4fd

View File

@@ -440,7 +440,9 @@ And make the sentence you added in ``index.rst`` look like this:
Notice a trick here: the ``install`` part specifies how the link will look like
(we want it to be a specific word, so the sentence makes sense), whereas the
``<installation>`` part refers to the actual label we want to add a
cross-reference to. Both the ``:doc:`` and the ``:ref:`` roles will be rendered
cross-reference to. If you do not include an explicit title, hence using
``:ref:`installation```, the section title will be used (in this case,
``Installation``). Both the ``:doc:`` and the ``:ref:`` roles will be rendered
as hyperlinks in the HTML documentation.
Where to go from here