forked from open-telemetry/opentelemetry-erlang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docs.sh
executable file
·39 lines (33 loc) · 1.16 KB
/
docs.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
set -e
# Setup:
#
# # 1. install OTP 24+
# # 2. install ExDoc:
# $ mix escript.install github elixir-lang/ex_doc
rebar3 compile
rebar3 edoc
sdk_version=1.0.5
api_version=1.0.3
otlp_version=1.0.4
zipkin_version=1.0.0
ex_doc "opentelemetry" $sdk_version "_build/default/lib/opentelemetry/ebin" \
--source-ref v${sdk_version} \
--config apps/opentelemetry/docs.config $@ \
--output "apps/opentelemetry/doc"
ex_doc "opentelemetry_exporter" $otlp_version "_build/default/lib/opentelemetry_exporter/ebin" \
--source-ref v${otlp_version} \
--config apps/opentelemetry_exporter/docs.config $@ \
--output "apps/opentelemetry_exporter/doc"
ex_doc "opentelemetry_zipkin" $zipkin_version "_build/default/lib/opentelemetry_zipkin/ebin" \
--source-ref v${zipkin_version} \
--config apps/opentelemetry_zipkin/docs.config $@ \
--output "apps/opentelemetry_zipkin/doc"
pushd apps/opentelemetry_api
mix deps.get
mix compile
popd
ex_doc "opentelemetry_api" $api_version "apps/opentelemetry_api/_build/dev/lib/opentelemetry_api/ebin" \
--source-ref v${api_version} \
--config apps/opentelemetry_api/docs.config $@ \
--output "apps/opentelemetry_api/doc"