Skip to content

Document how to create sphinx-gallery references to examples - #19774

Merged
QuLogic merged 1 commit into
matplotlib:masterfrom
timhoffm:doc-references
Mar 26, 2021
Merged

QuLogic merged 1 commit into
matplotlib:masterfrom
timhoffm:doc-references

Conversation

@timhoffm

Copy link
Copy Markdown
Member

Closes #19232.

  • Description.
  • One example how this looks like.

I will create a good first issue to migrate all existing reference blocks to the new format once this PR is merged.

@jklymak

jklymak commented Mar 25, 2021

Copy link
Copy Markdown
Member

Does this create a back reference in matplotlib.axes.Axes.fill listing this as an "Examples that contain matplotlib.axes.Axes.fill?

@jklymak

jklymak commented Mar 25, 2021

Copy link
Copy Markdown
Member

... and for some reason it seems like it is not building the docs?

matplotlib.pyplot.fill
matplotlib.axes.Axes.axis
matplotlib.pyplot.axis
# - `matplotlib.axes.Axes.fill` / `matplotlib.pyplot.fill`

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'll block because I don't think this creates the backlinks in matplotlib.axes.Axes.fill that are the point of this block... (https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.fill.html#examples-using-matplotlib-axes-axes-fill)

@jklymak
jklymak dismissed their stale review March 26, 2021 00:06

It does work! Magic!

@jklymak

jklymak commented Mar 26, 2021

Copy link
Copy Markdown
Member

@QuLogic QuLogic added this to the v3.5.0 milestone Mar 26, 2021
@QuLogic
QuLogic merged commit 7cc1e72 into matplotlib:master Mar 26, 2021
@timhoffm
timhoffm deleted the doc-references branch March 26, 2021 00:55
timhoffm added a commit to timhoffm/matplotlib that referenced this pull request Mar 27, 2021
@timhoffm timhoffm mentioned this pull request Mar 27, 2021
@timhoffm

Copy link
Copy Markdown
Member Author

@meeseeksdev backport to v.3.4.0-doc

@lumberbot-app

lumberbot-app Bot commented Mar 27, 2021

Copy link
Copy Markdown

Something went wrong ... Please have a look at my logs.

It seem that the branch you are trying to backport to does not exists.

timhoffm added a commit to timhoffm/matplotlib that referenced this pull request Mar 27, 2021
@timhoffm

Copy link
Copy Markdown
Member Author

@meeseeksdev backport to v3.4.0-doc

meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Mar 27, 2021
timhoffm added a commit to timhoffm/matplotlib that referenced this pull request Mar 28, 2021
timhoffm added a commit that referenced this pull request Mar 28, 2021
…774-on-v3.4.0-doc

Backport PR #19774 on branch v3.4.0-doc (Document how to create sphinx-gallery references to examples)
timhoffm added a commit to timhoffm/matplotlib that referenced this pull request Mar 28, 2021
timhoffm added a commit to timhoffm/matplotlib that referenced this pull request Mar 28, 2021
@QuLogic QuLogic modified the milestones: v3.5.0, v3.4-doc Mar 29, 2021
@QuLogic

QuLogic commented Mar 29, 2021

Copy link
Copy Markdown
Member

I'm not sure this really needed to be backported, but okay.

@jklymak

jklymak commented Mar 29, 2021

Copy link
Copy Markdown
Member

I actually added this milestone a while ago, but I'm not sure what the goal of a doc milestone is, so maybe should not have.

@QuLogic

QuLogic commented Mar 29, 2021

Copy link
Copy Markdown
Member

The -doc milestone is for stuff that needs to be on the website while built against v3.4.0 (which is why changes to .py files should not be done on said milestone, as they would have no effect.)

timhoffm added a commit to timhoffm/matplotlib that referenced this pull request Apr 1, 2021
Follow-up to matplotlib#19774.

Co-authored-by: Elliott Sales de Andrade <[email protected]>
timhoffm added a commit to timhoffm/matplotlib that referenced this pull request Apr 1, 2021
Follow-up to matplotlib#19774.

Co-authored-by: Elliott Sales de Andrade <[email protected]>
timhoffm added a commit to timhoffm/matplotlib that referenced this pull request Apr 1, 2021
timhoffm added a commit to timhoffm/matplotlib that referenced this pull request Apr 2, 2021
timhoffm added a commit to timhoffm/matplotlib that referenced this pull request Apr 2, 2021
timhoffm added a commit to timhoffm/matplotlib that referenced this pull request Apr 3, 2021
QuLogic added a commit to QuLogic/matplotlib that referenced this pull request Apr 30, 2021
With matplotlib#19774, there's no need to ignore E402 in examples.
@QuLogic QuLogic mentioned this pull request Apr 30, 2021
6 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document how to write a References section in examples

3 participants