edoc_run(3erl)
π edoc_run (3erl) π
okay so bestie, welcome to the Erlang Module Definition for edoc_run π β manual name is literally edoc_run, section 3erl, and it's the interface for calling EDoc from Erlang startup options. no cap, that's the whole vibe. π¦
πΈ NAME πΈ
edoc_run β interface for calling EDoc from Erlang startup options. π
β¨ DESCRIPTION β¨
okay so this module is the interface for calling EDoc from Erlang startup options. yes, the description says it twice β iconic of it, honestly. π
here's a typical Makefile usage moment, with the exact energy preserved:
docs:
erl -noshell -run edoc_run application "'$(APP_NAME)'" \
'"."' '[{def,{vsn,"$(VSN)"}}]'
heads up bestie: note the single-quotes to avoid shell expansion, and the double-quotes enclosing the strings. π₯
new feature in version 0.6.9: it is no longer necessary to write -s init stop last on the command line in order to make the execution terminate. the termination (signalling success or failure to the operating system) is now built into these functions. slay. β¨
π§ DATA TYPES π§
args()=[string()]:
π EXPORTS π
application(Args::args()) -> no_return()β callsedoc:application/3with the corresponding arguments. the strings in the list are parsed as Erlang constant terms. the list can be either[App],[App, Options]or[App, Dir, Options]. In the first caseedoc:application/1is called instead; in the second case,edoc:application/2is called.
the function call never returns; instead, the emulator is automatically terminated when the call has completed, signalling success or failure to the operating system. π that's a no-return situation, not a sad one.
file(Args::args()) -> no_return()β > deprecated, bestie π¨ β this function is deprecated: this is part of the old interface to EDoc and is mainly kept for backwards compatibility. the preferred way of generating documentation is through one of the functionsapplication/1andfiles/1.
calls edoc:file/2 with the corresponding arguments. the strings in the list are parsed as Erlang constant terms. the list can be either [File] or [File, Options]. In the first case, an empty list of options is passed to edoc:file/2.
the following is an example of typical usage in a Makefile:
$(DOCDIR)/%.html:%.erl
erl -noshell -run edoc_run file '"$<"' '[{dir,"$(DOCDIR)"}]' \
-s init stop
the function call never returns; instead, the emulator is automatically terminated when the call has completed, signalling success or failure to the operating system. π
files(Args::args()) -> no_return()β callsedoc:files/2with the corresponding arguments. the strings in the list are parsed as Erlang constant terms. the list can be either[Files]or[Files, Options]. In the first case,edoc:files/1is called instead.
the function call never returns; instead, the emulator is automatically terminated when the call has completed, signalling success or failure to the operating system. π
π¦ SEE ALSO π¦
edocβ go look at that one too, bestie. π
π AUTHORS π
Richard Carlsson <carlsson.richard@gmail.com>β author royalty, fr fr. π«Ά
mwah π this was the edoc 1.2 version of the edoc_run(3erl) manual page β catch you in the docs, bestie ππ§ββοΈ
π¦ where this page comes from
- debian bookworm: erlang-manpages 1:25.2.3+dfsg-1+deb12u1 Β· Apache-2.0
- debian bookworm: erlang-manpages 1:25.2.3+dfsg-1+deb12u4 Β· Apache-2.0
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4 Β· Apache-2.0
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4.8 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms