We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 631200f commit 1c911cdCopy full SHA for 1c911cd
lib/ex_union/docs.ex
@@ -1,6 +1,7 @@
1
defmodule ExUnion.Docs do
2
@moduledoc false
3
4
+ @repo "https://github.com/sascha-wolf/ex_union/blob/main"
5
def massage_readme(path, for: module) do
6
path
7
|> File.read!()
@@ -23,6 +24,8 @@ defmodule ExUnion.Docs do
23
24
|> String.replace(~r/\(#([^\)]+)\)/, "(#module-\\1)")
25
# Adjust the code links to work on hexdocs.pm
26
|> String.replace(~r/\[(.+?)\]\[code:.+?\]/, "\\1")
27
+ # Adjust GitHub local links to work on hexdocs.pm
28
+ |> String.replace(~r|\(./(.*?)\)|, "(#{@repo}/\\1)")
29
# Replace TODO-style boxes from list items
30
|> String.replace("- [ ]", "- ◻")
31
|> String.replace("- [x]", "- ✔")
0 commit comments