From 82e41e03f698971e7df6ac3b6deb9978ac13612e Mon Sep 17 00:00:00 2001 From: Phil Chen <06fahchen@gmail.com> Date: Sat, 29 Jun 2024 12:38:17 +0800 Subject: [PATCH] doc: set source_url --- mix.exs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/mix.exs b/mix.exs index 781fc05..0f9f382 100644 --- a/mix.exs +++ b/mix.exs @@ -1,6 +1,8 @@ defmodule TypedStructor.MixProject do use Mix.Project + @source_url "https://github.com/elixir-typed-structor/typed_structor" + def project do [ app: :typed_structor, @@ -11,10 +13,11 @@ defmodule TypedStructor.MixProject do start_permanent: Mix.env() == :prod, deps: deps(), name: "TypedStructor", - source: "https://github.com/elixir-typed-structor/typed_structor", - homepage_url: "https://github.com/elixir-typed-structor/typed_structor", + source: @source_url, + homepage_url: @source_url, docs: [ main: "TypedStructor", + source_url: @source_url, extra_section: "Guides", extras: [ "README.md", @@ -26,7 +29,7 @@ defmodule TypedStructor.MixProject do name: "typed_structor", licenses: ["MIT"], links: %{ - "GitHub" => "https://github.com/elixir-typed-structor/typed_structor" + "GitHub" => @source_url } ] ]