hexpm/ldoc0.1.0ldoc

ldoc-eep48

Normalize structurally supported EEP-48 Docs records into the native analysis map while retaining producer fields and caller-supplied source data.

decode/3function

decode/3

Normalize one docs_v1 record for MODULE from CHUNK-BYTES, the complete ETF-encoded binary.

MODULE must be an atom. SOURCE is copied through unchanged without shape or provenance validation. Structural fields, arbitrary atom kind/language values, annotations, signatures, documentation bodies, and producer metadata are retained. Success returns {ok, ModuleMap}; invalid ETF or unsupported Docs structure returns {error, invalid_docs}. Structural acceptance does not validate Unicode or HTML renderability, including structured EDoc bodies. No files are read and target code is not loaded.