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.
This commit is contained in:
kleines Filmröllchen 2022-01-10 22:28:43 +01:00 committed by Linus Groh
commit 9e471353dd
Notes: sideshowbarker 2024-07-17 21:14:05 +09:00
4 changed files with 13 additions and 1 deletions

View file

@ -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