mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Clarify what happens if no title is used in the :ref:
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user