Skip to content

Commit

Permalink
Alleen pdf printen
Browse files Browse the repository at this point in the history
  • Loading branch information
jgroenen committed Nov 14, 2024
1 parent 36b6768 commit cc7bf51
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 31 deletions.
2 changes: 2 additions & 0 deletions nl/standard-print.html
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,11 @@ <h1>Criteria</h1>
{% assign page = pages | where: "name", "GOVERNANCE.md" | first %}
{% if page %}<article id="section-governance">{{page.content | markdownify}}</article>{% endif %}

{% comment %}
<figure>
<img src="https://www.standardforpubliccode.org/assets/eco-system.svg" alt="ecosystem">
</figure>
{% endcomment %}

{% comment %}
{% assign page = pages | where: "name", "CHANGELOG.md" | first %}
Expand Down
62 changes: 31 additions & 31 deletions script/pdf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,11 @@ weasyprint --presentational-hints \
standaard-voor-publieke-code-$VERSION.pdf
ls -l standaard-voor-publieke-code-$VERSION.pdf

echo
weasyprint --presentational-hints \
"http://localhost:$JEKYLL_PDF_PORT/nl/foreword-print.html" \
standaard-voor-publieke-code-foreword-$VERSION.pdf
ls -l standaard-voor-publieke-code-foreword-$VERSION.pdf
#echo
#weasyprint --presentational-hints \
# "http://localhost:$JEKYLL_PDF_PORT/nl/foreword-print.html" \
# standaard-voor-publieke-code-foreword-$VERSION.pdf
#ls -l standaard-voor-publieke-code-foreword-$VERSION.pdf

echo
weasyprint --presentational-hints \
Expand All @@ -134,42 +134,42 @@ ls -l standaard-cover-$VERSION.pdf
# standard-checklist-$VERSION.pdf
#ls -l standard-checklist-$VERSION.pdf

echo
if ! pdfjam --version ; then
echo "'pdfjam' not installed, skipping print versions"
echo "'pdfjam' should be available from the package manager, e.g.:"
echo
echo " sudo apt install -y texlive-extra-utils"
echo
else
#echo
#if ! pdfjam --version ; then
# echo "'pdfjam' not installed, skipping print versions"
# echo "'pdfjam' should be available from the package manager, e.g.:"
# echo
# echo " sudo apt install -y texlive-extra-utils"
# echo
#else
#pdfjam standard-checklist-$VERSION.pdf \
# '4,1-3' \
# --trim "-0.6cm -0.6cm -0.6cm -0.6cm" \
# --nup 2x1 --landscape \
# --papersize '{216mm,303mm}' \
# --outfile standard-checklist-folded-$VERSION.pdf

pdfjam \
standaard-voor-publieke-code-voorwoord-$VERSION.pdf \
standaard-voor-publieke-code-$VERSION.pdf \
--outfile standaard-voor-publieke-code-print-$VERSION.pdf
#pdfjam \
# standaard-voor-publieke-code-voorwoord-$VERSION.pdf \
# standaard-voor-publieke-code-$VERSION.pdf \
# --outfile standaard-voor-publieke-code-print-$VERSION.pdf

#ls -l standard-checklist-folded-$VERSION.pdf
ls -l standaard-voor-publieke-code-print-$VERSION.pdf
fi
#ls -l standaard-voor-publieke-code-print-$VERSION.pdf
#fi

echo
if ! pandoc --version ; then
echo "'pandoc' not installed, skipping .epub version"
echo "'pandoc' should be available from the package manager, e.g.:"
echo
echo " sudo apt install -y pandoc"
echo
else
pandoc $JEKYLL_PDF_DIR/nl/standard-print.html \
-o standaard-voor-publieke-code-$VERSION.epub
ls -l standaard-voor-publieke-code-$VERSION.epub
fi
#echo
#if ! pandoc --version ; then
# echo "'pandoc' not installed, skipping .epub version"
# echo "'pandoc' should be available from the package manager, e.g.:"
# echo
# echo " sudo apt install -y pandoc"
# echo
#else
# pandoc $JEKYLL_PDF_DIR/nl/standard-print.html \
# -o standaard-voor-publieke-code-$VERSION.epub
# ls -l standaard-voor-publieke-code-$VERSION.epub
#fi

echo
temp_weasyprint_info
Expand Down

0 comments on commit cc7bf51

Please sign in to comment.