May 2018
Intermediate to advanced
412 pages
9h 3m
English
Java has Javadoc, Ruby has RDoc, and Elixir has ExDoc—a documentation tool that describes your project, showing the modules, the things defined in them, and any documentation you’ve written for them.
Using it is easy. First, add the ExDoc dependency to your mix.exs file. You’ll also need to add an output formatter—I use earmark, a pure-Elixir Markdown-to-HTML convertor.
| | defp deps do |
| | [ |
| | { :httpoison, "~> 1.0.0" }, |
| | { :poison, "~> 3.1.0" }, |
| | { :ex_doc, "~> 0.18.1" }, |
| | { :earmark, "~> 1.2.4" }, |
| | ] |
| | end |
While you’re in the mix.exs, you can add a project name and (if your project is in GitHub) a URL. The latter allows ExDoc to provide live links to your source code. These ...
Read now
Unlock full access