From ee99902feaf62a60d006a5187815bdf4aa45e8b7 Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Sun, 25 Oct 2020 14:14:40 -0600 Subject: build both HTML and PDF distributions --- .build.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to '.build.yml') diff --git a/.build.yml b/.build.yml index 73562ea..9f036aa 100644 --- a/.build.yml +++ b/.build.yml @@ -1,15 +1,22 @@ -image: debian/stable +image: debian/testing packages: - pandoc - - wkhtmltopdf + - weasyprint - poppler-utils sources: - https://git.sr.ht/~boringcactus/crowbar-spec tasks: - page-count: | cd crowbar-spec - pandoc -s -o ../spec.pdf -t html -M "title=Crowbar Specification" *.md + files="index vs-c tagged-unions types safety errors syntax" + for file in $files + do + pandoc --defaults=etc/md.yml -o $file.html $file.md + done + pandoc --defaults=etc/pdf.yml -o ../spec.pdf *.html cd .. pdfinfo spec.pdf | grep Pages + tar czvf spec-html.tar.gz crowbar-spec/*.html artifacts: - spec.pdf + - spec-html.tar.gz -- cgit v1.2.3