Skip to content

Commit

Permalink
docs: update mix docs generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziinc committed Jun 11, 2024
1 parent fca7edd commit 8beb450
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ Supported languages and integrations:
- LoggerBackend - a backend for Logger
- TelemetryReporter - a telemetry reporter module for `:telemetry_metrics`


## Development

Release tags are prefixed with the language followed by the version, such as `js/v0.1.0`.
Expand Down
19 changes: 17 additions & 2 deletions ex/mix.exs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
defmodule LogflareEx.MixProject do
use Mix.Project

@source_url "https://github.com/Logflare/warehouse-sdk"
@prerelease System.get_env("LOGFLARE_EX_PRERELEASE_VERSION")
@version_suffix if(@prerelease, do: "-#{@prerelease}", else: "")
def project do
Expand All @@ -15,6 +16,7 @@ defmodule LogflareEx.MixProject do
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
docs: docs(),
preferred_cli_env: [
"test.format": :test,
"test.compile": :test
Expand Down Expand Up @@ -69,9 +71,22 @@ defmodule LogflareEx.MixProject do

defp package() do
[
description: "Logflare Elixir SDK",
description: "Warehouse Elixir SDK",
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/Logflare/logflare-sdk"}
links: %{"GitHub" => @source_url}
]
end

defp docs do
[
extras: [
"README.md": [title: "Overview"]
],
main: "readme",
homepage_url: "https://hex.pm/packages/warehouse_ex",
source_url: @source_url,
formatters: ["html"]
]
end

end

0 comments on commit 8beb450

Please sign in to comment.