Skip to content

Commit

Permalink
Merge pull request #514 from RichDom2185/week13/fix-pdf-auto-build
Browse files Browse the repository at this point in the history
Fix PDF building script
  • Loading branch information
RichDom2185 authored Nov 6, 2022
2 parents 306a6ba + 5cf4e21 commit 15520dd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions docs/make-pdf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ mkdir -p release
bundle exec jekyll build
SHA="$(docker run --rm -dit -p 8080:80 -v "$(pwd)/_site":/usr/local/apache2/htdocs/ httpd:2.4)"

alias makepdf="docker run --network host --rm -v $(pwd):/data michaelperrin/prince --javascript"
makepdf -o /data/release/DeveloperGuide.pdf http://localhost:8080/DeveloperGuide.html
makepdf -o /data/release/UserGuide.pdf http://localhost:8080/UserGuide.html
unalias makepdf
docker run --network host --rm -v $(pwd):/data michaelperrin/prince --javascript -o /data/release/DeveloperGuide.pdf http://localhost:8080/DeveloperGuide.html
docker run --network host --rm -v $(pwd):/data michaelperrin/prince --javascript -o /data/release/UserGuide.pdf http://localhost:8080/UserGuide.html

docker stop "$SHA"

0 comments on commit 15520dd

Please sign in to comment.