Skip to content

Commit d9e75c6

Browse files
committed
improve-doc-contrib: update links and references for doc contrib
1 parent bd1e4b2 commit d9e75c6

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

doc/devel/contributing.rst

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ You can then run the tests to check your work environment is set up properly::
127127
Contributing code
128128
=================
129129

130+
.. _how-to-contribute:
131+
130132
How to contribute
131133
-----------------
132134

@@ -175,7 +177,7 @@ want to consider sending an email to the mailing list for more visibility.
175177
* `Git documentation <https://git-scm.com/documentation>`_
176178
* `Git-Contributing to a Project <https://git-scm.com/book/en/v2/GitHub-Contributing-to-a-Project>`_
177179
* `Introduction to GitHub <https://lab.github.com/githubtraining/introduction-to-github>`_
178-
* :ref:`development-workflow`.
180+
* :ref:`development-workflow`
179181
* :ref:`using-git`
180182

181183
Contributing pull requests
@@ -284,8 +286,10 @@ Code is not the only way to contribute to Matplotlib. For instance,
284286
documentation is also a very important part of the project and often doesn't
285287
get as much attention as it deserves. If you find a typo in the documentation,
286288
or have made improvements, do not hesitate to send an email to the mailing
287-
list or submit a GitHub pull request. Full documentation can be found under
288-
the :file:`doc/`, :file:`tutorials/`, and :file:`examples/` directories.
289+
list or submit a GitHub pull request as outlined in :ref:`how-to-contribute`.
290+
291+
Full documentation can be found under the :file:`doc/`, :file:`tutorials/`,
292+
and :file:`examples/` directories.
289293

290294
.. seealso::
291295
* :ref:`documenting-matplotlib`
@@ -298,8 +302,8 @@ Other ways to contribute
298302

299303
It also helps us if you spread the word: reference the project from your blog
300304
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`.
305+
project that leads to a scientific publication, please follow the
306+
:doc:`/citing` guidelines.
303307

304308
.. _coding_guidelines:
305309

doc/devel/documenting_mpl.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,10 @@ documentation built into their comments.
4141

4242
.. note::
4343

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.
44+
Don't directly edit the ``.rst`` files in :file:`doc/gallery`,
45+
:file:`doc/tutorials`, and :file:`doc/api` (excepting
46+
:file:`doc/api/api_changes/`). Sphinx_ regenerates files in these
47+
directories when building documentation.
4748

4849
Installing dependencies
4950
-----------------------
@@ -58,14 +59,14 @@ requirements that are needed to build the documentation. They are listed in
5859

5960
.. note::
6061

62+
* You should set up a clean virtual environment with no existing Matplotlib
63+
installation if you plan to build the documentation.
6164
* You'll need a minimal working LaTeX distribution to build the
6265
documentation.
6366
* The LaTeX pacakges cm-super and dvipng are also required to build the
6467
documentation.
6568
* `Graphviz <http://www.graphviz.org/download>`_ is not a Python package,
6669
and needs to be installed separately.
67-
* You should set up a clean `virtual environment`_ if you plan to build the
68-
documentation.
6970

7071
Building the docs
7172
-----------------

0 commit comments

Comments
 (0)