Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Update docs on docs.#9311

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
dstansby merged 1 commit intomatplotlib:masterfromanntzer:documenting-mpl
Nov 16, 2017
Merged

Conversation

anntzer
Copy link
Contributor

Update PULL_REQUEST_TEMPLATE.md to emphasize markup specificities in RST
(as opposed to md) regarding double/single backquotes and asterisks.
(I'm a bit tired of pointing to this every other docstring PR.)

In documenting_mpl.rst:

  • Various reformattings/line wrappings/rewordings.
  • Explicitly mark the highlighting language of each code block, as we
    have a mix of python/shell/rst (and emacs lisp).
  • Drop unneeded:func:/:class: markups.
  • Drop request to line wrap docstrings at 70 characters (in practice
    they are line-wrapped at 79 like normal Python sources).
  • Do not forbid spanned cells in tables, which recent Sphinxes handles
    just fine.

In make.py:

  • Simplify argument parsing, slightly improving output of./make.py --help

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code is PEP 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

@dstansby
Copy link
Member

Would be good if someone could double checkmake.py..

@dstansbydstansby added this to the2.1.0-docs milestoneOct 8, 2017
@@ -6,6 +6,12 @@ https://matplotlib.org/devdocs/devel/index.html-->
example "Raises ValueError on Non-Numeric Input to set_xlim". Please avoid
non-descriptive titles such as "Addresses issue #8576".-->

<!--If you are contributing fixes to docstrings
(which are very welcome!), please pay attention to
Copy link
Member

Choose a reason for hiding this comment

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

Can we make this less passive aggressive?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Feel free to propose an alternate wording 😃

Copy link
Member

Choose a reason for hiding this comment

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

I'm worried that the template is getting too large for anyone to bother reading - I'm happy to just get rid of (which are very welcome!) here,

@anntzeranntzer self-assigned thisOct 22, 2017
@anntzer
Copy link
ContributorAuthor

Temporarily closed to let#9513 be merged first.

@anntzeranntzer reopened thisNov 16, 2017
@jklymakjklymak self-requested a reviewNovember 16, 2017 19:00
@anntzeranntzer removed their assignmentNov 16, 2017
Copy link
Member

@dstansbydstansby left a comment

Choose a reason for hiding this comment

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

A couple of minor things, otherwise looks good to me!

6.pillow
7.graphviz
6.Pillow
7.Graphviz
Copy link
Member

Choose a reason for hiding this comment

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

Needssphinx-gallery

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Addressed in#9513.

exist in the root directory. These contain Python files that are built by `Sphinx Gallery`_.
When the docs are built, directories of the same name will be generated inside of :file:`docs/`.
The generated directories :file:`docs/gallery` and :file:`docs/tutorials` can be safely deleted.
An exception to this are the directories :file:`gallery` and
Copy link
Member

Choose a reason for hiding this comment

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

Should beexamples instead ofgallery I think now?

Copy link
ContributorAuthor

@anntzeranntzerNov 16, 2017
edited
Loading

Choose a reason for hiding this comment

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

No, the files end up in the gallery subfolder of the source tree (and the build).

:file:`tutorials`, which exist in the root directory. These contain Python
files that are built by `Sphinx Gallery`_. When the docs are built,
directories of the same name will be generated inside of :file:`docs/`. The
generated directories :file:`docs/gallery` and :file:`docs/tutorials` can be
Copy link
Member

Choose a reason for hiding this comment

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

examples instead ofgallery again here

@@ -6,6 +6,12 @@ https://matplotlib.org/devdocs/devel/index.html-->
example "Raises ValueError on Non-Numeric Input to set_xlim". Please avoid
non-descriptive titles such as "Addresses issue #8576".-->

<!--If you are contributing fixes to docstrings
(which are very welcome!), please pay attention to
Copy link
Member

Choose a reason for hiding this comment

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

I'm worried that the template is getting too large for anyone to bother reading - I'm happy to just get rid of (which are very welcome!) here,

Update PULL_REQUEST_TEMPLATE.md to emphasize markup specificities in RST(as opposed to md) regarding double/single backquotes and asterisks.In documenting_mpl.rst:- Various reformattings/line wrappings/rewordings.- Explicitly mark the highlighting language of each code block, as we  have a mix of python/shell/rst (and emacs lisp).- Drop unneeded `:func:`/`:class:` markups.- Drop request to line wrap docstrings at 70 characters (in practice  they are line-wrapped at 79 like normal Python sources).- Do not forbid spanned cells in tables, which recent Sphinxes handles  just fine.In make.py:- Simplify argument parsing, slightly improving output of `./make.py--help`
@anntzer
Copy link
ContributorAuthor

Removed the 'very welcome'.

@dstansbydstansby modified the milestones:v2.1.0-doc,v2.1.1Nov 16, 2017
@jklymak
Copy link
Member

This looks fine to me. I was disappointed tostill not see a description of how to reference functions both in MPL and using inter-sphinx. This is badly needed in my opinion.@dstansby does your PR address this?

@dstansbydstansby merged commit4ed9996 intomatplotlib:masterNov 16, 2017
@dstansby
Copy link
Member

It doesn't yet, but it can!

jklymak reacted with thumbs up emoji

@lumberbot-app
Copy link

There seem to be a conflict, please backport manually

@anntzeranntzer deleted the documenting-mpl branchNovember 16, 2017 23:39
@anntzeranntzer mentioned this pull requestNov 17, 2017
6 tasks
@tacaswelltacaswell modified the milestones:v2.1.1,v2.2Dec 6, 2017
@tacaswell
Copy link
Member

re-milestoning this to 2.2. There is at least one other PR that did not get backported previously, the backport is not clean at all.

@QuLogicQuLogic modified the milestones:needs sorting,v2.2.0Feb 12, 2018
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@tacaswelltacaswelltacaswell left review comments

@dstansbydstansbydstansby approved these changes

@jklymakjklymakAwaiting requested review from jklymak

Assignees
No one assigned
Projects
None yet
Milestone
v2.2.0
Development

Successfully merging this pull request may close these issues.

5 participants
@anntzer@dstansby@jklymak@tacaswell@QuLogic

[8]ページ先頭

©2009-2025 Movatter.jp