change manual page styles default tip

Thu, 17 Dec 2020 12:29:23 +0100

author
David Demelier <markand@malikania.fr>
date
Thu, 17 Dec 2020 12:29:23 +0100
changeset 5
1b128d430637
parent 4
fc87d1928dab

change manual page styles

Makefile file | annotate | diff | comparison | revisions
--- a/Makefile	Thu Dec 17 11:23:51 2020 +0100
+++ b/Makefile	Thu Dec 17 12:29:23 2020 +0100
@@ -29,7 +29,7 @@
 PANDOC=         pandoc
 PANDOC_FLAGS=   -f markdown -t html5 --no-highlight --template templates/template.html
 MANDOC=         mandoc
-MANDOC_HTML=    -T html -O man=%N.html
+MANDOC_MD=      -T markdown
 MANDOC_PDF=     -T pdf
 DIST=           ${PROJECT}-${VERSION}.tar.xz
 WRKDIR=         ${PROJECT}-${VERSION}
@@ -51,9 +51,9 @@
 	${PANDOC} ${PANDOC_FLAGS} -o $@ $<
 
 .1.html:
-	${MANDOC} < $< ${MANDOC_HTML} > $@
+	${MANDOC} < $< ${MANDOC_MD} | ${PANDOC} ${PANDOC_FLAGS} -M title=${<F} -o $@
 .8.html:
-	${MANDOC} < $< ${MANDOC_HTML} > $@
+	${MANDOC} < $< ${MANDOC_MD} | ${PANDOC} ${PANDOC_FLAGS} -M title=${<F} -o $@
 
 .1.pdf:
 	${MANDOC} < $< ${MANDOC_PDF} > $@

mercurial