2012-10-30 05:19:53 +01:00
|
|
|
require 'susy'
|
2013-10-12 19:43:25 +02:00
|
|
|
require 'breakpoint'
|
|
|
|
require 'middleman-syntax'
|
2013-10-12 23:14:31 +02:00
|
|
|
|
2013-10-09 12:30:53 +02:00
|
|
|
activate :livereload
|
2012-09-27 12:26:50 +02:00
|
|
|
activate :directory_indexes
|
2013-10-09 12:30:53 +02:00
|
|
|
activate :automatic_image_sizes
|
|
|
|
activate :syntax,
|
|
|
|
:linenos => 'table', # inline or table
|
|
|
|
:linenostart => 2
|
2012-09-27 12:26:50 +02:00
|
|
|
|
2013-10-09 12:30:53 +02:00
|
|
|
set :markdown, :fenced_code_blocks => true,
|
|
|
|
:autolink => true,
|
|
|
|
:smartypants => true
|
|
|
|
set :markdown_engine, :redcarpet
|
2013-10-14 21:52:40 +02:00
|
|
|
set :css_dir, 'assets/css'
|
|
|
|
set :js_dir, 'assets/js'
|
|
|
|
set :images_dir, 'assets/img'
|
2012-10-30 05:19:53 +01:00
|
|
|
|
2013-10-09 12:30:53 +02:00
|
|
|
compass_config do |config|
|
|
|
|
config.output_style = :condensed
|
2012-10-30 05:19:53 +01:00
|
|
|
end
|
|
|
|
|
2013-10-09 12:30:53 +02:00
|
|
|
with_layout :layout_2_column do
|
|
|
|
page "/*", :layout => "layout_2_column"
|
|
|
|
end
|
2013-10-14 21:52:40 +02:00
|
|
|
|
2013-10-09 12:30:53 +02:00
|
|
|
with_layout :styleguide do
|
|
|
|
page "/styleguide/*"
|
|
|
|
end
|
2012-09-10 01:37:46 +02:00
|
|
|
|
2014-07-28 03:46:31 +02:00
|
|
|
page "/humans.txt", :layout => false
|
2013-10-12 22:11:36 +02:00
|
|
|
page "/documentation/*", :directory_index => false
|
2012-09-10 01:37:46 +02:00
|
|
|
|
2012-10-30 05:19:53 +01:00
|
|
|
|
2012-09-10 01:37:46 +02:00
|
|
|
configure :build do
|
2012-09-27 12:26:50 +02:00
|
|
|
activate :minify_css
|
|
|
|
activate :minify_javascript
|
2013-10-09 12:30:53 +02:00
|
|
|
activate :cache_buster
|
|
|
|
activate :asset_hash
|
2012-09-10 01:37:46 +02:00
|
|
|
# First: gem install middleman-smusher
|
|
|
|
# require "middleman-smusher"
|
|
|
|
# activate :smusher
|
|
|
|
|
2013-10-09 12:30:53 +02:00
|
|
|
compass_config do |config|
|
|
|
|
config.output_style = :compressed
|
|
|
|
end
|
|
|
|
end
|