aboutsummaryrefslogtreecommitdiff
path: root/site
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2023-10-18 19:29:55 +0000
committerOmar Polo <op@omarpolo.com>2023-10-18 19:29:55 +0000
commit4d51ac4f4ad40a3ad7d3176d397fa77defdb13c4 (patch)
tree11588a4408334b53fca0c0061c492577a7b65697 /site
parentdba9907a710f5a0105ec753a27529e90e7cde3d5 (diff)
sync manpages; tweak the HTML conversion
Diffstat (limited to 'site')
-rw-r--r--site/Makefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/site/Makefile b/site/Makefile
index 8bca593..3723e72 100644
--- a/site/Makefile
+++ b/site/Makefile
@@ -1,6 +1,8 @@
-MANPAGES = ../gmid.1 \
- ../gmid.conf.5 \
- ../gg.1
+MANPAGES = gemexp.1 \
+ gg.1 \
+ gmid.conf.5 \
+ gmid.8 \
+ titan.1
PAGES = index.gmi \
changelog.gmi \
@@ -36,9 +38,12 @@ all: dirs manpages pages
dirs:
mkdir -p gemini www
+MANOPTS = -Oman='%N.%S.html;https://man.openbsd.org/%N.%S',style=mandoc.css
+
manpages:
.for m in ${MANPAGES}
- man -Thtml -Ostyle=mandoc.css $m > www/${m:T}.html
+ @echo generating www/${m:T}.html
+ cd .. && man -Thtml ${MANOPTS} -l $m > site/www/${m:T}.html
man -O width=65 -Tutf8 -l $m | col -b > gemini/${m:T}.txt
.endfor