77API documentation
88*****************
99
10- A domain is a collection of markup (directives and roles) to describe and link to objects belonging together,
11- e.g. elements of a programming language.
10+ A domain is a collection of markup, consisting of directives and roles,
11+ that describe and link to objects belonging together,
12+ such as elements of a programming language.
1213
13- -- https://www.sphinx-doc.org/en/master/usage/domains/index.html
14+ .. seealso ::
1415
15- The following sections show examples of the domains built-in to Sphinx.
16+ `Domains <https://www.sphinx-doc.org/en/master/usage/domains/index.html >`_
17+
18+ The following sections show examples of the built-in domains of Sphinx.
1619
1720.. toctree ::
1821 :titlesonly:
@@ -23,7 +26,8 @@ The following sections show examples of the domains built-in to Sphinx.
2326Using autodoc
2427=============
2528
26- Using Sphinx's :any: `sphinx.ext.autodoc ` plugin, it is possible to auto-generate documentation of a Python module.
29+ Using Sphinx's :any: `sphinx.ext.autodoc ` plugin,
30+ it is possible to auto-generate documentation of a Python module.
2731
2832.. tip ::
2933 Avoid having in-function-signature type annotations with autodoc,
@@ -45,9 +49,18 @@ Using Sphinx's :any:`sphinx.ext.autodoc` plugin, it is possible to auto-generate
4549 The ``automodule `` Directive with reStructuredText Markup
4650---------------------------------------------------------
4751
48- What follows after the line is an example showing usage of the ``.. automodule:: `` directive.
52+ The following markup is an example of the ``automodule `` directive.
53+ Note that the ``currentmodule `` directive sets the current module.
54+
55+ .. code-block :: rst
56+
57+ .. currentmodule:: all_in_one_restructuredtext
58+
59+ .. automodule:: all_in_one_restructuredtext
60+ :members:
61+ :member-order: bysource
4962
50- ---
63+ The foregoing markup example renders as shown below.
5164
5265.. currentmodule :: all_in_one_restructuredtext
5366
0 commit comments