1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:17:45 +00:00

man.serenityos.org: Fix links to man(1), avoid unnecessary shells

This fixes the current bug at the end of less(1), which links to the
wrong file ".html" instead of "man.html".
This commit is contained in:
Ben Wiederhake 2021-10-20 21:46:39 +02:00 committed by Idan Horowitz
parent 7e52b6fa24
commit 2e613db999
2 changed files with 12 additions and 12 deletions

View file

@ -1,5 +1,4 @@
function Link(el)
el.target = string.gsub(el.target, "%.md", ".html") -- change .md to .html links
el.target = string.gsub(el.target, "man", "", 1) -- change man1/???.html to 1/???.html links
return el
end