Skip to content

Commit 7aa60af

Browse files
committed
improve-doc-contrib: edits to dependencies for building docs
1 parent d9e75c6 commit 7aa60af

File tree

2 files changed

+25
-12
lines changed

2 files changed

+25
-12
lines changed

doc/devel/contributing.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,8 @@ Code is not the only way to contribute to Matplotlib. For instance,
286286
documentation is also a very important part of the project and often doesn't
287287
get as much attention as it deserves. If you find a typo in the documentation,
288288
or have made improvements, do not hesitate to send an email to the mailing
289-
list or submit a GitHub pull request as outlined in :ref:`how-to-contribute`.
289+
list or submit a GitHub pull request. To make a pull request, refer to the
290+
guidelines outlined in :ref:`how-to-contribute`.
290291

291292
Full documentation can be found under the :file:`doc/`, :file:`tutorials/`,
292293
and :file:`examples/` directories.

doc/devel/documenting_mpl.rst

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,23 +50,35 @@ Installing dependencies
5050
-----------------------
5151

5252
The documentation for Matplotlib is generated from reStructuredText (ReST_)
53-
using the Sphinx_ documentation generation tool. There are several extra
54-
requirements that are needed to build the documentation. They are listed in
55-
:file:`doc-requirements.txt`, which is shown below:
53+
using the Sphinx_ documentation generation tool. To build the documentation
54+
you will need to (1) set up an appropriate Python environment and (2)
55+
separately install LaTeX and Graphviz.
56+
57+
To (1) set up an appropriate Python environment for building the
58+
documentation, you should:
59+
60+
* create a clean virtual environment with no existing Matplotlib
61+
installation
62+
* install the Python packages required for Matplotlib
63+
* install the additional Python packages required to build the documentation
64+
65+
There are several extra python packages that are needed to build the
66+
documentation. They are listed in :file:`doc-requirements.txt`, which is
67+
shown below:
5668

5769
.. include:: ../../requirements/doc/doc-requirements.txt
5870
:literal:
5971

72+
To (2) set up LaTeX and Graphviz dependencies you should:
73+
74+
* install a minimal working LaTeX distribution
75+
* install the LaTeX packages cm-super and dvipng
76+
* install `Graphviz <http://www.graphviz.org/download>`_
77+
6078
.. note::
6179

62-
* You should set up a clean virtual environment with no existing Matplotlib
63-
installation if you plan to build the documentation.
64-
* You'll need a minimal working LaTeX distribution to build the
65-
documentation.
66-
* The LaTeX pacakges cm-super and dvipng are also required to build the
67-
documentation.
68-
* `Graphviz <http://www.graphviz.org/download>`_ is not a Python package,
69-
and needs to be installed separately.
80+
The documentation will not build without LaTeX and Graphviz. These are not
81+
Python packages and must be installed separately.
7082

7183
Building the docs
7284
-----------------

0 commit comments

Comments
 (0)