HUGO-GEN-DOC(1)
π HUGO-GEN-DOC(1) π
ok so this is a page from the Hugo Manual, and honestly? it's giving "behind the scenes queen." sit down bestie, we're learning about the doc generator π
β¨ NAME β¨
hugo-gen-doc β generate Markdown documentation for the Hugo CLI π¦
β¨ SYNOPSIS β¨
hugo gen doc [flags] [args]
that's it. that's the whole vibe. flags, args, go. π«Ά
πΈ DESCRIPTION πΈ
okay so, real talk: this command generates Markdown documentation for the Hugo CLI. π
lowkey, it's mostly used to create up-to-date documentation of Hugo's command-line interface for https://gohugo.io/ β no cap, that's literally its main character job. π
and here's the slay part: it creates one Markdown file per command, each one with front matter suitable for rendering in Hugo. so every command gets its own lil file, dressed up and ready to render. it's giving organized. it's giving prepared. we love to see it. β¨
π OPTIONS π
--dir="/tmp/hugodoc/"β the directory to write the doc. yep, that's the default right there,/tmp/hugodoc/. π-h,--help[=false]β help fordoc. the classic. when in doubt, ask for help bestie π«Ά
π¦ OPTIONS INHERITED FROM PARENT COMMANDS π¦
these are the ones you get for free from the parent command β inherited, like your mom's good taste π
--clock=""β set the clock used by Hugo, e.g.--clock 2021-11-06T22:30:00.00+09:00. yes, you can time travel (for Hugo's purposes). iconic β--config=""β config file (default ishugo.yaml|json|toml). it'll find it, don't stress π--configDir="config"β config dir. default'sconfig, cute and simple π-d,--destination=""β filesystem path to write files to. where the output goes π-e,--environment=""β build environment. tell Hugo what era we're in π--ignoreVendorPaths=""β ignores any_vendorfor module paths matching the given Glob pattern. glob girlies rise π--logLevel=""β log level (debug|info|warn|error). pick your volume π₯--noBuildLock[=false]β don't create.hugo_build.lockfile. no lock, no problem π--quiet[=false]β build in quiet mode. shhh π€«-M,--renderToMemory[=false]β render to memory (mostly useful when running the server). in-memory, no disk, very demure π§-s,--source=""β filesystem path to read files relative from. your source of truth π--themesDir=""β filesystem path to themes directory. all the aesthetics live here β¨
π SEE ALSO π
hugo-gen(1)β the parent command, go say hi π
ngl, that's the whole page. nothing dangerous here, no deprecated chaos, just a very tidy documentation generator doing its thing. π¦
okay bye ily!! this page was brought to you by Hugo 0.169.0, dated Oct 2026 β see you in the next manpage bestie πβ¨
π¦ where this page comes from
- arch rolling: hugo 0.169.0-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms