ExDoc produces HTML and EPUB documentation for Elixir projects
ExDoc is a tool designed for generating documentation for both Erlang and Elixir projects. It provides features like automatically generating HTML and EPUB documents, responsive design, customizable options, and various shortcuts for ease of use.
Ensure Elixir v1.12 or later and add ExDoc as a dependency with:
mix deps.get
Additionally, set :name, :source_url, and :homepage_url for better output.
Generate project documentation using:
mix docs
For Erlang/OTP 24+, use ExDoc with EDoc support by referring to rebar3_ex_doc.
Install ExDoc as an escript and execute it in your project directory. Use the --config option to specify a config file format.
ExDoc is a versatile tool for creating comprehensive documentation for Erlang and Elixir projects. With features like automated document generation, customization options, and ease of use through shortcuts, it offers a user-friendly experience for developers looking to document their code effectively. Through installation guides for Mix, Rebar3, and CLI, ExDoc ensures seamless integration with different project environments.