From 0a35cc2a11765bb7e728b98a397a2ee08c14f97f Mon Sep 17 00:00:00 2001 From: Rebecca Le Date: Thu, 23 May 2024 17:34:26 +0800 Subject: [PATCH] fix: Replace dots in URLs for Hex doc links This should fix the broken link to the upgrade guide, which is generated as https://hexdocs.pm/ash/upgrading-to-3.0.html - should be https://hexdocs.pm/ash/upgrading-to-3-0.html --- lib/ash_hq_web/helpers.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ash_hq_web/helpers.ex b/lib/ash_hq_web/helpers.ex index 11e2ec4..7c4d9dd 100644 --- a/lib/ash_hq_web/helpers.ex +++ b/lib/ash_hq_web/helpers.ex @@ -34,7 +34,7 @@ defmodule AshHqWeb.Helpers do end def hex_link(%AshHq.Docs.Guide{route: route}, library, _library_version) do - name = route |> Path.split() |> List.last() + name = route |> Path.split() |> List.last() |> String.replace(".", "-") "https://hexdocs.pm/#{library.name}/#{name}.html" end end