From 4708b1750f705155c557cf9ca3f2b03967c47696 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Tue, 12 Jan 2021 16:55:34 -0500 Subject: Use mandoc and htagml for bin html --- bin/html.sh | 65 ++++++++++++++++++++++++++++++++++++++++++------------------- 1 file changed, 45 insertions(+), 20 deletions(-) (limited to 'bin/html.sh') diff --git a/bin/html.sh b/bin/html.sh index e96a7210..600d37f5 100644 --- a/bin/html.sh +++ b/bin/html.sh @@ -10,32 +10,57 @@ cat < ${src} -${src} in git EOF -[ -f "$man" ] && man -P cat "${PWD}/${man}" | ./ttpre -./hi -t -f html -o anchor "$src" +opts='fragment' +[ "${man}" = "README.7" ] && opts="${opts},man=%N.html" +mandoc -T html -O "${opts}" "${man}" +cat < +${src} in git +EOF +./htagml -p -f htmltags "${src}" -- cgit 1.4.1