edoc_layout(3)
π edoc_layout β the Erlang Module Definition β¨
okay so bestie, welcome to edoc_layout(3) π
this is the standard HTML layout module for EDoc β like, it's the one that actually makes your docs look cute in a browser. want the deets on how to use it? go see the edoc module, it's all there. π«Ά
πΈ DESCRIPTION πΈ
See also: edoc. π¦
(yes that's the whole thing, it's a short one, we love an efficient queen)
π DATA TYPES π
okay soβ¦ literally nothing here bestie π no data types, empty section, but we respect it. moving on! β¨
π FUNCTIONS π
module(Element, Options) -> term()β withwhen Element :: edoc:edoc_module(), Options :: options().
this is the layout function, the main character fr fr π₯
here are the Options to the standard layout, and yes we're going through every single one, no skipping, that's the rule π
{index_columns, integer()}β says how many column pairs the function index tables get. default is1. one and done. β¨{pretty_printer, atom()}β controls how types and specs get pretty printed. if you passerl_pp, it uses the Erlang pretty printer (theerl_ppmodule). the default is to do no pretty printing at all, which means β and I need you to brace yourself β lines can be very long. π no wrapping, no mercy, just vibes.{stylesheet, string()}β the URI used to reference your stylesheet. default is"stylesheet.css". and listen: if you pass an empty string, no stylesheet reference gets generated whatsoever. spicy π{sort_functions, boolean()}β iftrue, the detailed function descriptions are listed by name. if it's not true, they come out in the order they occur in the source file. default istrue. iconic sorting behavior π{xml_export, Module::atom()}β names an xmerl callback module to use for exporting the documentation. see//xmerl/xmerl:export_simple/3for the details. π§
See also: edoc:layout/2. π«Ά
π¦ CALLBACKS π¦
module/2β layout entrypoint. that's the door, bestie, everything walks through here π
ngl, if you're writing docs and something looks weird, it's probably a pretty printer thing. erl_pp is your friend. or don't β default means long lines and honestly? sometimes that's a mood. π
mwah π this page brought to you by Ericsson AB, version edoc 1.5, and the date stamp edoc_layout(3) β periodt, that's a wrap bestie, go document something gorgeous β¨ππ
π¦ 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