cobra icon indicating copy to clipboard operation
cobra copied to clipboard

doc.GenMarkdownTree() annotation at the bottom gets interpreted by mkdocs as a navigational section

Open milanmayr opened this issue 1 year ago • 2 comments

The ###### Auto generated by spf13/cobra on [...] line gets interpreted by mkdocs as its own navigational section and presents as a link in the page's table of contents:

image

I'd like to change this to italics so this doesn't happen anymore.

milanmayr avatar Oct 25 '23 17:10 milanmayr

Note: there is a bool that can be set to disable this generation:

https://github.com/spf13/cobra/blob/4cafa37bc4bb85633b4245aa118280fe5a9edcd5/command.go#L237-L239

jpmcb avatar Oct 27 '23 02:10 jpmcb

I know :) I still want that autogenerated message, just without a header prefix.

milanmayr avatar Oct 27 '23 13:10 milanmayr