2013-10-12 19:43:25 +02:00
|
|
|
require 'breakpoint'
|
|
|
|
require 'middleman-syntax'
|
2014-07-31 07:26:38 +02:00
|
|
|
require 'susy'
|
2013-10-12 23:14:31 +02:00
|
|
|
|
2015-10-14 01:55:29 +02:00
|
|
|
activate :automatic_image_sizes
|
|
|
|
activate :autoprefixer do |config|
|
2015-10-14 02:02:12 +02:00
|
|
|
config.browsers = ["last 2 versions", "Explorer >= 9"]
|
2015-10-14 01:55:29 +02:00
|
|
|
config.remove = false
|
|
|
|
config.cascade = false
|
|
|
|
config.inline = true
|
|
|
|
# config.ignore = ['hacks.css']
|
|
|
|
end
|
2012-09-27 12:26:50 +02:00
|
|
|
activate :directory_indexes
|
2014-07-31 07:26:38 +02:00
|
|
|
activate :syntax
|
2012-09-27 12:26:50 +02:00
|
|
|
|
2015-10-14 01:55:29 +02:00
|
|
|
compass_config do |config|
|
|
|
|
config.output_style = :expanded
|
|
|
|
end
|
|
|
|
|
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
|
|
|
|
2014-08-26 02:59:09 +02:00
|
|
|
page "/humans.txt", :layout => false
|
|
|
|
page "/sitemap.xml", :layout => false
|
|
|
|
page "/404.html", :layout => :layout_2_column
|
|
|
|
page "/about.html", :layout => :layout_2_column
|
|
|
|
page "/guide.html", :layout => :layout_2_column
|
|
|
|
page "/libsass.html", :layout => :layout_2_column
|
|
|
|
page "/sitemap.html", :layout => :layout_2_column
|
|
|
|
page "/community-guidelines.html", :layout => :layout_2_column
|
|
|
|
page "/documentation/*", :directory_index => false
|
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-31 07:26:38 +02:00
|
|
|
configure :development do
|
|
|
|
activate :livereload
|
|
|
|
end
|
|
|
|
|
2012-09-10 01:37:46 +02:00
|
|
|
configure :build do
|
2014-07-31 07:26:38 +02:00
|
|
|
activate :asset_hash
|
|
|
|
activate :gzip
|
2012-09-27 12:26:50 +02:00
|
|
|
activate :minify_css
|
2014-07-31 07:34:47 +02:00
|
|
|
activate :minify_html
|
2012-09-27 12:26:50 +02:00
|
|
|
activate :minify_javascript
|
2014-07-31 07:26:38 +02:00
|
|
|
activate :relative_assets
|
|
|
|
|
|
|
|
set :relative_links, true
|
2012-09-10 01:37:46 +02:00
|
|
|
|
2013-10-09 12:30:53 +02:00
|
|
|
compass_config do |config|
|
|
|
|
config.output_style = :compressed
|
|
|
|
end
|
|
|
|
end
|