mirror of
https://github.com/ash-project/ash_hq.git
synced 2024-09-17 03:43:39 +12:00
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
This commit is contained in:
parent
b8d1415684
commit
0a35cc2a11
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue