aboutsummaryrefslogtreecommitdiff
path: root/.build.yml
diff options
context:
space:
mode:
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