Remove redundant labels

This commit is contained in:
Adam Turner
2023-10-01 19:53:52 +01:00
parent 607aadc660
commit 385a9193a7
7 changed files with 6 additions and 16 deletions

View File

@@ -179,9 +179,9 @@ hook the various parts of our extension into Sphinx. Let's look at the
This looks a little different to what we're used to seeing. There are no calls
to :meth:`~Sphinx.add_directive` or even :meth:`~Sphinx.add_role`. Instead, we
have a single call to :meth:`~Sphinx.add_domain` followed by some
initialization of the :ref:`standard domain <domains-std>`. This is because we
had already registered our directives, roles and indexes as part of the
directive itself.
initialization of the :doc:`standard domain </usage/domains/standard>`.
This is because we had already registered our directives,
roles and indexes as part of the directive itself.
Using the extension

View File

@@ -21,9 +21,9 @@ Documenting Python objects
~~~~~~~~~~~~~~~~~~~~~~~~~~
Sphinx offers several roles and directives to document Python objects,
all grouped together in :ref:`the Python domain <python-domain>`. For example,
you can use the :rst:dir:`py:function` directive to document a Python function,
as follows:
all grouped together in :doc:`the Python domain </usage/domains/python>`.
For example, you can use the :rst:dir:`py:function` directive to document
a Python function, as follows:
.. code-block:: rst
:caption: docs/source/usage.rst

View File

@@ -1,7 +1,5 @@
.. highlight:: rst
.. _c-domain:
The C Domain
------------

View File

@@ -1,7 +1,5 @@
.. highlight:: rst
.. _cpp-domain:
The C++ Domain
--------------

View File

@@ -1,7 +1,5 @@
.. highlight:: rst
.. _math-domain:
The Mathematics Domain
----------------------

View File

@@ -1,7 +1,5 @@
.. highlight:: rst
.. _python-domain:
The Python Domain
-----------------

View File

@@ -1,7 +1,5 @@
.. highlight:: rst
.. _domains-std:
The Standard Domain
-------------------