edoc_doclet(3)
β¨ edoc_doclet β¨
okay bestie, welcome to the edoc_doclet manual page β literally the standard doclet module for EDoc π she's the one who actually turns your Erlang code into pretty HTML, and yes, she ate π
fr fr, this is an Erlang module definition page. buckle up, we're going in.
πΈ NAME πΈ
edoc_doclet β the standard doclet module for EDoc. that's it, that's the name, iconic of her π
π¦ DESCRIPTION π¦
See also: edoc.
like, go look at edoc too, bestie, they're a package deal π«Ά
π DATA TYPES π
command()
command() :: doclet_gen() | doclet_toc().
these are the doclet commands β your girl's to-do list β¨
context()
context() ::
#doclet_context{dir :: string(),
env :: edoc:env(),
opts :: [term()]}.
this is the context for doclets β it's giving "here's everything you need to know about where you are and what you're doing" π‘
doclet_gen()
doclet_gen() ::
#doclet_gen{sources :: [string()],
app :: no_app | atom(),
modules :: [module()]}.
a doclet command. yep. just a command. main character energy, minimal explanation π
doclet_toc()
doclet_toc() ::
#doclet_toc{paths :: [string()], indir :: string()}.
another doclet command β this one's the table-of-contents girly π
π FUNCTIONS π
run(edoc_doclet:command(), edoc_doclet:context()) -> ok.
Main doclet entry point. like, the front door. the red carpet. the moment everyone's been waiting for π
also, go peek at the file edoc_doclet.hrl for the data structures that get used for passing parameters β that's where the receipts live π§Ύ
also also: check out edoc:layout/2 for layout-related options, and edoc:get_doc/2 for options related to reading source files π
β¨ Options β¨
{file_suffix, string()}β sets the suffix used for output files. the default is literally".html"no cap π{hidden, boolean()}β if it'strue, docs for hidden modules and functions get included too π. default isfalse.{overview, edoc:filename()}β names the overview file. by default this doclet goes looking for a file called"overview.edoc"in the target directory π{private, boolean()}β if it'strue, docs for private modules and functions get included too π€«. default isfalse.{stylesheet, string()}β the URI used for referencing the stylesheet π default is"stylesheet.css". if you pass an empty string, no stylesheet reference gets generated at all β zero, zilch, none, the HTML goes naked π{stylesheet_file, edoc:filename()}β names the stylesheet file. by default this doclet uses"stylesheet.css"sitting in theprivsubdirectory of the EDoc installation directory π. the named file will get copied to the target directory, so she's coming with you π«Ά{title, string()}β sets the title of the overview page π·οΈ
β CALLBACKS β
run/2
Doclet entrypoint. yeah girl, that's the one β¨
lowkey reminder bestie: every option above? real. every default? real. don't come for me if you pass an empty {stylesheet, ""} and your page looks like a plain text file, I warned you π
and that's the whole page, we're done, slay ππ
sign-off time: this gem came from Ericsson AB, it's part of edoc 1.5, and the page itself is edoc_doclet(3). periodt ππ
π¦ where this page comes from
- ubuntu stonking: erlang-doc 1:29.0.6+dfsg-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms