From c66edfe707898f42dbc5885d67e39a1aeca03d5e Mon Sep 17 00:00:00 2001 From: Sebastian Safari Date: Fri, 3 Aug 2018 08:00:12 -0700 Subject: [PATCH 1/2] Include PDF output --- bootstrap.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/bootstrap.sh b/bootstrap.sh index 2e4cfed..159fa50 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -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.* From 77d113c8db03a6e15a198babca7cf1e0b61169f8 Mon Sep 17 00:00:00 2001 From: Sebastian Safari Date: Fri, 3 Aug 2018 08:02:20 -0700 Subject: [PATCH 2/2] Add pdf to the readme --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8bfac64..3cb5f1f 100644 --- a/README.md +++ b/README.md @@ -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 . ## 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: