Module edoc_run

Interface for calling EDoc from Erlang startup options.

Copyright © 2003 Richard Carlsson

Authors: Richard Carlsson (richardc@csd.uu.se).

See also: edoc.

Description

Interface for calling EDoc from Erlang startup options. 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
(note the single-quotes to avoid shell expansion, and the double-quotes enclosing the strings).

Function Index

application/1
file/1Calls edoc:file/2 with the corresponding arguments.
toc/1

Function Details

application/1

application(Args) -> term()

file/1

file(Args::[string()]) -> ok | error

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. See also the usage example above.

toc/1

toc(Args) -> term()