sass-site/config.rb

49 lines
1.0 KiB
Ruby
Raw Normal View History

require 'susy'
2013-10-12 19:43:25 +02:00
require 'breakpoint'
require 'middleman-syntax'
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'
2013-10-09 12:30:53 +02:00
compass_config do |config|
config.output_style = :condensed
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
2014-07-28 03:46:31 +02:00
page "/humans.txt", :layout => false
page "/documentation/*", :directory_index => false
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
# 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