doc: GenMarkdown skip Synopsis on empty long cmd (#1207)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
This patch modifies the GenMarkdownCustom to skip writing a Synopsis header with the `cmd.Short` duplicated both before and after the header. Instead, it only writes the `### Synopsis` header and the paragraph when a `cmd.Long` has some kind of content in it. Adds `TestGenMdDocWithNoLongOrSynopsis` as the test case.
authored by Marc Lopez Rubio · committed by GitHub · parent 9ed1d71 · Browse files · 3 files+25 added−10 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Trailers
- Signed-off-by: Marc Lopez <marc5.12@outlook.com>
Diff stats
3 files+25 added−10 removed
- other:+25 added−10 removed