sass-site/config.rb
2014-07-28 01:39:37 -07:00

51 lines
1.1 KiB
Ruby

require 'susy'
require 'breakpoint'
require 'builder'
require 'middleman-syntax'
activate :livereload
activate :directory_indexes
activate :automatic_image_sizes
activate :syntax,
:linenos => 'table', # inline or table
:linenostart => 2
set :markdown, :fenced_code_blocks => true,
:autolink => true,
:smartypants => true
set :markdown_engine, :redcarpet
set :css_dir, 'assets/css'
set :js_dir, 'assets/js'
set :images_dir, 'assets/img'
compass_config do |config|
config.output_style = :condensed
end
with_layout :layout_2_column do
page "/*", :layout => "layout_2_column"
end
with_layout :styleguide do
page "/styleguide/*"
end
page "/humans.txt", :layout => false
page "/sitemap.xml", :layout => false
page "/documentation/*", :directory_index => false
configure :build do
activate :minify_css
activate :minify_javascript
activate :cache_buster
activate :asset_hash
# First: gem install middleman-smusher
# require "middleman-smusher"
# activate :smusher
compass_config do |config|
config.output_style = :compressed
end
end