Skip to content

Commit a2d808e

Browse files
committed
add s3_website for publishing to s3
1 parent 32bba89 commit a2d808e

12 files changed

+141
-13
lines changed

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
/docs
33
/tmp
44
/.sass-cache
5+
/.env

Diff for: CNAME

-1
This file was deleted.

Diff for: Gemfile

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
source 'https://rubygems.org'
22

3-
gem 'jekyll', '3.2.0.pre.beta1'
3+
gem 'dotenv'
4+
gem 'jekyll'
5+
gem 'kramdown'
6+
gem 'nokogumbo'
47
gem 'oga'
58
gem 'pry-byebug'
6-
gem 'kramdown'
79
gem 'rugged'
8-
gem 'nokogumbo'
10+
gem 's3_website'

Diff for: Gemfile.lock

+35-8
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,31 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4+
addressable (2.5.0)
5+
public_suffix (~> 2.0, >= 2.0.2)
46
ansi (1.5.0)
57
ast (2.3.0)
8+
aws-sdk (2.6.32)
9+
aws-sdk-resources (= 2.6.32)
10+
aws-sdk-core (2.6.32)
11+
aws-sigv4 (~> 1.0)
12+
jmespath (~> 1.0)
13+
aws-sdk-resources (2.6.32)
14+
aws-sdk-core (= 2.6.32)
15+
aws-sigv4 (1.0.0)
616
byebug (9.0.5)
717
coderay (1.1.1)
818
colorator (1.1.0)
9-
ffi (1.9.14)
19+
colored (1.2)
20+
configure-s3-website (1.7.5)
21+
aws-sdk (~> 2)
22+
deep_merge (~> 1.0.0)
23+
deep_merge (1.0.1)
24+
dotenv (1.0.2)
25+
ffi (1.9.17)
1026
forwardable-extended (2.6.0)
11-
jekyll (3.2.0.pre.beta1)
27+
jekyll (3.3.1)
28+
addressable (~> 2.4)
1229
colorator (~> 1.0)
1330
jekyll-sass-converter (~> 1.0)
1431
jekyll-watch (~> 1.1)
@@ -18,11 +35,12 @@ GEM
1835
pathutil (~> 0.9)
1936
rouge (~> 1.7)
2037
safe_yaml (~> 1.0)
21-
jekyll-sass-converter (1.4.0)
38+
jekyll-sass-converter (1.5.0)
2239
sass (~> 3.4)
23-
jekyll-watch (1.4.0)
40+
jekyll-watch (1.5.0)
2441
listen (~> 3.0, < 3.1)
25-
kramdown (1.13.1)
42+
jmespath (1.3.1)
43+
kramdown (1.13.2)
2644
liquid (3.0.6)
2745
listen (3.0.8)
2846
rb-fsevent (~> 0.9, >= 0.9.4)
@@ -46,28 +64,37 @@ GEM
4664
pry-byebug (3.4.0)
4765
byebug (~> 9.0)
4866
pry (~> 0.10)
49-
rb-fsevent (0.9.7)
67+
public_suffix (2.0.5)
68+
rb-fsevent (0.9.8)
5069
rb-inotify (0.9.7)
5170
ffi (>= 0.5.0)
5271
rouge (1.11.1)
5372
ruby-ll (2.1.2)
5473
ansi
5574
ast
5675
rugged (0.21.0)
76+
s3_website (2.16.0)
77+
colored (= 1.2)
78+
configure-s3-website (= 1.7.5)
79+
dotenv (~> 1.0)
80+
thor (~> 0.18)
5781
safe_yaml (1.0.4)
58-
sass (3.4.22)
82+
sass (3.4.23)
5983
slop (3.6.0)
84+
thor (0.19.4)
6085

6186
PLATFORMS
6287
ruby
6388

6489
DEPENDENCIES
65-
jekyll (= 3.2.0.pre.beta1)
90+
dotenv
91+
jekyll
6692
kramdown
6793
nokogumbo
6894
oga
6995
pry-byebug
7096
rugged
97+
s3_website
7198

7299
BUNDLED WITH
73100
1.13.6

Diff for: _config.yml

+8
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,11 @@ defaults:
1515
-
1616
values:
1717
layout: "default"
18+
exclude:
19+
- README.md
20+
- Gemfile
21+
- Gemfile.lock
22+
- s3_website.yml
23+
- tmp
24+
- lib
25+
- bin

Diff for: _includes/footer.html

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<footer>
22
<div class="container">
3-
<p><small>something...</small></p>
43
</div>
54
</footer>

Diff for: bin/aws.rb

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env ruby
2+
# frozen_string_literal: true
3+
#
4+
# This file was generated by Bundler.
5+
#
6+
# The application 'aws.rb' is installed as part of a gem, and
7+
# this file is here to facilitate running it.
8+
#
9+
10+
require "pathname"
11+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
12+
Pathname.new(__FILE__).realpath)
13+
14+
require "rubygems"
15+
require "bundler/setup"
16+
17+
load Gem.bin_path("aws-sdk-core", "aws.rb")

Diff for: bin/configure-s3-website

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env ruby
2+
# frozen_string_literal: true
3+
#
4+
# This file was generated by Bundler.
5+
#
6+
# The application 'configure-s3-website' is installed as part of a gem, and
7+
# this file is here to facilitate running it.
8+
#
9+
10+
require "pathname"
11+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
12+
Pathname.new(__FILE__).realpath)
13+
14+
require "rubygems"
15+
require "bundler/setup"
16+
17+
load Gem.bin_path("configure-s3-website", "configure-s3-website")

Diff for: bin/dotenv

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env ruby
2+
# frozen_string_literal: true
3+
#
4+
# This file was generated by Bundler.
5+
#
6+
# The application 'dotenv' is installed as part of a gem, and
7+
# this file is here to facilitate running it.
8+
#
9+
10+
require "pathname"
11+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
12+
Pathname.new(__FILE__).realpath)
13+
14+
require "rubygems"
15+
require "bundler/setup"
16+
17+
load Gem.bin_path("dotenv", "dotenv")

Diff for: bin/s3_website

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env ruby
2+
# frozen_string_literal: true
3+
#
4+
# This file was generated by Bundler.
5+
#
6+
# The application 's3_website' is installed as part of a gem, and
7+
# this file is here to facilitate running it.
8+
#
9+
10+
require "pathname"
11+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
12+
Pathname.new(__FILE__).realpath)
13+
14+
require "rubygems"
15+
require "bundler/setup"
16+
17+
load Gem.bin_path("s3_website", "s3_website")

Diff for: bin/thor

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env ruby
2+
# frozen_string_literal: true
3+
#
4+
# This file was generated by Bundler.
5+
#
6+
# The application 'thor' is installed as part of a gem, and
7+
# this file is here to facilitate running it.
8+
#
9+
10+
require "pathname"
11+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
12+
Pathname.new(__FILE__).realpath)
13+
14+
require "rubygems"
15+
require "bundler/setup"
16+
17+
load Gem.bin_path("thor", "thor")

Diff for: s3_website.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
s3_id: <%= ENV['AWS_ACCESS_KEY_ID'] %>
2+
s3_secret: <%= ENV['AWS_SECRET_ACCESS_KEY'] %>
3+
s3_bucket: errbit.com
4+
gzip:
5+
- .html
6+
- .css
7+
- .js

0 commit comments

Comments
 (0)