chiark / gitweb /
pdfs from md
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 6 Nov 2021 17:38:13 +0000 (17:38 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 6 Nov 2021 17:38:13 +0000 (17:38 +0000)
.gitignore
Makefile

index b4c139471a01412e522b836c4674a65e8167f8b0..41964d59ad17589d66c14346977022950061dbd8 100644 (file)
@@ -6,3 +6,4 @@ droplet.ppm
 *.tmp.*
 *.md.txt
 *.md.html
+*.md.pdf
index 17465b0c384415d407c3f22b9e8473425223422a..575f7c0f2d7a6db1dfb34eedf08c1ff30da1c07e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,7 @@ PUBLISH_MD += pumpkin-books house-rules
 PUBLISH += pumpkin-books.pdf 
 PUBLISH += $(addsuffix .md.txt,  $(PUBLISH_MD))
 PUBLISH += $(addsuffix .md.html, $(PUBLISH_MD))
+PUBLISH += $(addsuffix .md.pdf,  $(PUBLISH_MD))
 
 SHELL=bash
 
@@ -54,6 +55,9 @@ PUBLISH_FILES= \
 %.md.html: %.md Makefile
        pandoc -s $< $o
 
+%.md.pdf: %.md Makefile
+       pandoc --pdf-engine=wkhtmltopdf -o $@ $<
+
 pubssh=c
 pubpath=games-rules/quacks
 puburl=https://www.chiark.greenend.org.uk/~ijackson/