Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d592ebb

Browse files
authored
Merge pull request #17961 from timhoffm/doc-how-to-contributing
DOCS: Remove How-to: Contributing
2 parents 71de09a + a925589 commit d592ebb

File tree

2 files changed

+18
-62
lines changed

2 files changed

+18
-62
lines changed

doc/devel/contributing.rst

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ The project is hosted on https://github.com/matplotlib/matplotlib
1212

1313
.. _coc: http://www.python.org/psf/codeofconduct/
1414

15+
.. _submitting-a-bug-report:
16+
1517
Submitting a bug report
1618
=======================
1719

@@ -296,24 +298,30 @@ besides which, we frequently underestimate how easy an issue is to solve!
296298
Contributing documentation
297299
==========================
298300

299-
Code is not the only way to contribute to Matplotlib. For instance,
300-
documentation is also a very important part of the project and often doesn't
301-
get as much attention as it deserves. If you find a typo in the documentation,
302-
or have made improvements, do not hesitate to send an email to the mailing
303-
list or submit a GitHub pull request. To make a pull request, refer to the
304-
guidelines outlined in :ref:`how-to-contribute`.
301+
You as an end-user of Matplotlib can make a valuable contribution because you
302+
more clearly see the potential for improvement than a core developer. For example, you can:
303+
304+
- Fix a typo
305+
- Clarify a docstring
306+
- Write or update an :ref:`example plot <gallery>`
307+
- Write or update a comprehensive :ref:`tutorial <tutorials>`
308+
309+
The documentation source files live in the same GitHub repository as the code.
310+
Contributions are proposed and accepted through the pull request process.
311+
For details see :ref:`how-to-contribute`.
305312

306-
Full documentation can be found under the :file:`doc/`, :file:`tutorials/`,
307-
and :file:`examples/` directories.
313+
If you have trouble getting started, you may instead open an `issue`_
314+
describing the intended improvement.
315+
316+
.. _issue: https://github.com/matplotlib/matplotlib/issues
308317

309318
.. seealso::
310319
* :ref:`documenting-matplotlib`
311320

312-
313321
.. _other_ways_to_contribute:
314322

315323
Other ways to contribute
316-
=========================
324+
========================
317325

318326
It also helps us if you spread the word: reference the project from your blog
319327
and articles or link to it from your website! If Matplotlib contributes to a

doc/faq/howto_faq.rst

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -527,58 +527,6 @@ You may be able to work on separate figures from separate threads. However,
527527
you must in that case use a *non-interactive backend* (typically Agg), because
528528
most GUI backends *require* being run from the main thread as well.
529529

530-
.. _howto-contribute:
531-
532-
How-to: Contributing
533-
====================
534-
535-
.. _how-to-contribute-docs:
536-
537-
Contribute to Matplotlib documentation
538-
--------------------------------------
539-
540-
Matplotlib is a big library, which is used in many ways, and the
541-
documentation has only scratched the surface of everything it can
542-
do. So far, the place most people have learned all these features are
543-
through studying the :ref:`examples-index`, which is a
544-
recommended and great way to learn, but it would be nice to have more
545-
official narrative documentation guiding people through all the dark
546-
corners. This is where you come in.
547-
548-
There is a good chance you know more about Matplotlib usage in some
549-
areas, the stuff you do every day, than many of the core developers
550-
who wrote most of the documentation. Just pulled your hair out
551-
compiling Matplotlib for Windows? Write a FAQ or a section for the
552-
:ref:`installing-faq` page. Are you a digital signal processing wizard?
553-
Write a tutorial on the signal analysis plotting functions like
554-
:func:`~matplotlib.pyplot.xcorr`, :func:`~matplotlib.pyplot.psd` and
555-
:func:`~matplotlib.pyplot.specgram`. Do you use Matplotlib with
556-
`django <https://www.djangoproject.com/>`_ or other popular web
557-
application servers? Write a FAQ or tutorial and we'll find a place
558-
for it in the :ref:`users-guide-index`. And so on... I think you get the
559-
idea.
560-
561-
Matplotlib is documented using the `sphinx
562-
<http://www.sphinx-doc.org/en/stable/>`_ extensions to restructured text
563-
`(ReST) <http://docutils.sourceforge.net/rst.html>`_. sphinx is an
564-
extensible python framework for documentation projects which generates
565-
HTML and PDF, and is pretty easy to write; you can see the source for this
566-
document or any page on this site by clicking on the *Show Source* link
567-
at the end of the page in the sidebar.
568-
569-
The sphinx website is a good resource for learning sphinx, but we have
570-
put together a cheat-sheet at :ref:`documenting-matplotlib` which
571-
shows you how to get started, and outlines the Matplotlib conventions
572-
and extensions, e.g., for including plots directly from external code in
573-
your documents.
574-
575-
Once your documentation contributions are working (and hopefully
576-
tested by actually *building* the docs) you can submit them as a patch
577-
against git. See :ref:`install-git` and :ref:`pr-guidelines`.
578-
Looking for something to do? Search for `TODO <../search.html?q=todo>`_
579-
or look at the open issues on github.
580-
581-
582530
.. _howto-webapp:
583531

584532
How to use Matplotlib in a web application server

0 commit comments

Comments
 (0)