From 4f9fef7be112adcb576a5d64fbdc9d7b88f593d7 Mon Sep 17 00:00:00 2001 From: Mattia Mazzucato Date: Tue, 11 Apr 2023 16:53:18 +0200 Subject: [PATCH] Update links for Flow - update links to the source of each documentation page - update link to the homepage of the component Signed-off-by: Mattia Mazzucato --- mix.exs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mix.exs b/mix.exs index 40895d4..680f204 100644 --- a/mix.exs +++ b/mix.exs @@ -19,6 +19,10 @@ defmodule Astarte.Flow.MixProject do use Mix.Project + @source_ref "master" + @source_version String.replace_prefix(@source_ref, "release-", "") + |> String.replace("master", "snapshot") + def project do [ app: :astarte_flow, @@ -36,6 +40,8 @@ defmodule Astarte.Flow.MixProject do "coveralls.post": :test, "coveralls.html": :test ], + homepage_url: "https://docs.astarte-platform.org/flow/#{@source_version}/", + source_url: "https://github.com/astarte-platform/astarte_flow", docs: docs() ] end @@ -107,6 +113,7 @@ defmodule Astarte.Flow.MixProject do extra_section: "Guides", assets: "guides/assets", logo: "guides/assets/images/mascot.png", + source_ref: "#{@source_ref}", extras: Path.wildcard("guides/*/*.md"), groups_for_extras: [ "Core Concepts": ~r"/core_concepts/",