Skip to content

Commit 4f9fef7

Browse files
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 <mattia.mazzucato@secomind.com>
1 parent 07aadbe commit 4f9fef7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

mix.exs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
defmodule Astarte.Flow.MixProject do
2020
use Mix.Project
2121

22+
@source_ref "master"
23+
@source_version String.replace_prefix(@source_ref, "release-", "")
24+
|> String.replace("master", "snapshot")
25+
2226
def project do
2327
[
2428
app: :astarte_flow,
@@ -36,6 +40,8 @@ defmodule Astarte.Flow.MixProject do
3640
"coveralls.post": :test,
3741
"coveralls.html": :test
3842
],
43+
homepage_url: "https://docs.astarte-platform.org/flow/#{@source_version}/",
44+
source_url: "https://github.com/astarte-platform/astarte_flow",
3945
docs: docs()
4046
]
4147
end
@@ -107,6 +113,7 @@ defmodule Astarte.Flow.MixProject do
107113
extra_section: "Guides",
108114
assets: "guides/assets",
109115
logo: "guides/assets/images/mascot.png",
116+
source_ref: "#{@source_ref}",
110117
extras: Path.wildcard("guides/*/*.md"),
111118
groups_for_extras: [
112119
"Core Concepts": ~r"/core_concepts/",

0 commit comments

Comments
 (0)