forked from middleman/middlemanapp.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.rb
41 lines (31 loc) · 910 Bytes
/
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
require "builder"
set :layout, :article
activate :directory_indexes
set :markdown, :tables => true, :autolink => true, :gh_blockcode => true, :fenced_code_blocks => true, :with_toc_data => true
set :markdown_engine, :redcarpet
activate :relative_assets
helpers do
def gzip_css_on_build(key)
o = stylesheet_link_tag(key)
o.sub!(".css", ".css.gz") if build?
o
end
def gzip_js_on_build(key)
o = javascript_include_tag(key)
o.sub!(".js", ".js.gz") if build?
o
end
end
activate :fjords do |config|
config.username = Bundler.settings["fjords_username"]
config.password = Bundler.settings["fjords_password"]
config.domain = "middlemanapp.com"
end
# Build-specific configuration
configure :build do
activate :gzip
# For example, change the Compass output style for deployment
activate :minify_css
# Minify Javascript on build
activate :minify_javascript
end