commit
549263447e
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
![Cover](cover.jpg)
|
![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/
|
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`
|
`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 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>.
|
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
|
## 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:
|
Requirements:
|
||||||
|
|
||||||
|
|
|
@ -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
|
pandoc -f html -t epub -o ../../google-sre.epub --epub-metadata=../../metadata.xml --epub-cover-image=../../cover.jpg sre.html
|
||||||
popd
|
popd
|
||||||
ebook-convert google-sre.epub google-sre.mobi
|
ebook-convert google-sre.epub google-sre.mobi
|
||||||
|
ebook-convert google-sre.epub google-sre.pdf
|
||||||
|
|
||||||
if [ "$1"=="docker" ]; then
|
if [ "$1"=="docker" ]; then
|
||||||
chown -v $(id -u):$(id -g) google-sre.*
|
chown -v $(id -u):$(id -g) google-sre.*
|
||||||
|
|
Loading…
Reference in New Issue