Skip to content

Commit

Permalink
Improve doc def (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
Serabe authored Oct 3, 2023
1 parent 3060974 commit 48d2c8f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defmodule DomHelpers.MixProject do
use Mix.Project

@version "0.2.0"
@source_url "https://github.com/Serabe/dom_helpers"

def project do
[
Expand All @@ -11,6 +12,7 @@ defmodule DomHelpers.MixProject do
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
docs: docs(),
license: "MIT",
package: package()
]
Expand Down Expand Up @@ -44,6 +46,15 @@ defmodule DomHelpers.MixProject do
]
end

defp docs do
[
extras: [{:"README.md", [title: "Overview"]}],
main: "readme",
source_url: @source_url,
source_ref: "v#{@version}"
]
end

defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_other), do: ["lib"]
end

0 comments on commit 48d2c8f

Please sign in to comment.