-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(cmd): add docs generator for cli #59
Conversation
|
||
// GenerateMarkdownTree generate cobra cmd commands tree as markdown file | ||
// rootOutputPath determines the folder where the markdown files are written | ||
func GenerateMarkdownTree(rootOutputPath string, cmd *cobra.Command) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mabdh do we want to generate a single markdown or multiple?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think multiple markdowns would be easier to navigate via sidebar, wdyt @ravisuhag ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we are showing it reference i think it better to show it single markdown. How about we make this as an option? Support both in salt.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes fair enough, we could also do that.
cfbe18d
to
e4d6eb6
Compare
@mabdh lets add option to generate single markdown file as well? |
No description provided.