From d61770c77259efec21112b4f6bf04da3a6679f87 Mon Sep 17 00:00:00 2001 From: Jordan Bancino Date: Sat, 19 Nov 2022 23:15:08 +0000 Subject: [PATCH] Make mandoc link to man pages Now web users can just click on the references and be taken to that page. Unfortunately this generates a lot of broken links as well, for example all the times I like to a system manual page that I don't copy to the web server. --- tools/bin/td | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/bin/td b/tools/bin/td index b0401bd..77ed797 100644 --- a/tools/bin/td +++ b/tools/bin/td @@ -165,7 +165,7 @@ recipe_site() { html=$(basename "$man") mkdir -p "$TELODENDRIA_PUB/$dir/" - mandoc -Thtml -O style=/style.css "$man" > "$TELODENDRIA_PUB/$dir/$html.html" + mandoc -Thtml -O style=/style.css,man=/man/man%S/%N.%S.html "$man" > "$TELODENDRIA_PUB/$dir/$html.html" echo "$man -> $TELODENDRIA_PUB/$dir/$html.html" done }