edoc_lib(3erl)

edoc_lib3erl

Utility functions for edoc.

Overview

Utility functions for EDoc.

Data types

proplist() = proplists:proplist():

Exports

get_doc_env(App, Modules, Options) -> edoc:env()

Types:

App = atom() | no_app
Modules = [module()]
Options = proplist()

Creates an environment data structure used by parts of EDoc for generating references, etc. See edoc:run/2 for a description of the options file_suffix, app_default and doc_path.

See also: edoc:get_doc/3, edoc_extract:source/4.

infer_module_app(Mod::module()) -> no_app | {app, atom()}

Infer application containing the given module.

It's expected that modules which are not preloaded and don't match the <app>/ebin/<mod>.beam path pattern will NOT have an app name inferred properly. no_app is returned in such cases.

write_file(Text, Dir, Name, Options) -> term()

Releases

8 releases since Debian 5.0 (Lenny); the text changed 7 times.

  1. 5.0
  2. 6.0
  3. 7
  4. 8
  5. 9
  6. 10
  7. 11
  8. 12

Authors

Richard Carlsson <[email protected]>

From erlang-manpages 1:25.2.3+dfsg-1+deb12u4 in Debian 12 (Bookworm). Parsed by carta from the page's man source.