mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-02 04:07:22 -06:00
de2d55c206
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.
25 lines
617 B
Ruby
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
|