From ade644b58378fabd27bdeb62040124316ff31f57 Mon Sep 17 00:00:00 2001 From: Andreas Schultz Date: Wed, 3 Apr 2024 18:32:54 +0200 Subject: [PATCH] doc: switch to ex_doc --- .github/workflows/hex.yaml | 2 +- rebar.config | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/hex.yaml b/.github/workflows/hex.yaml index 11bbecc..dd5885e 100644 --- a/.github/workflows/hex.yaml +++ b/.github/workflows/hex.yaml @@ -25,5 +25,5 @@ jobs: env: HEX_API_KEY: ${{ secrets.HEX_API_KEY }} run: | - rebar3 edoc + rebar3 ex_doc rebar3 hex publish -r hexpm --yes diff --git a/rebar.config b/rebar.config index 2daa531..0c2ca36 100644 --- a/rebar.config +++ b/rebar.config @@ -21,9 +21,23 @@ %% @TODO: Folow https://github.com/markusn/coveralls-erl/pull/36 and use `coveralls` after release {coveralls, {git, "https://github.com/RoadRunnr/coveralls-erl.git", {branch, "feature/git-info"}}}, rebar3_hex, + rebar3_ex_doc, rebar3_fmt ]}. +%% == ExDoc == + +{ex_doc, [ + {extras, ["README.md", "LICENSE"]}, + {main, "README.md"}, + {source_url, "https://github.com/travelping/prometheus_diameter_collector"} +]}. + +%% == Hex == +{hex, [ + {doc, #{provider => ex_doc}} +]}. + %% == Cover == {cover_enabled, true}. {cover_export_enabled, true}.