Skip to content

Commit

Permalink
docs: set source_ref for source link inference
Browse files Browse the repository at this point in the history
  • Loading branch information
fahchen committed Jul 11, 2024
1 parent 640afd0 commit 23acc32
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mix.exs
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
defmodule TypedStructor.MixProject do
use Mix.Project

@version "0.4.1"
@source_url "https://github.com/elixir-typed-structor/typed_structor"

def project do
[
app: :typed_structor,
description: "TypedStructor is a library for defining structs with types effortlessly.",
version: "0.4.1",
version: @version,
elixir: "~> 1.14",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
Expand All @@ -19,6 +20,7 @@ defmodule TypedStructor.MixProject do
docs: [
main: "readme",
source_url: @source_url,
source_ref: "v#{@version}",
extra_section: "Guides",
groups_for_extras: [
Guides: ~r<(guides/[^\/]+\.md)|(README.md)>,
Expand Down Expand Up @@ -47,6 +49,7 @@ defmodule TypedStructor.MixProject do
name: "typed_structor",
licenses: ["MIT"],
links: %{
"Changelog" => "https://hexdocs.pm/typed_structor/changelog.html",
"GitHub" => @source_url
}
],
Expand Down

0 comments on commit 23acc32

Please sign in to comment.