mb
2 years ago
commit
b034936e44
2 changed files with 57 additions and 0 deletions
@ -0,0 +1,34 @@ |
|||
@page { |
|||
size: a4; |
|||
margin: 10mm 5mm; |
|||
background-color: white; |
|||
} |
|||
body { |
|||
background-color: white !important; |
|||
} |
|||
|
|||
header, |
|||
.buttons, |
|||
.paginator{ |
|||
display: none; |
|||
} |
|||
.hentry.current, |
|||
.hentry.article, |
|||
.hentry.artikel, |
|||
.hentry.current .article-info, |
|||
.hentry.current .featured-image img { |
|||
width: 55mm; |
|||
} |
|||
section#content{ |
|||
margin-top: 0 !important; |
|||
} |
|||
article { |
|||
width: 55mm !important; |
|||
margin: 0 3mm 0 0; |
|||
} |
|||
.hentry.workshops.current { |
|||
} |
|||
article .featured-image img { |
|||
width: 55mm !important; |
|||
display: block; |
|||
} |
@ -0,0 +1,23 @@ |
|||
#!/bin/bash |
|||
|
|||
echo "---" |
|||
echo "turning https://varia.zone/index.html into varia-activities-01.pdf" |
|||
echo "---" |
|||
weasyprint https://varia.zone/ -s varia-to-print.css varia-activities-01.pdf |
|||
|
|||
for i in 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
|||
do |
|||
echo "---" |
|||
echo "turning https://varia.zone/index$i.html into varia-activities-$(printf %02d $i).pdf" |
|||
echo "---" |
|||
weasyprint https://varia.zone/index$i.html -s varia-to-print.css varia-activities-$(printf %02d $i).pdf |
|||
done |
|||
|
|||
echo "---" |
|||
echo "glueing everything together into varia-activities-since-2017.pdf" |
|||
echo "---" |
|||
pdfunite varia-activities-*pdf varia-activities-since-2017.pdf |
|||
|
|||
echo "---" |
|||
echo "done!" |
|||
echo "---" |
Loading…
Reference in new issue