In documentation for many packages, including Sphinx itself, I see a directive at the start of certain files of the form
.. _<filename>:
For example, many glossaries start with
.. _glossary:
What do these directives do and where are they documented?
Note that I this is omitted from, for example, my 'glossary.rst', then :ref:
links to the Python glossary at python.org, rather than my glossary, so the directive is doing something important.glossary