Skip to content

Commit 56bc988

Browse files
committed
DOCS: optional doc building dependencies
1 parent fc18ccc commit 56bc988

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

doc/devel/documenting_mpl.rst

+15-7
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Installing dependencies
5353
The documentation for Matplotlib is generated from reStructuredText (ReST_)
5454
using the Sphinx_ documentation generation tool. To build the documentation
5555
you will need to (1) set up an appropriate Python environment and (2)
56-
separately install LaTeX and Graphviz.
56+
separately install our external dependencies.
5757

5858
To (1) set up an appropriate Python environment for building the
5959
documentation, you should:
@@ -70,16 +70,24 @@ shown below:
7070
.. include:: ../../requirements/doc/doc-requirements.txt
7171
:literal:
7272

73-
To (2) set up LaTeX and Graphviz dependencies you should:
73+
For (2), the Matplotlib docs require that you:
7474

7575
* install a minimal working LaTeX distribution
76-
* install the LaTeX packages cm-super and dvipng
7776
* install `Graphviz <http://www.graphviz.org/download>`_
77+
* install the LaTeX packages cm-super and dvipng. If your OS bundles `TexLive`,
78+
then often the "complete" version of the installer will automatically include
79+
these packages (e.g. "texlive-full" or "texlive-all").
80+
* (suggested) install `Inkscape <https://inkscape.org>`_.
81+
* (suggested) install `optipng <http://optipng.sourceforge.net>`_.
82+
* (suggested) install the "Humor Sans" font (aka the "XKCD" font).
7883

7984
.. note::
8085

8186
The documentation will not build without LaTeX and Graphviz. These are not
82-
Python packages and must be installed separately.
87+
Python packages and must be installed separately. The documentation can be
88+
built without Inkscape and optipng, but the build process will raise various
89+
warnings. If the build process warns that you are missing fonts, make sure
90+
your LaTeX distribution bundles cm-super or install it separately.
8391

8492
Building the docs
8593
-----------------
@@ -111,7 +119,7 @@ it, use
111119
.. code-block:: sh
112120
113121
make SPHINXOPTS= html
114-
122+
115123
On Windows the arguments must be at the end of the statement:
116124

117125
.. code-block:: bat
@@ -131,8 +139,8 @@ On Windows, either use the format shown above or set options as environment vari
131139

132140
.. code-block:: bat
133141
134-
set O=-W --keep-going -j4
135-
make html
142+
set O=-W --keep-going -j4
143+
make html
136144
137145
.. _writing-rest-pages:
138146

0 commit comments

Comments
 (0)