Skip to content

Commit

Permalink
now docs are generated from the root command
Browse files Browse the repository at this point in the history
  • Loading branch information
nickytonline committed Sep 5, 2024
1 parent ca9ab48 commit 10ffda0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ func NewDocsCommand() *cobra.Command {

// Generate markdown documentation
fmt.Printf("Generating documentation in %s...\n", opts.path)
err = doc.GenMarkdownTree(cmd, opts.path)

err = doc.GenMarkdownTree(cmd.Parent().Root(), opts.path)
if err != nil {
return err
}
Expand Down

0 comments on commit 10ffda0

Please sign in to comment.