Skip to content

Commit

Permalink
fix: Replace dots in URLs for Hex doc links
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sevenseacat committed May 23, 2024
1 parent b8d1415 commit 0a35cc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ash_hq_web/helpers.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0a35cc2

Please sign in to comment.