Current section
Files
Jump to
Current section
Files
rebar.config
{erl_opts, [debug_info]}.
{deps, []}.
{plugins, [rebar3_hex, rebar3_ex_doc]}.
{hex, [
{name, <<"macro_env">>},
{doc, #{provider => ex_doc}},
{links, [{"GitHub", "https://github.com/bsanyi/macro_env"}]},
{files, [
"src",
"rebar.config",
"rebar.lock",
"README.md",
"LICENSE.md"
]}
]}.
{ex_doc, [
{source_url, <<"https://github.com/bsanyi/macro_env">>},
{extras, [<<"README.md">>, <<"LICENSE.md">>]},
{main, <<"README.md">>}
]}.
%% edoc cannot discover source files whose names start with an underscore
%% (like __ENV__.erl), so its doclet never creates the output directory.
%% rebar3_ex_doc needs this directory to exist for writing docs.config.
%% The actual doc chunks come from the compiler (OTP 27+ -moduledoc).
%% We create both `default` and `docs` profile dirs because `rebar3 ex_doc`
%% uses the `docs` profile, while `rebar3 hex publish` uses `default`.
{pre_hooks, [{edoc, "mkdir -p _build/default/lib/macro_env/doc _build/docs/lib/macro_env/doc"}]}.