ldoc(1)
π 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 isdocsπ-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 isldoc.css. default is!π-l,--templateβ the directory for the template, which isldoc.ltp. default is!π¨-p,--projectβ project name. default isldocπ·οΈ-t,--titleβ page title. default isReferenceπ-f,--formatβ the formatting. default isplain, and the valid options aremarkdown,discountorplain. so many choices, main character energy fr fr π-b,--packageβ top-level package basename, default., and it's needed formodule(...)π¦-x,--extβ output file extension. default ishtmlπ-c,--configβ configuration name. default isconfig.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 inconfig.ld. default isnoneπ©-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 issystemπ--dumpβ debug output dump ποΈ--filterβ filter output as Lua data, e.g.pl.pretty.dump. default isnoneπ--tagsβ show all references to given tags, comma-separated. default isnoneπ·οΈ--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
- debian trixie: lua-ldoc 1.5.0-1 Β· MIT
- ubuntu noble: lua-ldoc 1.5.0-1 Β· MIT
- ubuntu questing: lua-ldoc 1.5.0-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms