Skip to content

Commit fcdda0b

Browse files
committed
Minor documentation formatting improvement
1 parent 94fe540 commit fcdda0b

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

pkgs/sage-docbuild/README.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
Sage: Open Source Mathematics Software: Build system of the Sage documentation
33
================================================================================
44

5+
.. NOTE::
6+
7+
If you are a developer and want to build the SageMath documentation from source,
8+
refer to `developer's guide <../../developer/sage_manuals.html>`_.
9+
510
About SageMath
611
--------------
712

src/doc/en/developer/sage_manuals.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ function's documentation. Type::
7777
Hyperlinks
7878
==========
7979

80-
The documentation can contain links toward modules, classes, or methods, e.g.::
80+
The documentation can contain links toward modules, classes, or methods, e.g.:
81+
82+
.. CODE-BLOCK:: rest
8183
8284
:mod:`link to a module <sage.module_name>`
8385
:mod:`sage.module_name` (here the link's text is the module's name)
@@ -335,7 +337,7 @@ links that it contains, use the ``--warn-links`` flag. Note that Sphinx will not
335337
rebuild a document that has not been updated, and thus not report its broken
336338
links::
337339

338-
sage --docbuild --warn-links reference html
340+
sage --docbuild --warn-links reference html
339341

340342
.. _section-manuals-names:
341343

src/sage_docbuild/builders.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
"""
33
Documentation builders
44
5+
.. NOTE::
6+
7+
If you are a developer and want to build the SageMath documentation from source,
8+
refer to `developer's guide <../../../developer/sage_manuals.html>`_.
9+
510
This module is the starting point for building documentation, and is
611
responsible to figure out what to build and with which options. The actual
712
documentation build for each individual document is then done in a subprocess
@@ -21,7 +26,7 @@
2126
in ``local/share/inventory``.
2227
2328
The reference manual is built in two passes, first by :class:`ReferenceBuilder`
24-
with ``inventory`` output type and secondly with``html`` output type. The
29+
with ``inventory`` output type and secondly with ``html`` output type. The
2530
:class:`ReferenceBuilder` itself uses :class:`ReferenceTopBuilder` and
2631
:class:`ReferenceSubBuilder` to build subcomponents of the reference manual.
2732
The :class:`ReferenceSubBuilder` examines the modules included in the
@@ -293,7 +298,7 @@ def clean(self, *args):
293298

294299
def build_many(target, args, processes=None):
295300
"""
296-
Thin wrapper around `sage_docbuild.utils.build_many` which uses the
301+
Thin wrapper around :func:`sage_docbuild.utils.build_many` which uses the
297302
docbuild settings ``NUM_THREADS`` and ``ABORT_ON_ERROR``.
298303
"""
299304
if processes is None:

0 commit comments

Comments
 (0)