Skip to content

Can't generate Erlang library documentation using ExDoc #1393

@kianmeng

Description

@kianmeng

Running on Erlang: 24.0.2
Erlang library tested: https://github.com/certifi/erlang-certifi

I was following the instruction here, https://github.com/elixir-lang/ex_doc#using-exdoc-with-erlang-projects, but stuck at step 4.

rebar.config as follows:

{erl_first_files, ["src/certifi_pt.erl"]}.

{erl_opts, [deterministic  %% Added since OTP 20
           ,{platform_define, "^2", 'OTP_20_AND_ABOVE'}
           ,{doclet, edoc_doclet_chunks}
           ,{layout, edoc_layout_chunks}
           ,{dir, "_build/default/lib/certifi/doc"}
           ]}.

To generate doc using rebar3:

rebar3 edoc

No issue, works just fine:
image

To generate doc using ExDoc:

rebar3 compile # <-- missing this step here otherwise `_build/default` folder is not found
ex_doc "certifi" "2.7.0" _build/default/lib/certifi/ebin

HTML files were generated, but without the content?
image

Not familiar with Erlang and its ecosystem, did I miss out something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions