docs/Rules in bootstrap-bookingsync-sass-0.0.19 vs docs/Rules in bootstrap-bookingsync-sass-1.0.0.beta1
- old
+ new
@@ -11,37 +11,47 @@
# * Item identifiers start and end with a slash (e.g. “/about/” for the file
# “content/about.html”). To select all children, grandchildren, … of an
# item, use the pattern “/about/*/”; “/about/*” will also select the parent,
# because “*” matches zero or more characters.
-ignore '/assets/(stylesheets|javascripts)/_*'
+ignore %r{/assets/(stylesheets|javascripts)/_.+}
-compile '/static/*' do
+passthrough '/assets/images/**/*'
+passthrough '/assets/fonts/**/*'
+
+compile '/static/**/*' do
end
-compile '/CNAME/' do
+compile '/CNAME' do
end
-compile '/highlight/' do
+compile '/highlight.css' do
filter :erb
end
-compile %r{/assets/(stylesheets|javascripts)/.+/} do
+compile %r{/assets/(stylesheets|javascripts)/.+} do
filter :sprockets, {
:css_compressor => :scss,
:js_compressor => :uglifier
}
end
-compile '*' do
+compile '/embed/*.{erb,html,md,mmd}' do
filter :erb
filter :kramdown, toc_levels: [2], header_offset: 1, enable_coderay: false
filter :colorize_syntax, default_colorizer: :pygmentsrb
- layout item[:layout] || 'default'
+ layout item[:layout] || '/embed.*'
end
-route '/assets/*/' do
+compile '/**/*.{erb,html,md,mmd}' do
+ filter :erb
+ filter :kramdown, toc_levels: [2], header_offset: 1, enable_coderay: false
+ filter :colorize_syntax, default_colorizer: :pygmentsrb
+ layout item[:layout] || '/default.*'
+end
+
+route '/assets/**/*' do
Nanoc::Sprockets::Helper.asset_path(item)
end
route '/CNAME' do
'/CNAME'
@@ -49,10 +59,18 @@
route '/highlight' do
'/highlight.css'
end
-route '*' do
- item.identifier + 'index.html'
+route '/**/*.{erb,html,md,mmd}' do
+ if item.identifier =~ '/index.*'
+ '/index.html'
+ else
+ item.identifier.without_ext + '/index.html'
+ end
end
-layout '*', :erb
+route '/**/*' do
+ item.identifier.to_s
+end
+
+layout '/**/*', :erb