mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
docs: update sphinx.rst to reflect the default theme change
We don't default to Read The Docs anymore; update the docs to match. Acked-by: Mauro Carvalho Chehab <mchehab@kernel.org> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
This commit is contained in:
parent
2056b920c6
commit
26d797ffc1
1 changed files with 5 additions and 11 deletions
|
@ -147,11 +147,9 @@ section of ``make help``. The generated documentation is placed in
|
||||||
format-specific subdirectories under ``Documentation/output``.
|
format-specific subdirectories under ``Documentation/output``.
|
||||||
|
|
||||||
To generate documentation, Sphinx (``sphinx-build``) must obviously be
|
To generate documentation, Sphinx (``sphinx-build``) must obviously be
|
||||||
installed. For prettier HTML output, the Read the Docs Sphinx theme
|
installed. For PDF output you'll also need ``XeLaTeX`` and ``convert(1)``
|
||||||
(``sphinx_rtd_theme``) is used if available. For PDF output you'll also need
|
from ImageMagick (https://www.imagemagick.org).\ [#ink]_ All of these are
|
||||||
``XeLaTeX`` and ``convert(1)`` from ImageMagick
|
widely available and packaged in distributions.
|
||||||
(https://www.imagemagick.org).\ [#ink]_
|
|
||||||
All of these are widely available and packaged in distributions.
|
|
||||||
|
|
||||||
To pass extra options to Sphinx, you can use the ``SPHINXOPTS`` make
|
To pass extra options to Sphinx, you can use the ``SPHINXOPTS`` make
|
||||||
variable. For example, use ``make SPHINXOPTS=-v htmldocs`` to get more verbose
|
variable. For example, use ``make SPHINXOPTS=-v htmldocs`` to get more verbose
|
||||||
|
@ -160,12 +158,8 @@ output.
|
||||||
It is also possible to pass an extra DOCS_CSS overlay file, in order to customize
|
It is also possible to pass an extra DOCS_CSS overlay file, in order to customize
|
||||||
the html layout, by using the ``DOCS_CSS`` make variable.
|
the html layout, by using the ``DOCS_CSS`` make variable.
|
||||||
|
|
||||||
By default, the build will try to use the Read the Docs sphinx theme:
|
By default, the "Alabaster" theme is used to build the HTML documentation;
|
||||||
|
this theme is bundled with Sphinx and need not be installed separately.
|
||||||
https://github.com/readthedocs/sphinx_rtd_theme
|
|
||||||
|
|
||||||
If the theme is not available, it will fall-back to the classic one.
|
|
||||||
|
|
||||||
The Sphinx theme can be overridden by using the ``DOCS_THEME`` make variable.
|
The Sphinx theme can be overridden by using the ``DOCS_THEME`` make variable.
|
||||||
|
|
||||||
There is another make variable ``SPHINXDIRS``, which is useful when test
|
There is another make variable ``SPHINXDIRS``, which is useful when test
|
||||||
|
|
Loading…
Add table
Reference in a new issue