-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.rb
49 lines (41 loc) · 1.25 KB
/
config.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
activate :livereload
set :css_dir, 'stylesheets'
set :js_dir, 'javascripts'
set :images_dir, 'images'
set :markdown_engine, :redcarpet
set :markdown, { fenced_code_blocks: true, smartypants: true }
data.games.each do |id, game|
proxy("/game/#{id}.html", "/game/index.html", :locals => { id: id, game: game })
end
data.people.each do |id, person|
proxy("/person/#{person.nick.downcase}.html", "/person/index.html", :locals => { id: id, person: person})
end
ignore "/game/index.html"
ignore "/person/index.html"
page "/bogus_quest.html", layout: "flash"
page "/gusher2.html", layout: "flash"
page "/hacktile.html", layout: "flash"
page "/doctor_squad.html", layout: "flash"
page "/plenty_of_fish.html", layout: "flash"
page "/birds.html", layout: "flash"
page "/ourobash.html", layout: "flash"
case ENV['TARGET'].to_s.downcase
when 'production'
activate :deploy do |deploy|
deploy.method = :git
deploy.remote = "git@github.com:rocket-hands/rocket-hands.github.io.git"
deploy.branch = "master"
end
else
activate :deploy do |deploy|
deploy.method = :git
deploy.remote = "origin"
deploy.branch = "gh-pages"
end
end
configure :build do
activate :minify_css
activate :minify_javascript
activate :relative_assets
activate :imageoptim
end