Skip to content

Commit

Permalink
build: use rebar3 ex_doc plugin
Browse files Browse the repository at this point in the history
Also resolves issues with erlang/otp#6916 for
erlang 26.
  • Loading branch information
msantos committed May 26, 2023
1 parent 68cd632 commit ac3041f
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,21 @@
{"win32", "priv/ewpcap.dll", ["c_src/ewpcap.c"]}
]}.

{post_hooks, [
{edoc,
"ex_doc --config .ex_doc.config --source-url \"https://github.com/msantos/ewpcap\" --source-ref \"master\" \"ewpcap\" `erl -noshell -s init stop -eval '{ok, [{_,_,X}]} = file:consult(\"src/ewpcap.app.src\"), io:format(\"~s\", [proplists:get_value(vsn, X, \"0.0.0\")]).'` _build/default/lib/ewpcap/ebin"}
]}.

{edoc_opts, [
{doclet, edoc_doclet_chunks},
{layout, edoc_layout_chunks},
{dir, "_build/default/lib/ewpcap/doc"}
]}.

{dialyzer, [
{warnings, [
unmatched_returns,
error_handling,
race_conditions,
underspecs
]}
]}.

{project_plugins, [erlfmt]}.
{ex_doc, [
{extras, [
{"README.md", #{title => "Overview"}},
"LICENSE"
]},
{main, "README.md"},
{source_url, "https://github.com/msantos/ewpcap"}
]}.

{erlfmt, [write]}.
{hex, [{doc, ex_doc}]}.

0 comments on commit ac3041f

Please sign in to comment.