Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,19 +177,20 @@ affecting **all external contributors**:
## Building documentation

Building the documentation requires that [ExDoc](https://github.com/elixir-lang/ex_doc)
is installed and built alongside Elixir:
is installed and built alongside Elixir.
Comment thread
josevalim marked this conversation as resolved.

After cloning and compiling Elixir, run:

```sh
# After cloning and compiling Elixir, in its parent directory:
git clone https://github.com/elixir-lang/ex_doc.git
cd ex_doc && ../elixir/bin/elixir ../elixir/bin/mix do deps.get + compile
```
elixir_dir=$(pwd)
cd .. && git clone https://github.com/elixir-lang/ex_doc.git
cd ex_doc && "${elixir_dir}/bin/elixir" "${elixir_dir}/bin/mix" do deps.get + compile

Now go back to Elixir's root directory and run:
# Now we will go back to Elixir's root directory,
cd "${elixir_dir}"

```sh
make docs # to generate HTML pages
make docs DOCS_FORMAT=epub # to generate EPUB documents
# and generate HTML and EPUB documents:
make docs
```

This will produce documentation sets for `elixir`, `eex`, `ex_unit`, `iex`, `logger`,
Expand Down