-
Notifications
You must be signed in to change notification settings - Fork 224
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
Expand documentation linking in CONTRIBUTING.md #802
Expand documentation linking in CONTRIBUTING.md #802
Conversation
…le; changing units from US to SI
# Conflicts: # examples/projections/cyl/cyl_transverse_mercator.py # examples/projections/cyl/cyl_universal_transverse_mercator.py
I regularly find myself having to look through files I've previously worked on to remind myself how to link to PyGMT and GMT pages, and think it is used enough to be added to the contributing guide. A few questions before I mark this ready for review:
|
Great idea, recently came exactly across the issues you mentioned @willschlitzer , especially how to format links that they are displayed correctly (or really point to the desired page/subpoint). |
@willschlitzer This PR looks good. Is it ready for review (and merge)? |
@seisman How do I link to other pygmt pages in the same way we can link to GMT docs? I know you've told me in the past, but I was going through old PRs and couldn't find it. Also, I think the contributing guide should have example links in addition to the formats; do you think that's a good idea? |
You can link to a file, using
For example,
Yes, that would be better. |
@willschlitzer Don't forget @weiji14's #802 (comment)
|
See https://www.sphinx-doc.org/en/master/usage/restructuredtext/domains.html#cross-referencing-syntax
We're not using |
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
Co-authored-by: Dongdong Tian <seisman.info@gmail.com> Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com>
Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com>
@willschlitzer is attempting to deploy a commit to the Generic Mapping Tools Team on Vercel. A member of the Team first needs to authorize it. |
This PR adds an explanation for linking PyGMT methods and GMT documentation using the Sphinx build in the contributing guide.