Skip to content

Commit

Permalink
PDF spec generation script fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
SethTisue committed Feb 12, 2019
1 parent 8a4ecf6 commit caadc3e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/generate-spec-pdf.sh 100644 → 100755
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/usr/bin/env bash -e

# NOTES:
# "toc" -> treated just like another page, its location can be changed
Expand All @@ -9,6 +9,8 @@ ROOT_DIR=$THIS_SCRIPT_DIR/..
SPEC_SRC_DIR=$ROOT_DIR/spec
SPEC_BUILD_DIR=$ROOT_DIR/build/spec

mkdir -p $SPEC_BUILD_DIR

WKHTML_OPTS='--print-media-type --window-status loaded --footer-center [page] --javascript-delay 1000 --footer-font-name "Luxi Sans"'
WKHTML_TOC="toc --xsl-style-sheet $SPEC_SRC_DIR/spec-toc.xslt"

Expand All @@ -19,4 +21,4 @@ echo "Making Spec.pdf with HTML files: "
echo $SPEC_BUILD_DIR/index.html $HTML_FILES
# first goes index.html, then TOC, then rest
wkhtmltopdf $WKHTML_OPTS $SPEC_BUILD_DIR/index.html $WKHTML_TOC $HTML_FILES $SPEC_BUILD_DIR/Spec.pdf
wkhtmltopdf $WKHTML_OPTS $SPEC_BUILD_DIR/index.html $WKHTML_TOC $HTML_FILES $SPEC_BUILD_DIR/Spec.pdf

0 comments on commit caadc3e

Please sign in to comment.