-
Notifications
You must be signed in to change notification settings - Fork 228
Clarify docs on how to start contributing #1056
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
Conversation
CONTRIBUTING.md
Outdated
* Click on the "Commit changes" button to open a | ||
[pull request (see below)](#pull-requests). | ||
* Choose "Create a new branch for this commit and start a pull request." and | ||
click on the "Propose changes" button to open a [pull request (see below)](#pull-requests). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Users should not commit directly to their master branch. Instead, they should commit to a new branch and submit a PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we recommend pygmt python-contributors to make branches on the GenericMappingTools/pygmt repo rather than their own fork?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mean "python-maintainers"? I don't think "python-contributors" have write permission to the pygmt repo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They have triage permissions. Doesn't that allow branching?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh, should we bump up the python-contributors team to have "write" permissions then? It's a bit annoying having to add a new git remote to check out a new contributor's code locally, and Leo mentioned before at #415 (comment) that "write" privileges are overrated anyway (i.e. pretty standard for an open source repo).
And just to clarify, the "master" branch is a protected branch so it's not like they will be able to write to that branch accidentally without going through a pull request, passing all checks and getting an approval from a maintainer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we do, we should add instructions on adding it to your local git repo; for better or for worse GitHub seems to encourage making branches on your own fork.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better to have more discussions at GenericMappingTools/gmt#4732 before making changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we do, we should add instructions on adding it to your local git repo; for better or for worse GitHub seems to encourage making branches on your own fork.
I think it's because it's easier for new Github users to do stuff on their own fork. The instructions can be a bit long though, so would be good if we can just link to a good tutorial instead.
Better to have more discussions at GenericMappingTools/gmt#4732 before making changes.
Ok, I think we can have a 'python'/'pygmt'-only restructure, and it's up to the rest of the GMT ecosystem to decide whether to make the change too. Will make a quick comment on that thread.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change the title to be a bit more specific. E.g. "Clarify docs on how to start contributing".
Plus I would prefer to leave this open for a few more days, so that people have time to leave their feedback, especially the new contributors :)
CONTRIBUTING.md
Outdated
* Click on the "Commit changes" button to open a | ||
[pull request (see below)](#pull-requests). | ||
* Choose "Create a new branch for this commit and start a pull request." and | ||
click on the "Propose changes" button to open a [pull request (see below)](#pull-requests). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we do, we should add instructions on adding it to your local git repo; for better or for worse GitHub seems to encourage making branches on your own fork.
I think it's because it's easier for new Github users to do stuff on their own fork. The instructions can be a bit long though, so would be good if we can just link to a good tutorial instead.
Better to have more discussions at GenericMappingTools/gmt#4732 before making changes.
Ok, I think we can have a 'python'/'pygmt'-only restructure, and it's up to the rest of the GMT ecosystem to decide whether to make the change too. Will make a quick comment on that thread.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few other things that I would consider improvements:
I think it would be nice to add the subsection headers Building the documentation and Cross-referencing with Sphinx to Documentation
If you get stuck at any point you can create an issue on GitHub (look for the Issues tab in the repository) or contact us at one of the other channels mentioned below.
to
If you get stuck at any point you can create an [issue](https://github.com/GenericMappingTools/pygmt/issues) on GitHub or contact us at one of the other channels [mentioned below](#how-can-i-talk-to-you).
* Make a tutorial or example of how to do something.
to
* Make a tutorial or gallery example of how to do something.
They are executed automatically by sphinx-gallery when the documentation is built
to
They are executed automatically by sphinx-gallery when the [documentation is built](#documentation)
Co-authored-by: Meghan Jones <[email protected]>
Co-authored-by: Meghan Jones <[email protected]>
Co-authored-by: Meghan Jones <[email protected]>
@meghanrjones's suggestions in #1056 (review) are addressed in 9e8ecc1 and 16d05a9. |
Co-authored-by: Wei Ji <[email protected]>
Co-authored-by: Will Schlitzer <[email protected]>
@meghanrjones @weiji14 @willschlitzer @core-man Please see if you have further comments.
After we set up the team permissions, we can add it to the guide and maybe also document the permissions for each team. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Looks good~ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just spotted one URL link to update, otherwise all good :D
Co-authored-by: Wei Ji <[email protected]>
Co-authored-by: Meghan Jones <[email protected]> Co-authored-by: Wei Ji <[email protected]> Co-authored-by: Will Schlitzer <[email protected]>
Description of proposed changes
Improve the contributing guide to documentation:
.py
files in theexamples
directoryReminders
make format
andmake check
to make sure the code follows the style guide.doc/api/index.rst
.Slash Commands
You can write slash commands (
/command
) in the first line of a comment to performspecific operations. Supported slash commands are:
/format
: automatically format and lint the code/test-gmt-dev
: run full tests on the latest GMT development version