mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-28 06:30:33 +03:00
parent
018602c46d
commit
4d32f2fa89
23 changed files with 299 additions and 336 deletions
|
@ -31,11 +31,7 @@ var _ cmder = (*genDocCmd)(nil)
|
|||
|
||||
type genDocCmd struct {
|
||||
gendocdir string
|
||||
cmd *cobra.Command
|
||||
}
|
||||
|
||||
func (c *genDocCmd) getCommand() *cobra.Command {
|
||||
return c.cmd
|
||||
*baseCmd
|
||||
}
|
||||
|
||||
func newGenDocCmd() *genDocCmd {
|
||||
|
@ -49,7 +45,7 @@ url: %s
|
|||
|
||||
cc := &genDocCmd{}
|
||||
|
||||
cc.cmd = &cobra.Command{
|
||||
cc.baseCmd = newBaseCmd(&cobra.Command{
|
||||
Use: "doc",
|
||||
Short: "Generate Markdown documentation for the Hugo CLI.",
|
||||
Long: `Generate Markdown documentation for the Hugo CLI.
|
||||
|
@ -89,7 +85,7 @@ for rendering in Hugo.`,
|
|||
|
||||
return nil
|
||||
},
|
||||
}
|
||||
})
|
||||
|
||||
cc.cmd.PersistentFlags().StringVar(&cc.gendocdir, "dir", "/tmp/hugodoc/", "the directory to write the doc.")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue