opentofu/website/config.rb
Jack Pearkes de2d55c206 website: configure middleman not to remove multiple spaces during minify
Minification was breaking the whitespace in JSON blocks on the front
page that require indentation because we use non-standard `p` and
`span` tags in JSON blocks

I imagine the HTML compressor gem used by middleman has some
whitelisting of the `pre` tag, therefore it wouldn't break normal
code blocks.
2014-08-05 20:59:27 -04:00

25 lines
617 B
Ruby

#-------------------------------------------------------------------------
# Configure Middleman
#-------------------------------------------------------------------------
set :css_dir, 'stylesheets'
set :js_dir, 'javascripts'
set :images_dir, 'images'
# Use the RedCarpet Markdown engine
set :markdown_engine, :redcarpet
set :markdown,
:fenced_code_blocks => true,
:with_toc_data => true
# Build-specific configuration
configure :build do
activate :asset_hash
activate :minify_html, remove_multi_spaces: false
activate :minify_javascript
end
configure :development do
set :debug_assets, true
end