sass-site/config.rb
2018-10-23 15:06:39 -07:00

71 lines
1.5 KiB
Ruby

require 'breakpoint'
require 'middleman-syntax'
require 'susy'
activate :automatic_image_sizes
activate :autoprefixer do |config|
config.browsers = ['last 2 versions', 'Explorer >= 9']
config.remove = false
config.cascade = false
config.inline = true
# config.ignore = ['hacks.css']
end
activate :directory_indexes
activate :livereload
activate :syntax
set :markdown, :fenced_code_blocks => true,
:autolink => true,
:smartypants => true,
:with_toc_data => true
set :markdown_engine, :redcarpet
set :css_dir, 'assets/css'
set :js_dir, 'assets/js'
set :images_dir, 'assets/img'
page '/humans.txt', :layout => false
page '/sitemap.xml', :layout => false
page '/*.html', :layout => :has_navigation
with_layout :has_complementary do
page '/community.html'
page '/community-guidelines.html'
end
with_layout :has_both_sidebars do
page '/libsass.html'
end
with_layout :has_no_sidebars do
page '/404.html'
page '/install.html'
page '/dart-sass.html'
page '/ruby-sass.html'
page '/implementation.html'
end
with_layout :section_styleguide do
page '/styleguide/*'
end
with_layout :section_reference do
page '/documentation/*'
end
configure :development do
config[:host] = 'http://localhost:4567'
end
configure :build do
config[:host] = data.sitemap.url
activate :asset_hash
activate :gzip
activate :minify_css
activate :minify_html
activate :minify_javascript
activate :relative_assets
set :relative_links, true
end