Skip to content

Refactoring gitwash #23588

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

Merged
merged 5 commits into from
Dec 5, 2022
Merged

Refactoring gitwash #23588

merged 5 commits into from
Dec 5, 2022

Conversation

melissawm
Copy link
Member

PR Summary

This PR moves some of the gitwash content to the main body of the contributor guide.

I deliberately chose not to make any huge content changes to make it easier to review, but there's a series of follow-ups I would be interested in doing (either here or on other PRs) such as rewording and reorganizing pages when appropriate.

Feedback is welcome!

PR Checklist

Tests and Styling

  • Has pytest style unit tests (and pytest passes).
  • Is Flake 8 compliant (install flake8-docstrings and run flake8 --docstring-convention=all).

Documentation

  • New features are documented, with examples if plot related.
  • New features have an entry in doc/users/next_whats_new/ (follow instructions in README.rst there).
  • API changes documented in doc/api/next_api_changes/ (follow instructions in README.rst there).
  • Documentation is sphinx and numpydoc compliant (the docs should build without error).

@melissawm
Copy link
Member Author

Tagging @noatamir for visibility ;)

@melissawm
Copy link
Member Author

I think the CI failure is unrelated.

@jklymak
Copy link
Member

jklymak commented Aug 9, 2022

I think that was fixed. Can you rebase?

@jklymak
Copy link
Member

jklymak commented Aug 9, 2022

We have a redirect-from directive that should probably be used here so the old links don't just 404? Though I think there is now a public extension that does the same thing that maybe we should be using?

@tacaswell
Copy link
Member

For some reason WenQuanYi Zen Hei is not being installed or found and we are getting a failure on the fontfallback whats new, however the main branch in passing. I'm not sure what is going on as the change to config to add the font was in the same commit that added the example that is failing, but I do not see the font being installed in the logs. I am very confused what is going on, but I agree with Jody, suspect it will be fixed with a rebase.

@melissawm
Copy link
Member Author

Rebased, fingers crossed!

@tacaswell
Copy link
Member

Where should we re-direct the gitwash pages to? I can see cases for an oldversion of gitwash in our docs, a cannonical version of gitwash (if that exists?), or all at "development workflow".

@melissawm
Copy link
Member Author

@jklymak
Copy link
Member

jklymak commented Aug 9, 2022

I would just redirect them all to our new docs versus gitwash which I do not think has been updated for ever. That would also be better seo wise

@story645
Copy link
Member

story645 commented Aug 9, 2022

Yeah we've been discussing for a while a set of version independent docs & that the development docs (I think git instructions included) are part of those?

@melissawm
Copy link
Member Author

If you need specific anchors for the redirects I'm happy to add those too - then we can just repurpose the dev instructions and not rely on external pages.

Copy link
Member

@story645 story645 left a comment

Choose a reason for hiding this comment

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

the restructuring all seems reasonable to me and this seems like a good first step in migrating away from the gitwash.

@tacaswell
Copy link
Member

On a bit of consideration we should have all of the old gitwash pages re-direct to the moved development_workflow page.

I left a few minor wording comments, but other wise 👍🏻

@tacaswell tacaswell added this to the v3.6.0 milestone Aug 26, 2022
.. __: https://github.com/psf/black/issues/1984

* Each high-level plotting function should have a simple example in the
``Example`` section of the docstring. This should be as simple as possible
Copy link
Member

Choose a reason for hiding this comment

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

I suggest we drop this. We don't consistently have this in our current docs.

Examples calls are usually not very instuctive without seeing the visual output. And we have the sphinx-gallery mini galleries at the bottom of the docstring.

We don't consistently have this in our current docs, and I

If we want this, we should move it to https://matplotlib.org/stable/devel/documenting_mpl.html#writing-docstrings

Copy link
Member Author

Choose a reason for hiding this comment

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

I think you're right - and this is actually pretty well explained already in that page. Let me know if what I wrote makes sense, or if we should remove entirely.

Comment on lines 44 to 45
current working directory, and tell git all your pull requests should target the
``upstream`` repository.
Copy link
Member

Choose a reason for hiding this comment

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

I think this is not correct. The PR target is defined by the repo you forked from. Whether you have an upstream connection does not influence the (default) PR target.

I suggest to just leave off the second sentence. - We maybe don't need to explain every command in detail. Otherwise, you'd have to explain here the full triangular relation between upstream, origin and local (https://www.tomasbeuzen.com/post/git-fork-branch-pull/).

Copy link
Member Author

Choose a reason for hiding this comment

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

How about

This will place the sources in a directory :file:matplotlib below your current working directory, and set up the upstream remote to point to the Matplotlib main repository.

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh nevermind, I had to rebase and saw this was actually ok - no need to mention upstream here at all.

Copy link
Member

Choose a reason for hiding this comment

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

I am a bit lost as to the state of things, but do like

This will place the sources in a directory :file:matplotlib below your current working directory, and set up the upstream remote to point to the Matplotlib main repository.

I think the source of the problems are that the remote names are not actually semantic, but a bunch of tools have made (incompatible) assumptions about the meanings of names.

Copy link
Member Author

Choose a reason for hiding this comment

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

I added a github documentation link, let me know if it helps clarify the instructions.

@tacaswell
Copy link
Member

Would it be possible to work in links to https://tacaswell.github.io/think-like-git.html and https://tom.preston-werner.com/2009/05/19/the-git-parable.html ?

@melissawm
Copy link
Member Author

Would it be possible to work in links to tacaswell.github.io/think-like-git.html and tom.preston-werner.com/2009/05/19/the-git-parable.html ?

Sure - I had to rebase to fix some conflicts and will review all the links and see what I can do 👍

@melissawm
Copy link
Member Author

Thanks @timhoffm - I was explicitly not doing any content changes (just making sure nothing was lost) to make this one easier to review, but I agree with your points. I'll get to them as soon as possible 👍🏻

@timhoffm
Copy link
Member

@melissawm sorry I did not read/rembember your original comment. If you want to tackle changes separately, we can also merge this and continue from there.

@QuLogic QuLogic removed this from the v3.6.0 milestone Sep 9, 2022
@melissawm
Copy link
Member Author

Hi folks - so sorry for the long delay here! I've rebased and believe I caught all of the comments, let me know if there are any other changes to be made. Cheers!

@tacaswell
Copy link
Member

I think the re-directs are still missing, but I'll open a follow on PR to add those.

@tacaswell tacaswell merged commit da123bc into matplotlib:main Dec 5, 2022
@tacaswell
Copy link
Member

Thank you @melissawm !

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