HUGO-GEN(1)

✨ NAME ✨

hugo-gen β€” generate documentation and syntax highlighting styles πŸ’… (this one's straight out of the Hugo Manual, bestie, so you know it's official)


🌸 SYNOPSIS 🌸

hugo gen [command] [flags]

πŸŽ€ DESCRIPTION πŸŽ€

Okay so picture this: you wanna generate documentation for your project, right? You use Hugo's own documentation engine to do it β€” and it also does syntax highlighting for a whole bunch of programming languages. Iconic behavior, honestly. It's giving "one command, all the docs." πŸ”₯


πŸ¦‹ OPTIONS πŸ¦‹

  • -h, --help[=false] β€” help for gen. Your literal bestie when you forget what's going on (no judgment, it happens πŸ’–)

πŸ‘‘ OPTIONS INHERITED FROM PARENT COMMANDS πŸ‘‘

These are the ones you get for free from the parent command β€” the hand-me-downs, but make them couture. 🌈

  • --clock="" β€” sets the clock Hugo uses, like --clock 2021-11-06T22:30:00.00+09:00. Time travel, but legal ⭐
  • --config="" β€” config file (default is hugo.yaml|json|toml)
  • --configDir="config" β€” config dir. The little folder where your config lives 🏠
  • -d, --destination="" β€” filesystem path to write files to. Where the output goes to live its best life ✨
  • -e, --environment="" β€” build environment. Tell it what mood we're in today πŸŒ€
  • --ignoreVendorPaths="" β€” ignores any _vendor for module paths matching the given Glob pattern. Like a "not you, babe" list for vendor dirs πŸ™ˆ
  • --logLevel="" β€” log level (debug|info|warn|error). Pick your drama tier πŸ’€
  • --noBuildLock[=false] β€” don't create the .hugo_build.lock file. Live dangerously, bestie πŸ”₯
  • --quiet[=false] β€” build in quiet mode. Shhh. No yapping. 🀫
  • -M, --renderToMemory[=false] β€” render to memory (mostly useful when running the server). Big brain energy, no disk involved 🧠
  • -s, --source="" β€” filesystem path to read files relative from
  • --themesDir="" β€” filesystem path to themes directory. Go get your aesthetic, queen πŸ‘‘

πŸ’œ SEE ALSO πŸ’œ

The whole squad, fr fr β€” go read the friends too. 🫢


Lowkey reminder: this is hugo-gen specifically, not the whole of hugo. Don't come for me if you run the wrong one πŸ’…

And that's the tea, bestie πŸ“ β€” this was Hugo 0.169.0 from Oct 2026, brought to you with love, and you've officially reached the end of the page. Slay. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from