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

Skip to content

Docs/contrib #12584

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 5 commits into from
Closed

Docs/contrib #12584

wants to merge 5 commits into from

Conversation

alisonspencer
Copy link

PR Summary

Added specific instructions for getting started modifying the mpl documentation - examples for installing matplotlib & dependencies using pip/conda, creating an isolated conda/virtualenv environment, and added links to sites to install LaTeX & Graphviz.

PR Checklist

  • Has Pytest style unit tests
  • Code is Flake 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

…alling mpl and dependencies for documentation editing
@jklymak
Copy link
Member

jklymak commented Oct 21, 2018

You had a rebase that seems to have gone bad and included to many commits. Can you try again?

@QuLogic
Copy link
Member

QuLogic commented Oct 21, 2018

It's not a rebase; the target is v3.0.0-doc but should be master since the branch started there.

@QuLogic QuLogic changed the base branch from v3.0.0-doc to master October 21, 2018 22:14
Copy link
Contributor

@anntzer anntzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

anyone can dismiss, as usual.

@@ -51,17 +52,86 @@ requirements that are needed to build the documentation. They are listed in

* Sphinx>=1.3, !=1.5.0, !=1.6.4, !=1.7.3
* colorspacious
* IPython
* IPython<7.0.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs to be clarified wrt #12583.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will get out of sync again in the future. Can we just refer to doc-requirements.txt instead of listing everything explicitly here again? Or literalinclude if we want that information written out here.

Creating a development environment
----------------------------------

It's suggested that you create a separate python environment for working on matplotlib. You can do this using `conda <https://conda.io/docs/user-guide/tasks/manage-environments.html>`_ or `virtualenv <https://virtualenv.pypa.io/en/stable/>`_. You'll need to use python3 to work on the most current version of Matplotlib.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather consolidate this with what's already in contributing.rst rather than duplicating the same info in two places with two slightly different variants.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can merge it with what's in contributing.rst, but I do think that precise instructions are helpful for beginners looking to contribute specifically to the documentation. Would links between documenting_mpl.rst and contributing.rst be a reasonable solution?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

linking is fine too.


.. code-block:: sh

pip install matplotlib=="3.0.0"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

quoting is unnecessary


conda install -c conda-forge matplotlib mpl_sample_data

Create a fork of the matplotlib repo to your personal github account, and clone the forked repo to your machine:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again this info should be consolidated with the testing docs rather than being spread out.

@tacaswell tacaswell modified the milestones: v3.0.x, v3.0.0-doc Oct 22, 2018
@matplotlib matplotlib deleted a comment from alisonspencer Oct 22, 2018
@matplotlib matplotlib deleted a comment from alisonspencer Oct 22, 2018
@matplotlib matplotlib deleted a comment from alisonspencer Oct 22, 2018
@QuLogic QuLogic modified the milestones: v3.0.0-doc, v3.0.2-doc Nov 27, 2018
@@ -41,27 +41,46 @@ documentation built into their comments. Don't directly edit the
``.rst`` files in :file:`doc/gallery` and :file:`doc/tutorials` as they are
regenerated when the documentation are built.

Installing dependencies

Dependencies
-----------------------
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
-----------------------
------------

-----------------------

The documentation for Matplotlib is generated from reStructuredText (ReST_)
using the Sphinx_ documentation generation tool. There are several extra
requirements that are needed to build the documentation. They are listed in
:file:`doc-requirements.txt` and listed below:
requirements, in addition to those in :ref:`Contributing <contributing>`, that are needed to build the documentation. They are listed in
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://16523-1385122-gh.circle-artifacts.com/0/home/circleci/project/doc/build/html/devel/contributing.html actially doesn't list the dependencies.

The whole paragraph could be rephrased to:

Building the documentation requires the following extra requirements:

  • Sphinx
    ...

See :file:doc-requirements.txt for the exact version requirements. You can also use this file to install the dependencies using your package manager:

python -m pip install -r doc-requirements.txt
# or
conda install --file doc-requirements.txt

@tacaswell tacaswell modified the milestones: v3.0-doc, v3.1-doc Jul 3, 2019
@tacaswell tacaswell modified the milestones: v3.1-doc, 3.2-doc Mar 15, 2020
@timhoffm
Copy link
Member

Content is now present in the current documentation.

@alisonspencer Sorry that the PR stalled. Anyway, thanks for the contribution!

@timhoffm timhoffm closed this Jul 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants