diff options
Diffstat (limited to 'commands/gendoc.go')
-rw-r--r-- | commands/gendoc.go | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/commands/gendoc.go b/commands/gendoc.go index eaea51a93..0f65e7dc9 100644 --- a/commands/gendoc.go +++ b/commands/gendoc.go @@ -15,14 +15,16 @@ package commands import ( "fmt" - "github.com/spf13/cobra" - "github.com/spf13/hugo/helpers" - "github.com/spf13/hugo/hugofs" - jww "github.com/spf13/jwalterweatherman" "path" "path/filepath" "strings" "time" + + "github.com/spf13/cobra" + "github.com/spf13/cobra/doc" + "github.com/spf13/hugo/helpers" + "github.com/spf13/hugo/hugofs" + jww "github.com/spf13/jwalterweatherman" ) const gendocFrontmatterTemplate = `--- @@ -67,7 +69,7 @@ for rendering in Hugo.`, } jww.FEEDBACK.Println("Generating Hugo command-line documentation in", gendocdir, "...") - cobra.GenMarkdownTreeCustom(cmd.Root(), gendocdir, prepender, linkHandler) + doc.GenMarkdownTreeCustom(cmd.Root(), gendocdir, prepender, linkHandler) jww.FEEDBACK.Println("Done.") return nil |