Skip to content
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

Restructure contributing.md to separate docs/general info from contributing code section #1339

Merged
merged 23 commits into from
Jul 15, 2021

Conversation

maxrjones
Copy link
Member

Description of proposed changes

This PR restructures the contributing guide, motivated by the fact that some information helpful for all PRs was in the contributing code section.

This PR creates a separate General Guidelines section which includes:

  • Resources for New Contributors
  • Getting Help
  • Setting up your Environment
  • Pull Request Workflow

It also moves the documentation focused sections 'building the documentation' and 'cross-referencing with sphinx' to the 'contributing documentation' section.

It also adds a few more options to 'ways to contribute'.

Lastly, it adds 'PyGMT Documentation Overview' and 'PyGMT Code Overview' to the start of 'Contributing Documentation' and 'Contributing Code' respectively.

Fixes #

Reminders

  • Run make format and make check to make sure the code follows the style guide.
  • Add tests for new features or tests that would have caught the bug that you're fixing.
  • Add new public functions/methods/classes to doc/api/index.rst.
  • Write detailed docstrings for all functions/methods.
  • If adding new functionality, add an example to docstrings or tutorials.

Slash Commands

You can write slash commands (/command) in the first line of a comment to perform
specific operations. Supported slash commands are:

  • /format: automatically format and lint the code
  • /test-gmt-dev: run full tests on the latest GMT development version

doc/contributing.md Outdated Show resolved Hide resolved
doc/contributing.md Outdated Show resolved Hide resolved
doc/contributing.md Outdated Show resolved Hide resolved
doc/contributing.md Outdated Show resolved Hide resolved
doc/contributing.md Show resolved Hide resolved
doc/contributing.md Outdated Show resolved Hide resolved
@weiji14 weiji14 added the documentation Improvements or additions to documentation label Jun 19, 2021
doc/contributing.md Outdated Show resolved Hide resolved
doc/contributing.md Outdated Show resolved Hide resolved
doc/contributing.md Outdated Show resolved Hide resolved
doc/contributing.md Outdated Show resolved Hide resolved
doc/contributing.md Outdated Show resolved Hide resolved
doc/contributing.md Outdated Show resolved Hide resolved
doc/contributing.md Outdated Show resolved Hide resolved
@maxrjones maxrjones marked this pull request as draft June 22, 2021 14:58
doc/contributing.md Outdated Show resolved Hide resolved
@seisman seisman added this to the 0.5.0 milestone Jun 24, 2021
@maxrjones
Copy link
Member Author

Thanks for all the good recommendations @core-man. I tried to address them all in the latest round of commits.

@maxrjones maxrjones marked this pull request as ready for review July 8, 2021 02:42
@maxrjones maxrjones requested a review from a team July 12, 2021 23:51
@@ -1,4 +1,4 @@
# Contributors Guide
# **Contributors Guide**
Copy link
Contributor

Choose a reason for hiding this comment

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

image
It looks like this is causing the menu title to be bold; is that the intention?

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 bolded all the section headers in response to #1339 (comment) because the fourth level looked bad without any extra formatting and it looked odd to have only that level bolded. But since this shouldn't be the only level one header bolded in the toctree, I just removed the bold formatting for the first level header in a760520. Long term, the solution is probably to use ReST for the development pages on the website.

Copy link
Contributor

@willschlitzer willschlitzer left a comment

Choose a reason for hiding this comment

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

Looks good!

@maxrjones maxrjones added the final review call This PR requires final review and approval from a second reviewer label Jul 14, 2021
doc/contributing.md Outdated Show resolved Hide resolved
Co-authored-by: Dongdong Tian <[email protected]>
Copy link
Member

@core-man core-man left a comment

Choose a reason for hiding this comment

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

Looks great~

@maxrjones
Copy link
Member Author

@weiji14, I would prefer to merge this now but want to check in with you first in case you have any objections to merging this update to the contributing docs before the SciPy sprint. Do you mind if I merge the PR?

@weiji14
Copy link
Member

weiji14 commented Jul 15, 2021

@weiji14, I would prefer to merge this now but want to check in with you first in case you have any objections to merging this update to the contributing docs before the SciPy sprint. Do you mind if I merge the PR?

Nope, go ahead and merge please. I think it's best to have it done before the SciPy sprint tomorrow.

@maxrjones maxrjones merged commit 786139f into master Jul 15, 2021
@maxrjones maxrjones deleted the contrib-guide branch July 15, 2021 19:59
@seisman seisman modified the milestones: 0.5.0, 0.4.1 Jul 25, 2021
@seisman seisman removed the final review call This PR requires final review and approval from a second reviewer label Aug 4, 2021
sixy6e pushed a commit to sixy6e/pygmt that referenced this pull request Dec 21, 2022
…buting code section (GenericMappingTools#1339)

* Add more ways to contribute

* Add Providing Feedback Section

* Add General Guidelines section

* Clarify that conda env create uses environment.yml

* Change building documentation section header to editing locally

* Move setting up your environment to separate section

* Organize ways to contribute in shorter lists

Co-authored-by: Yao Jiayuan <[email protected]>
Co-authored-by: Yao Jiayuan <[email protected]>
Co-authored-by: Dongdong Tian <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants