summaryrefslogtreecommitdiff
path: root/Meta/convert-markdown-links.lua
diff options
context:
space:
mode:
authorkleines Filmröllchen <malu.bertsch@gmail.com>2022-01-10 22:28:43 +0100
committerLinus Groh <mail@linusgroh.de>2022-01-11 00:24:57 +0100
commit9e471353dda33cf9de5584287b4a18ed0085c7df (patch)
tree0da5183c5aaf780812f5b0225b91d718d1373820 /Meta/convert-markdown-links.lua
parent98c0c5e9e65c1ef42f6a3a1da2726950ac79c560 (diff)
downloadserenity-9e471353dda33cf9de5584287b4a18ed0085c7df.zip
Meta: Convert new help page link styles for the man page website
The special URL links (help://man) and the application opening links now work on the man page website. While the page links are translated correctly, the application launch can't be implemented. For this reason, an explanatory error page is shown instead.
Diffstat (limited to 'Meta/convert-markdown-links.lua')
-rw-r--r--Meta/convert-markdown-links.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/Meta/convert-markdown-links.lua b/Meta/convert-markdown-links.lua
index 0a1800b23d..30ed1059fe 100644
--- a/Meta/convert-markdown-links.lua
+++ b/Meta/convert-markdown-links.lua
@@ -1,4 +1,5 @@
function Link(el)
- el.target = string.gsub(el.target, "%.md", ".html") -- change .md to .html links
+ el.target = string.gsub(el.target, "file:///bin/.*", "../cant-run-application.html")
+ el.target = string.gsub(el.target, "help://man/([^/]*)/(.*)", "../man%1/%2.html")
return el
end