mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
Print feedback for hugo gendoc
This commit is contained in:
parent
fee5519129
commit
c69835daba
1 changed files with 3 additions and 0 deletions
|
@ -5,6 +5,7 @@ import (
|
|||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/hugo/helpers"
|
||||
"github.com/spf13/hugo/hugofs"
|
||||
jww "github.com/spf13/jwalterweatherman"
|
||||
"path"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
@ -51,7 +52,9 @@ for rendering in Hugo.`,
|
|||
return "/commands/" + strings.ToLower(base) + "/"
|
||||
}
|
||||
|
||||
jww.FEEDBACK.Println("Generating Hugo command-line documentation in", gendocdir, "...")
|
||||
cobra.GenMarkdownTreeCustom(cmd.Root(), gendocdir, prepender, linkHandler)
|
||||
jww.FEEDBACK.Println("Done.")
|
||||
},
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue