Using aliases to create linksΒΆ
Aliases are labels that you can attach to titles (or anything else) to avoid referring to the titles themselves in case they change. Instead you create a link to the alias and you get the freedom of changing the corresponding title as much as needed without worrying about broken links.
This is essential as Sphinx is not a CMS. Changing a file name or lists of titles can potentially be a lot of work compared to proprietary software that will rename all links for you automatically.
For example, imagine the following title:
Creating aliases
----------------
You can refer to it by using the standard rST link markup:
link to `Creating aliases`_
This link will be broken as soon as you change the title.
Instead, refer to a label:
.. _create-alias:
Creating aliases
----------------
And link to it:
unbreakable link to :ref:`create-alias`
Note
You can only create such a link using the ref
role, which is recommended in the vast majority of cases.