GenericMappingTools / gmt

The Generic Mapping Tools
https://www.generic-mapping-tools.org
Other
843 stars 352 forks source link

Consolidating the source text for common options documentation #4969

Closed maxrjones closed 3 years ago

maxrjones commented 3 years ago

Description of the desired feature

Originally discussed at https://github.com/GenericMappingTools/gmt/pull/4918

The GMT common options are documented in the gmt manpage and the cookbook standardized command line options chapter. The source files for the common options documentation should be consolidated due to the amount of redundant information in these files, which can lead to errors when adding new features or enhancements.

Here is the current structure of these two documentation sources:

Here are two options for consolidating the documentation:

Option 1 Move the syntax and description (without examples) sections from doc/rst/source/cookbook/options.rst to the explain_-*.rst_ files and then include those files both in the cookbook and the gmt manpage.

Benefits of this method

Option 2 Only include a simple table with the common options syntax in https://docs.generic-mapping-tools.org/dev/gmt.html that links to full options in cookbook

Benefits of this method

For some context about the data usage discussion, here's the amount transferred when loading the various pages:

Are you willing to help implement and maintain this feature? Yes

maxrjones commented 3 years ago

Pinging @joa-quim, @PaulWessel, and @seisman for opinions. The fact that PyGMT (and possible other resources) links to the individual common option sections in https://docs.generic-mapping-tools.org/dev/gmt.html#the-common-gmt-options makes me hesitant to remove them.

edit: it would be easy to update the PyGMT links, the bigger issue is whether others may be relying on those particular sections existing as well.

joa-quim commented 3 years ago

Removing that page would made invalid all links printed by all Julia modules online help. I already gave opinion that links to common option should be kept in the lighter gmt.html page and that this has nothing to do with having singles files with the options docs, which can then be include in both the cookbook or and the gmt.rst.

Sorry, not all links. Only those of the common options.

maxrjones commented 3 years ago

Finally done 🎉