Skip to content

Commit

Permalink
Generate opentelemetry_exporter docs with ExDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
kw7oe committed Aug 21, 2021
1 parent 0ee4926 commit 297c832
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/opentelemetry_exporter/docs.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{source_url, <<"https://github.com/open-telemetry/opentelemetry-erlang">>}.
{extras, [<<"apps/opentelemetry_exporter/README.md">>,
<<"apps/opentelemetry_exporter/LICENSE">>]}.
{main, <<"readme">>}.
{proglang, erlang}.
10 changes: 10 additions & 0 deletions apps/opentelemetry_exporter/rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,13 @@
{gpb_opts, [{module_name_prefix, "opentelemetry_exporter_"},
{module_name_suffix, "_pb"},
{i, "apps/opentelemetry_exporter/opentelemetry-proto/"}]}]}.

{profiles,
[{docs, [{deps, [edown]},
{edoc_opts,
[
{doclet, edoc_doclet_chunks},
{layout, edoc_layout_chunks},
{preprocess, true},
{dir, "_build/default/lib/opentelemetry_exporter/doc"},
{subpackages, true}]}]}]}.
4 changes: 4 additions & 0 deletions docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ ex_doc "opentelemetry" $version "_build/default/lib/opentelemetry/ebin" \
--config docs.config $@ \
--output "apps/opentelemetry/doc"

ex_doc "opentelemetry_exporter" $version "_build/default/lib/opentelemetry_exporter/ebin" \
--source-ref v${version} \
--config apps/opentelemetry_exporter/docs.config $@ \
--output "apps/opentelemetry_exporter/doc"

0 comments on commit 297c832

Please sign in to comment.