2013-10-12 13:43:25 -04:00
|
|
|
require 'breakpoint'
|
2014-07-28 01:39:37 -07:00
|
|
|
require 'builder'
|
2013-10-12 13:43:25 -04:00
|
|
|
require 'middleman-syntax'
|
2014-07-30 22:26:38 -07:00
|
|
|
require 'susy'
|
|
|
|
require 'typogruby'
|
2013-10-12 17:14:31 -04:00
|
|
|
|
2012-09-27 03:26:50 -07:00
|
|
|
activate :directory_indexes
|
2014-07-30 22:26:38 -07:00
|
|
|
activate :syntax
|
2012-09-27 03:26:50 -07:00
|
|
|
|
2013-10-09 06:30:53 -04:00
|
|
|
set :markdown, :fenced_code_blocks => true,
|
|
|
|
:autolink => true,
|
|
|
|
:smartypants => true
|
|
|
|
set :markdown_engine, :redcarpet
|
2013-10-14 15:52:40 -04:00
|
|
|
set :css_dir, 'assets/css'
|
|
|
|
set :js_dir, 'assets/js'
|
|
|
|
set :images_dir, 'assets/img'
|
2012-10-30 00:19:53 -04:00
|
|
|
|
2014-08-25 17:59:09 -07: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 15:52:40 -04:00
|
|
|
|
2013-10-09 06:30:53 -04:00
|
|
|
with_layout :styleguide do
|
|
|
|
page "/styleguide/*"
|
|
|
|
end
|
2012-09-09 16:37:46 -07:00
|
|
|
|
2014-07-30 22:26:38 -07:00
|
|
|
|
|
|
|
|
|
|
|
configure :development do
|
|
|
|
activate :livereload
|
|
|
|
|
|
|
|
compass_config do |config|
|
|
|
|
config.output_style = :expanded
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2012-09-09 16:37:46 -07:00
|
|
|
|
2012-10-30 00:19:53 -04:00
|
|
|
|
2012-09-09 16:37:46 -07:00
|
|
|
configure :build do
|
2014-07-30 22:26:38 -07:00
|
|
|
activate :asset_hash
|
|
|
|
activate :gzip
|
2012-09-27 03:26:50 -07:00
|
|
|
activate :minify_css
|
2014-07-30 22:34:47 -07:00
|
|
|
activate :minify_html
|
2012-09-27 03:26:50 -07:00
|
|
|
activate :minify_javascript
|
2014-07-30 22:26:38 -07:00
|
|
|
activate :relative_assets
|
|
|
|
|
|
|
|
set :relative_links, true
|
2012-09-09 16:37:46 -07:00
|
|
|
|
2013-10-09 06:30:53 -04:00
|
|
|
compass_config do |config|
|
|
|
|
config.output_style = :compressed
|
|
|
|
end
|
|
|
|
end
|