mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Remove redundant labels
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
.. highlight:: rst
|
||||
|
||||
.. _c-domain:
|
||||
|
||||
The C Domain
|
||||
------------
|
||||
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
.. highlight:: rst
|
||||
|
||||
.. _cpp-domain:
|
||||
|
||||
The C++ Domain
|
||||
--------------
|
||||
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
.. highlight:: rst
|
||||
|
||||
.. _math-domain:
|
||||
|
||||
The Mathematics Domain
|
||||
----------------------
|
||||
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
.. highlight:: rst
|
||||
|
||||
.. _python-domain:
|
||||
|
||||
The Python Domain
|
||||
-----------------
|
||||
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
.. highlight:: rst
|
||||
|
||||
.. _domains-std:
|
||||
|
||||
The Standard Domain
|
||||
-------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user