Skip to content

Commit 6fa6b0a

Browse files
authored
Migrate private docs URLs from *.hexdocs.pm to *.hexorgs.pm (#1115)
Update organization doc URL functions to use hexorgs.pm. Public (hexpm/nil) URLs remain on hexdocs.pm.
1 parent af9fba2 commit 6fa6b0a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/hex/utils.ex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,28 +221,28 @@ defmodule Hex.Utils do
221221
do: "https://hexdocs.pm/#{package}"
222222

223223
def hexdocs_url(organization, package),
224-
do: "https://#{organization}.hexdocs.pm/#{package}"
224+
do: "https://#{organization}.hexorgs.pm/#{package}"
225225

226226
def hexdocs_url(organization, package, version)
227227
when organization in ["hexpm", nil],
228228
do: "https://hexdocs.pm/#{package}/#{version}"
229229

230230
def hexdocs_url(organization, package, version),
231-
do: "https://#{organization}.hexdocs.pm/#{package}/#{version}"
231+
do: "https://#{organization}.hexorgs.pm/#{package}/#{version}"
232232

233233
def hexdocs_module_url(organization, package, module)
234234
when organization in ["hexpm", nil],
235235
do: "https://hexdocs.pm/#{package}/#{module}.html"
236236

237237
def hexdocs_module_url(organization, package, module),
238-
do: "https://#{organization}.hexdocs.pm/#{package}/#{module}.html"
238+
do: "https://#{organization}.hexorgs.pm/#{package}/#{module}.html"
239239

240240
def hexdocs_module_url(organization, package, version, module)
241241
when organization in ["hexpm", nil],
242242
do: "https://hexdocs.pm/#{package}/#{version}/#{module}.html"
243243

244244
def hexdocs_module_url(organization, package, version, module),
245-
do: "https://#{organization}.hexdocs.pm/#{package}/#{version}/#{module}.html"
245+
do: "https://#{organization}.hexorgs.pm/#{package}/#{version}/#{module}.html"
246246

247247
def package_retirement_reason(:RETIRED_OTHER), do: "other"
248248
def package_retirement_reason(:RETIRED_INVALID), do: "invalid"

0 commit comments

Comments
 (0)