diff options
author | Melody Horn <melody@boringcactus.com> | 2020-10-25 14:14:40 -0600 |
---|---|---|
committer | Melody Horn <melody@boringcactus.com> | 2020-10-25 14:14:40 -0600 |
commit | ee99902feaf62a60d006a5187815bdf4aa45e8b7 (patch) | |
tree | afbbda16b14ee7401f6c57d5580d9d5473c97b14 /.build.yml | |
parent | 438deebf05347dc79797b1c476da0e65c0a5346f (diff) | |
download | spec-ee99902feaf62a60d006a5187815bdf4aa45e8b7.tar.gz spec-ee99902feaf62a60d006a5187815bdf4aa45e8b7.zip |
build both HTML and PDF distributions
Diffstat (limited to '.build.yml')
-rw-r--r-- | .build.yml | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -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 |