Use package.hexdocs.pm URL format instead of hexdocs.pm/package (#15429)
This commit is contained in:
@@ -42,7 +42,11 @@ latest =
|
||||
version_nodes =
|
||||
for version <- versions do
|
||||
version_string = Version.to_string(version)
|
||||
map = %{version: "v#{version_string}", url: "https://hexdocs.pm/#{app}/#{version_string}"}
|
||||
|
||||
map = %{
|
||||
version: "v#{version_string}",
|
||||
url: "https://#{String.replace(app, "_", "-")}.hexdocs.pm/#{version_string}"
|
||||
}
|
||||
|
||||
if version_string == latest do
|
||||
Map.put(map, :latest, true)
|
||||
|
||||
@@ -79,11 +79,11 @@ canonical = System.fetch_env!("CANONICAL")
|
||||
"CHANGELOG.md"
|
||||
],
|
||||
deps: [
|
||||
eex: "https://hexdocs.pm/eex/#{canonical}",
|
||||
ex_unit: "https://hexdocs.pm/ex_unit/#{canonical}",
|
||||
iex: "https://hexdocs.pm/iex/#{canonical}",
|
||||
logger: "https://hexdocs.pm/logger/#{canonical}",
|
||||
mix: "https://hexdocs.pm/mix/#{canonical}"
|
||||
eex: "https://eex.hexdocs.pm/#{canonical}",
|
||||
ex_unit: "https://ex-unit.hexdocs.pm/#{canonical}",
|
||||
iex: "https://iex.hexdocs.pm/#{canonical}",
|
||||
logger: "https://logger.hexdocs.pm/#{canonical}",
|
||||
mix: "https://mix.hexdocs.pm/#{canonical}"
|
||||
],
|
||||
groups_for_extras: [
|
||||
"Getting started": ~r"pages/getting-started/.*\.md$",
|
||||
|
||||
@@ -21,12 +21,12 @@ canonical = System.fetch_env!("CANONICAL")
|
||||
}
|
||||
],
|
||||
deps: [
|
||||
eex: "https://hexdocs.pm/eex/#{canonical}",
|
||||
elixir: "https://hexdocs.pm/elixir/#{canonical}",
|
||||
ex_unit: "https://hexdocs.pm/ex_unit/#{canonical}",
|
||||
iex: "https://hexdocs.pm/iex/#{canonical}",
|
||||
logger: "https://hexdocs.pm/logger/#{canonical}",
|
||||
mix: "https://hexdocs.pm/mix/#{canonical}"
|
||||
eex: "https://eex.hexdocs.pm/#{canonical}",
|
||||
elixir: "https://elixir.hexdocs.pm/#{canonical}",
|
||||
ex_unit: "https://ex-unit.hexdocs.pm/#{canonical}",
|
||||
iex: "https://iex.hexdocs.pm/#{canonical}",
|
||||
logger: "https://logger.hexdocs.pm/#{canonical}",
|
||||
mix: "https://mix.hexdocs.pm/#{canonical}"
|
||||
],
|
||||
formatters: ["html", "markdown", "epub"],
|
||||
before_closing_body_tag: fn
|
||||
|
||||
Reference in New Issue
Block a user