ldoc(1)

πŸ“¦
version 1.5.0 Β· 3 versions
, in debian trixie, ubuntu noble, ubuntu questing

πŸ’– ldoc β€” the manual page, but make it a group chat πŸ’–

okay bestie, so this is ldoc(1), a whole manual page, and i'm gonna walk you through it like we're texting at 2am πŸ¦‹


✨ NAME ✨

ldoc β€” a LuaDoc-compatible documentation generation system. that's it, that's the vibe. she generates your docs and she plays nice with LuaDoc, no cap πŸ’…


🌸 DESCRIPTION 🌸

so like, LDoc is a documentation generator for Lua, and she's compatible to LuaDoc. that's the whole personality. she takes your Lua and turns it into pretty docs. iconic behavior, honestly πŸ‘‘


πŸŽ€ OPTIONS πŸŽ€

okay this is the big one, there's a LOT of them, but we're going through every single one because i refuse to skip. periodt ✨

  • -d, --dir β€” the output directory. default is docs πŸ“
  • -o, --output β€” what you wanna name the output. default is 'index' ✏️
  • -v, --verbose β€” be loud and chatty while generating docs. spill the tea about what's happening πŸ—£οΈ
  • -a, --all β€” show local functions and stuff like that in the docs. nothing gets left out, we love inclusivity 🫢
  • -q, --quiet β€” suppress output. she's giving silence, she's giving mystery 🀫
  • -m, --module β€” module docs as text πŸ“
  • -s, --style β€” the directory for the style sheet, which is ldoc.css. default is ! πŸ’„
  • -l, --template β€” the directory for the template, which is ldoc.ltp. default is ! 🎨
  • -p, --project β€” project name. default is ldoc 🏷️
  • -t, --title β€” page title. default is Reference πŸ“–
  • -f, --format β€” the formatting. default is plain, and the valid options are markdown, discount or plain. so many choices, main character energy fr fr πŸ’…
  • -b, --package β€” top-level package basename, default ., and it's needed for module(...) πŸ“¦
  • -x, --ext β€” output file extension. default is html 🌐
  • -c, --config β€” configuration name. default is config.ld βš™οΈ
  • -u, --unqualified β€” don't show the package name in sidebar links. minimalism, we stan 🧚
  • -i, --ignore β€” ignore any 'no doc comment or no module' warnings. not me ignoring my problems πŸ™ˆ
  • -X, --not_luadoc β€” break LuaDoc compatibility. descriptions may continue after tags. she's a rebel, she's breaking the rules πŸ’€
  • -D, --define β€” set a flag to be used in config.ld. default is none 🚩
  • -C, --colon β€” use colon style πŸ‘€
  • -N, --no_args_infer β€” don't infer arguments from source. no guessing allowed 🚫
  • -B, --boilerplate β€” ignore the first comment in source files πŸ™…
  • -M, --merge β€” allow module merging 🧬
  • -S, --simple β€” no return or params, no summary. stripped back, lowkey βœ‚οΈ
  • -O, --one β€” one-column output layout πŸ“
  • --date β€” use this date in the generated doc. default is system πŸ“…
  • --dump β€” debug output dump πŸ—‘οΈ
  • --filter β€” filter output as Lua data, e.g. pl.pretty.dump. default is none πŸ”
  • --tags β€” show all references to given tags, comma-separated. default is none 🏷️
  • --fatalwarnings β€” non-zero exit status on any warning. she does NOT play about warnings, bestie ⚠️
  • --testing β€” reproducible build; no date or version on output. consistency queen πŸ§ͺ
  • <file> β€” (string) source file or directory containing source πŸ“„

πŸ”₯ EXAMPLES πŸ”₯

look at her go, she's so good at this:

ldoc .

that reads options from a config.ld file in the same directory. self-sufficient icon ✨

ldoc -c path/to/myconfig.ld .

and this one reads options from path/to/myconfig.ld 🎯


πŸ’œ AUTHOR πŸ’œ

this manpage was written for Debian by Julian Wollrath and may be used by others. shoutout Julian, we appreciate you 🫢


and that's the whole page bestie, you're officially ldoc-pilled πŸ’– go generate some docs, you got this πŸ¦‹

ldoc Β· 02 October 2023 Β· she ate and left no crumbs, mwah πŸ’…βœ¨

πŸ“¦ where this page comes from