Debian Codegraph @

docs/content/en/commands/hugo_gen_doc.md

raw
1 ---
2 title: "hugo gen doc"
3 slug: hugo_gen_doc
4 url: /commands/hugo_gen_doc/
5 ---
6 ## hugo gen doc
7
8 Generate Markdown documentation for the Hugo CLI
9
10 ### Synopsis
11
12 Generate Markdown documentation for the Hugo CLI.
13 This command is, mostly, used to create up-to-date documentation
14 of Hugo's command-line interface for https://gohugo.io/.
15
16 It creates one Markdown file per command with front matter suitable
17 for rendering in Hugo.
18
19 ```
20 hugo gen doc [flags] [args]
21 ```
22
23 ### Options
24
25 ```
26 --dir string the directory to write the doc. (default "/tmp/hugodoc/")
27 -h, --help help for doc
28 ```
29
30 ### Options inherited from parent commands
31
32 ```
33 --clock string set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
34 --config string config file (default is hugo.yaml|json|toml)
35 --configDir string config dir (default "config")
36 -d, --destination string filesystem path to write files to
37 -e, --environment string build environment
38 --ignoreVendorPaths string ignores any _vendor for module paths matching the given Glob pattern
39 --logLevel string log level (debug|info|warn|error)
40 --noBuildLock don't create .hugo_build.lock file
41 --quiet build in quiet mode
42 -M, --renderToMemory render to memory (mostly useful when running the server)
43 -s, --source string filesystem path to read files relative from
44 --themesDir string filesystem path to themes directory
45 ```
46
47 ### SEE ALSO
48
49 * [hugo gen](/commands/hugo_gen/) - Generate documentation and syntax highlighting styles