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
The GMT documentation has many instances where bold and italicized fonts are mixed, looking something like:
+nargs
The PyGMT documentation has been rather inconsistent with this (see mentions at #525 (comment) and #620 (comment)).
What we should do is to standardize how we want +nargs to be written in the documentation. This is a bit complicated, but boils down to (at least) two options:
Description of the desired feature
The GMT documentation has many instances where bold and italicized fonts are mixed, looking something like:
The PyGMT documentation has been rather inconsistent with this (see mentions at #525 (comment) and #620 (comment)).
What we should do is to standardize how we want
+nargsto be written in the documentation. This is a bit complicated, but boils down to (at least) two options:r" **+n**\ *args* ". Use a raw-string in Python, allowing us to follow upstream GMT (as per Complete documentation of grdimage #620 (comment))" **+n**\\ *args* ". Use a double-backslash to avoid the flake8 errorW605 invalid escape sequence '\ '.An alternative would be to find a way to ignore the flake8 error somehow for the ReST docstrings.
Also, should we find a way to put these in code-formatted blocks (i.e. with backticks), as mentioned at https://github.com/GenericMappingTools/pygmt/pull/525/files#r454746311?
Are you willing to help implement and maintain this feature? Somewhat short on time, but will look into it.
References: