forked from open-telemetry/opentelemetry-erlang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docs.sh
executable file
·65 lines (56 loc) · 2.23 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/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.4.0
api_version=1.3.1
exp_sdk_version=0.5.1
exp_api_version=0.5.1
otlp_version=1.7.0
zipkin_version=1.1.0
semconv_version=0.2.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_experimental" $exp_sdk_version "_build/default/lib/opentelemetry_experimental/ebin" \
--source-ref v${exp_sdk_version} \
--config apps/opentelemetry_experimental/docs.config $@ \
--output "apps/opentelemetry_experimental/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"
pushd apps/opentelemetry_api_experimental
mix deps.get
mix compile
popd
ex_doc "opentelemetry_api_experimental" $api_version "apps/opentelemetry_api_experimental/_build/dev/lib/opentelemetry_api_experimental/ebin" \
--source-ref v${exp_api_version} \
--config apps/opentelemetry_api_experimental/docs.config $@ \
--output "apps/opentelemetry_api_experimental/doc"
pushd apps/opentelemetry_semantic_conventions/
mix deps.get
mix compile
popd
ex_doc "opentelemetry_semantic_conventions" $semconv_version "apps/opentelemetry_semantic_conventions/_build/dev/lib/opentelemetry_semantic_conventions/ebin" \
--source-ref v${semconv_version} \
--config apps/opentelemetry_semantic_conventions/docs.config $@ \
--output "apps/opentelemetry_semantic_conventions/doc"