I am unable to generate documentation only for specific modules using rebar3 and when publishing the library, the documentation will be generated for all modules automatically.
Now running this command locally I get the desired results: erl -noshell -run edoc_run files '["src/mymodule.erl"]' '[{dir, "doc"}]'
But running rebar3 edoc
results documenation for all modules.
Inside rebar.config I have:
{edoc_opts, [
{preprocess, true},
{files, ["src/mymodule.erl"]},
{overview, "doc/overview.edoc"},
{modules, [mymodule]},
{dir, "doc"}]}.
I have 2 questions:
- How can I generate documentation for specific modules only using
rebar3 edoc
command. - Does
rebar3 hex publish
executerebar3 edoc
behind the scenes?