Skip to content

Update formatting for install bullet list - #875

Merged
seisman merged 1 commit into
GenericMappingTools:masterfrom
maxrjones:fix-install-list
Feb 12, 2021
Merged

seisman merged 1 commit into
GenericMappingTools:masterfrom
maxrjones:fix-install-list

Conversation

@maxrjones

@maxrjones maxrjones commented Feb 12, 2021 •

Copy link
Copy Markdown
Member

Description of proposed changes

I was getting this sphinx warning when building the docs: pygmt/doc/install.rst:92: WARNING: Bullet list ends without a blank line; unexpected unindent., which is reflected in the published docs. This PR fixes the ReST indentation for that bullet list.

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

@maxrjones
maxrjones requested a review from weiji14 February 12, 2021 19:52
@welcome

welcome Bot commented Feb 12, 2021

Copy link
Copy Markdown

💖 Thanks for opening this pull request! 💖

Please make sure you read our contributing guidelines and abide by our code of conduct.

A few things to keep in mind:

  • If you need help writing tests, take a look at the existing ones for inspiration. If you don't know where to start, let us know and we'll walk you through it.
  • All new features should be documented. It helps to write the docstrings for your functions/classes before writing the code. This will help you think about your code design and results in better code.
  • No matter what, we are really grateful that you put in the effort to do this! 🎉

@maxrjones

Copy link
Copy Markdown
Member Author

A semi-related question: does anyone have any recommendations for suppressing the warnings like this:

WARNING: multiple files found for the document "gallery/coast/land_and_water": ['gallery/coast/land_and_water.py', 'gallery/coast/land_and_water.ipynb', 'gallery/coast/land_and_water.py.md5', 'gallery/coast/land_and_water.rst']

They are a bit distracting.

@seisman

seisman commented Feb 12, 2021

Copy link
Copy Markdown
Member

This PR fixes the ReST indentation for that bullet list.

Looks good. Do you want to have this PR merged or you want to fix other docstrings in this PR?

A semi-related question: does anyone have any recommendations for suppressing the warnings like this:

WARNING: multiple files found for the document "gallery/coast/land_and_water": ['gallery/coast/land_and_water.py', 'gallery/coast/land_and_water.ipynb', 'gallery/coast/land_and_water.py.md5', 'gallery/coast/land_and_water.rst']

They are a bit distracting.

I agree, perhaps you can try if adding them to exclude_patterns in doc/conf.py works.

@seisman seisman added the documentation Improvements or additions to documentation label Feb 12, 2021
@seisman seisman added this to the 0.3.0 milestone Feb 12, 2021
@maxrjones

Copy link
Copy Markdown
Member Author

Looks good. Do you want to have this PR merged or you want to fix other docstrings in this PR?

I am working on the other docstrings in a different branch, so I am fine with this being merged.

I agree, perhaps you can try if adding them to exclude_patterns in doc/conf.py works.

Thanks for the recommendation, I will try that.

@seisman seisman added the skip-changelog Skip adding Pull Request to changelog label Feb 12, 2021
@seisman
seisman merged commit af65579 into GenericMappingTools:master Feb 12, 2021
@welcome

welcome Bot commented Feb 12, 2021

Copy link
Copy Markdown

🎉🎉🎉 Congrats on merging your first pull request and welcome to the team! 🎉🎉🎉

Please open a new pull request to add yourself to the AUTHORS.md file. We hope that this was a good experience for you. Let us know if there is any way that the contributing process could be improved.

This branch was previously deployed

1 inactive deployment
Preview — 5134e575 Deployed Feb 12, 2021 by vercel[bot]
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 skip-changelog Skip adding Pull Request to changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants