mirror of
https://github.com/danog/sass-site.git
synced 2024-11-30 04:29:17 +01:00
52 lines
1.1 KiB
Ruby
52 lines
1.1 KiB
Ruby
require 'susy'
|
|
require 'breakpoint'
|
|
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 "/documentation/*", :directory_index => false
|
|
|
|
|
|
configure :build do
|
|
activate :minify_css
|
|
activate :minify_javascript
|
|
activate :cache_buster
|
|
activate :asset_hash
|
|
# activate :favicon_maker,
|
|
# :favicon_maker_input_dir => "source/assets/img/ico",
|
|
# :favicon_maker_output_dir => "build/assets/img/ico"
|
|
|
|
# First: gem install middleman-smusher
|
|
# require "middleman-smusher"
|
|
# activate :smusher
|
|
|
|
compass_config do |config|
|
|
config.output_style = :compressed
|
|
end
|
|
end
|