misc: use mandoc to markdown default tip @

Mon, 07 Jun 2021 21:42:09 +0200

author
David Demelier <markand@malikania.fr>
date
Mon, 07 Jun 2021 21:42:09 +0200
changeset 1
30a1f29b3316
parent 0
d450dddcd926

misc: use mandoc to markdown

Makefile file | annotate | diff | comparison | revisions
index.md file | annotate | diff | comparison | revisions
--- a/Makefile	Mon Jun 07 21:32:05 2021 +0200
+++ b/Makefile	Mon Jun 07 21:42:09 2021 +0200
@@ -27,7 +27,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}
@@ -46,7 +46,7 @@
 	${PANDOC} ${PANDOC_FLAGS} -o $@ $<
 
 .3.html:
-	${MANDOC} < $< ${MANDOC_HTML} > $@
+	${MANDOC} < $< ${MANDOC_MD} | ${PANDOC} ${PANDOC_FLAGS} -M title=${<F} -o $@
 
 .3.pdf:
 	${MANDOC} < $< ${MANDOC_PDF} > $@
--- a/index.md	Mon Jun 07 21:32:05 2021 +0200
+++ b/index.md	Mon Jun 07 21:42:09 2021 +0200
@@ -6,7 +6,7 @@
 ========================================
 
 The `libbase64` is a minimal C library to decode and encore base64 in pure C89.
-It does not depend on anything no portable except C standard library.
+It does not depend on anything not portable except C standard library.
 
 It consists of:
 

mercurial