Can `mix docs` somehow include erlang docs from src/*.erl files?

Seems like it leaves out Erlang modules from the generated documentation.

I have been struggling with the same problem. so far, i have tried to remove the % {modules, []}, line from ap.src and then in mix.exs i added
docs: [

    main: "api-reference",

    include_erlang_modules: true,

    source_paths: \["src"\]

But so far, none of this has worked.

Look at the :telemetry erlang library to learn how they published its docs in HexDocs.