aboutsummaryrefslogtreecommitdiff
path: root/.build.yml
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2020-10-25 14:14:40 -0600
committerMelody Horn <melody@boringcactus.com>2020-10-25 14:14:40 -0600
commitee99902feaf62a60d006a5187815bdf4aa45e8b7 (patch)
treeafbbda16b14ee7401f6c57d5580d9d5473c97b14 /.build.yml
parent438deebf05347dc79797b1c476da0e65c0a5346f (diff)
downloadspec-ee99902feaf62a60d006a5187815bdf4aa45e8b7.tar.gz
spec-ee99902feaf62a60d006a5187815bdf4aa45e8b7.zip
build both HTML and PDF distributions
Diffstat (limited to '.build.yml')
-rw-r--r--.build.yml13
1 files changed, 10 insertions, 3 deletions
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