Skip to content

Commit bd1e4b2

Browse files
committed
improve-doc-contrib: improvements to contrib instructions for docs
1 parent 9d40170 commit bd1e4b2

File tree

2 files changed

+41
-21
lines changed

2 files changed

+41
-21
lines changed

doc/devel/contributing.rst

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -274,21 +274,32 @@ This helps the contributor become familiar with the contribution
274274
workflow, and for the core devs to become acquainted with the contributor;
275275
besides which, we frequently underestimate how easy an issue is to solve!
276276

277-
.. _other_ways_to_contribute:
278277

279-
Other ways to contribute
280-
=========================
278+
.. _contributing_documentation:
281279

280+
Contributing documentation
281+
==========================
282282

283283
Code is not the only way to contribute to Matplotlib. For instance,
284284
documentation is also a very important part of the project and often doesn't
285285
get as much attention as it deserves. If you find a typo in the documentation,
286286
or have made improvements, do not hesitate to send an email to the mailing
287287
list or submit a GitHub pull request. Full documentation can be found under
288-
the doc/ directory.
288+
the :file:`doc/`, :file:`tutorials/`, and :file:`examples/` directories.
289+
290+
.. seealso::
291+
* :ref:`documenting-matplotlib`
292+
293+
294+
.. _other_ways_to_contribute:
295+
296+
Other ways to contribute
297+
=========================
289298

290299
It also helps us if you spread the word: reference the project from your blog
291-
and articles or link to it from your website!
300+
and articles or link to it from your website! If Matplotlib contributes to a
301+
project that leads to a scientific publication, please follow these guidelines
302+
for citation :doc:`/citing`.
292303

293304
.. _coding_guidelines:
294305

doc/devel/documenting_mpl.rst

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,28 +18,32 @@ Getting started
1818
General file structure
1919
----------------------
2020

21-
All documentation is built from the :file:`doc/` directory. This directory
22-
contains both reStructuredText (ReST_; ``.rst``) files that contain pages in
23-
the documentation and configuration files for Sphinx_.
21+
All documentation is built from the :file:`doc/`, :file:`tutorials/`, and
22+
:file:`examples/` directories. The :file:`doc/` directory contains both
23+
reStructuredText (ReST_; ``.rst``) files that contain pages in the
24+
documentation and configuration files for Sphinx_.
2425

25-
The ``.rst`` files are kept in :file:`doc/users`,
26-
:file:`doc/devel`, :file:`doc/api` and :file:`doc/faq`. The main entry point is
27-
:file:`doc/index.rst`, which pulls in the :file:`index.rst` file for the users
28-
guide, developers guide, api reference, and FAQs. The documentation suite is
29-
built as a single document in order to make the most effective use of cross
30-
referencing.
26+
The main entry point is :file:`doc/index.rst`, which pulls in the
27+
:file:`index.rst` file for the users guide (:file:`doc/users`), developers
28+
guide (:file:`doc/devel`), api reference (:file:`doc/api`), and FAQs
29+
(:file:`doc/faq`). The documentation suite is built as a single document in
30+
order to make the most effective use of cross referencing.
3131

3232
Sphinx_ also creates ``.rst`` files that are staged in :file:`doc/api` from
3333
the docstrings of the classes in the Matplotlib library. Except for
3434
:file:`doc/api/api_changes/`, these ``.rst`` files are created when the
3535
documentation is built.
3636

3737
Similarly, the contents of :file:`doc/gallery` and :file:`doc/tutorials` are
38-
generated by the `Sphinx Gallery`_ from the sources in :file:`examples` and
39-
:file:`tutorials`. These sources consist of python scripts that have ReST_
40-
documentation built into their comments. Don't directly edit the
41-
``.rst`` files in :file:`doc/gallery` and :file:`doc/tutorials` as they are
42-
regenerated when the documentation are built.
38+
generated by the `Sphinx Gallery`_ from the sources in :file:`examples/` and
39+
:file:`tutorials/`. These sources consist of python scripts that have ReST_
40+
documentation built into their comments.
41+
42+
.. note::
43+
44+
Don't directly edit the ``.rst`` files in :file:`doc/gallery` and
45+
:file:`doc/tutorials` as they are regenerated when the documentation are
46+
built.
4347

4448
Installing dependencies
4549
-----------------------
@@ -54,9 +58,14 @@ requirements that are needed to build the documentation. They are listed in
5458

5559
.. note::
5660

57-
* You'll need a minimal working LaTeX distribution for many examples to run.
58-
* `Graphviz <http://www.graphviz.org/Download.php>`_ is not a Python package,
61+
* You'll need a minimal working LaTeX distribution to build the
62+
documentation.
63+
* The LaTeX pacakges cm-super and dvipng are also required to build the
64+
documentation.
65+
* `Graphviz <http://www.graphviz.org/download>`_ is not a Python package,
5966
and needs to be installed separately.
67+
* You should set up a clean `virtual environment`_ if you plan to build the
68+
documentation.
6069

6170
Building the docs
6271
-----------------

0 commit comments

Comments
 (0)