Skip to content

Add more sections to the API docs - #1643

Merged
seisman merged 8 commits into
mainfrom
apidocs-split-plotting
Dec 17, 2021
Merged

seisman merged 8 commits into
mainfrom
apidocs-split-plotting

Conversation

@maxrjones

Copy link
Copy Markdown
Member

Description of proposed changes

This PR splits the pygmt.Figure methods into more sections in the API documentation.

Fixes #1633

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 wrapping a new module, open a 'Wrap new GMT module' issue and submit reasonably-sized PRs.
  • 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

Comment thread doc/api/index.rst Resolved
Comment thread doc/api/index.rst Resolved
@seisman seisman added the documentation Improvements or additions to documentation label Dec 15, 2021
@seisman seisman added this to the 0.6.0 milestone Dec 15, 2021
@seisman

seisman commented Dec 15, 2021

Copy link
Copy Markdown
Member

image

I feel the current structure is very confusing. Users may think it's Figure.makecpt, not pygmt.makecpt.

@maxrjones

Copy link
Copy Markdown
Member Author

I feel the current structure is very confusing. Users may think it's Figure.makecpt, not pygmt.makecpt.

Yes, I agree. I tried to add more clarity in the latest commit by reordering the sections so all Figure methods are first and adding a note to the functions not provided through the Figure class. I also added subsection headers so that the toctree has a bit more structure. Let me know whether you think this is more clear.

@maxrjones maxrjones changed the title Add more sections to the Figure plotting API docs Add more sections to the API docs Dec 15, 2021

@seisman seisman left a comment

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.

Looks good to me.

@seisman seisman added the final review call This PR requires final review and approval from a second reviewer label Dec 16, 2021

@weiji14 weiji14 left a comment

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.

Nice work!

Comment thread doc/api/index.rst Resolved

@michaelgrund michaelgrund left a comment

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.

Great work @meghanrjones. The structure is now much more clear and it's easier to find functions related to a specific topic.

@seisman seisman removed the final review call This PR requires final review and approval from a second reviewer label Dec 17, 2021
@seisman
seisman merged commit 24600ee into main Dec 17, 2021
@seisman
seisman deleted the apidocs-split-plotting branch December 17, 2021 08:46
sixy6e pushed a commit to sixy6e/pygmt that referenced this pull request Dec 21, 2022

This branch was previously deployed

1 inactive deployment
Preview — cf858df8 Deployed Dec 16, 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add more sections to documentation for the Figure plotting methods

4 participants