Go to file
Nemo 577b0bf25c Easier Docker workflow 2018-05-17 01:54:54 +05:30
.dockerignore Easier Docker workflow 2018-05-17 01:54:54 +05:30
.editorconfig Initial commit 2017-09-16 21:52:31 +05:30
.gitignore Upgrades pandoc --smart syntax 2018-01-01 19:09:42 +05:30
COPYING Adds License 2017-09-16 23:22:58 +05:30
Dockerfile Easier Docker workflow 2018-05-17 01:54:54 +05:30
Gemfile Initial commit 2017-09-16 21:52:31 +05:30
Gemfile.lock [deps] Updates nokogiri 2018-01-01 19:24:04 +05:30
README.md Easier Docker workflow 2018-05-17 01:54:54 +05:30
bootstrap.sh Easier Docker workflow 2018-05-17 01:54:54 +05:30
cover.jpg Initial commit 2017-09-16 21:52:31 +05:30
generate.rb Working script in ruby 2017-09-16 23:15:59 +05:30
metadata.xml Working script in ruby 2017-09-16 23:15:59 +05:30

README.md

google-sre-ebook

Cover

Generates a EPUB/MOBI for the Google SRE Book.

Original sources are downloaded from https://landing.google.com/sre/

Build

Docker (Preferred)

Requirements:

  • Docker

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.
  • 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

Requirements:

  • Ruby
  • gem install bundler
  • gem install nokogiri
  • brew install pandoc
  • brew cask install calibre
  • brew install wget

Known Issues

  • Inline references are not handled in the best possible way
  • metadata.xml is not complete. There are just too many authors
  • Foreword/Preface is not part of the index

LICENSE

This is licensed under WTFPL. See COPYING file for the full text.