You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I agree that this could be documented better. However I would prefer to have it in the wiki instead of some hidden file somewhere in the depths of the repo.
As per #3296, now it seems pretty straightforward to add a new example to the GMT gallery. For example, if we want to add a new example ex52, we need to:
create the subdirectory doc/examples/ex52
add the example script ex52.sh and the corresponding PS file ex52.ps in the subdirectory. Note that the script name and the PS name must be ex52.
Add the documentation for the example, i.e., doc/rst/source/gallery/ex52.rst.
After thinking about it a bit more I 'd like to add a fourth option to @seisman's list:
GMT's own documentation with links from CONTRIBUTING.md and doc/examples/README.examples
Reasoning: Adding an example might be one of the first contributions to GMT by a new user (it was at least my first contribution). Therefore I would argue the bar should be as low as possible. Not to flood GMT with silly examples but to explain the concepts behind the documentation as well. Basically a how-to or maybe even a tutorial.
I can only speak from the perspective of a first time contributor to a GitHub based project. It looks quite daunting when confronted with the git pull request workflow, the system how GMT is organized and build and reStructuredText all at once for the first time. It was a steep learning curve for me and I'm still relying on my cheatsheets to use GitHub.
I think this initial steep learning curve might be one of the biggest hurdles to transform GMT to a community-developed project as it might turn away most of the potential contributors right from the start. Therefore I would make this an fully fledged page in the documentation.
This issue has been automatically marked as stale because it has not had activity in the last 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions.
Activity
KristofKoch commentedon May 9, 2020
I agree that this could be documented better. However I would prefer to have it in the wiki instead of some hidden file somewhere in the depths of the repo.
seisman commentedon May 10, 2020
As per #3296, now it seems pretty straightforward to add a new example to the GMT gallery. For example, if we want to add a new example
ex52, we need to:doc/examples/ex52ex52.shand the corresponding PS fileex52.psin the subdirectory. Note that the script name and the PS name must beex52.doc/rst/source/gallery/ex52.rst.In the example documentation file
ex52.rst, useto include the script into the documentation, and
to include the image file into the documentation.
seisman commentedon May 15, 2020
We need to decide where to put these instructions.
Thoughts?
KristofKoch commentedon May 15, 2020
After thinking about it a bit more I 'd like to add a fourth option to @seisman's list:
Reasoning: Adding an example might be one of the first contributions to GMT by a new user (it was at least my first contribution). Therefore I would argue the bar should be as low as possible. Not to flood GMT with silly examples but to explain the concepts behind the documentation as well. Basically a how-to or maybe even a tutorial.
I can only speak from the perspective of a first time contributor to a GitHub based project. It looks quite daunting when confronted with the git pull request workflow, the system how GMT is organized and build and reStructuredText all at once for the first time. It was a steep learning curve for me and I'm still relying on my cheatsheets to use GitHub.
I think this initial steep learning curve might be one of the biggest hurdles to transform GMT to a community-developed project as it might turn away most of the potential contributors right from the start. Therefore I would make this an fully fledged page in the documentation.
stale commentedon Dec 4, 2020
This issue has been automatically marked as stale because it has not had activity in the last 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions.