Initial commit
This commit is contained in:
commit
935b636d23
|
@ -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
|
|
@ -0,0 +1,2 @@
|
||||||
|
html/
|
||||||
|
.direnv
|
|
@ -0,0 +1,4 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
source "https://rubygems.org"
|
||||||
|
|
||||||
|
gem 'nokogiri'
|
|
@ -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
|
|
@ -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`.
|
|
@ -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
|
Loading…
Reference in New Issue