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: 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.*