Skip to content

Commit

Permalink
Update links for Flow
Browse files Browse the repository at this point in the history
- 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>
  • Loading branch information
matt-mazzucato committed May 15, 2023
1 parent 07aadbe commit 4f9fef7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
Expand Down Expand Up @@ -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/",
Expand Down

0 comments on commit 4f9fef7

Please sign in to comment.