Initial commit

This commit is contained in:
Nemo 2017-09-16 21:52:31 +05:30
commit 935b636d23
7 changed files with 69 additions and 0 deletions

21
.editorconfig Normal file
View File

@ -0,0 +1,21 @@
;
; Global Editor Config for Adaptive Labbers
;
; This is an ini style configuration. See http://editorconfig.org/ for more information on this file.
;
; Top level editor config.
root = true
; Always use Unix style new lines with new line ending on every file and trim whitespace
[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
; Python: PEP8 defines 4 spaces for indentation
[*.py]
indent_style = space
indent_size = 4
; Salt state files, YAML format, 2 spaces
[*.sls, *.yaml, *.yml, *.rb]
indent_style = space
indent_size = 2

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
html/
.direnv

4
Gemfile Normal file
View File

@ -0,0 +1,4 @@
# frozen_string_literal: true
source "https://rubygems.org"
gem 'nokogiri'

15
Gemfile.lock Normal file
View File

@ -0,0 +1,15 @@
GEM
remote: https://rubygems.org/
specs:
mini_portile2 (2.2.0)
nokogiri (1.8.0)
mini_portile2 (~> 2.2.0)
PLATFORMS
ruby
DEPENDENCIES
nokogiri
BUNDLED WITH
1.15.4

15
README.md Normal file
View File

@ -0,0 +1,15 @@
# google-sre-ebook
![Cover](cover.jpg)
Generates a EPUB for the Google SRE Book.
Original sources are downloaded from https://landing.google.com/sre/
Review and run the `bootstrap.sh` script to generate the EPUB.
**Note**: Currently relies on python2 and pip to install dependencies
and does not setup a virtualenv. Please review the script and edit
as per your needs. If you have [direnv](https://direnv.net/)
installed, it will set up the virtualenv for you after you run
`direnv allow`.

12
bootstrap.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
mkdir -p html
cd html
wget --mirror https://landing.google.com/sre/book/
mv landing.google.com/sre/book/* .
rm -rf landing.google.com
cd ..
bundle install
ruby generate.rb

BIN
cover.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB