Merge pull request #11 from ssebs/patch-1

Add PDF Output
This commit is contained in:
Nemo 2018-08-07 17:09:45 +05:30 committed by GitHub
commit 549263447e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -2,7 +2,7 @@
![Cover](cover.jpg)
Generates a EPUB/MOBI for the Google SRE Book.
Generates a EPUB/MOBI/PDF for the Google SRE Book.
Original sources are downloaded from https://landing.google.com/sre/
@ -16,14 +16,14 @@ Requirements:
`docker run --rm --volume "$(pwd):/output" captn3m0/google-sre-ebook:latest`
- You should see the final EPUB/MOBI files in the `output` directory after the above runs.
- You should see the final EPUB/MOBI/PDF files in the `output` directory after the above runs.
- The file may be owned by the root user.
The build for the above Docker image can be audited at <https://cloud.docker.com/swarm/captn3m0/repository/docker/captn3m0/google-sre-ebook/builds>.
## macOS
Review and run the `bootstrap.sh` script to generate the EPUB and MOBI files
Review and run the `bootstrap.sh` script to generate the EPUB, MOBI, and PDF files
Requirements:

View File

@ -21,6 +21,7 @@ pushd html/chapters
pandoc -f html -t epub -o ../../google-sre.epub --epub-metadata=../../metadata.xml --epub-cover-image=../../cover.jpg sre.html
popd
ebook-convert google-sre.epub google-sre.mobi
ebook-convert google-sre.epub google-sre.pdf
if [ "$1"=="docker" ]; then
chown -v $(id -u):$(id -g) google-sre.*