mirror of
https://github.com/inspec/inspec
synced 2024-12-18 09:03:12 +00:00
6e60362d56
- Missing encoding comments in ruby files Signed-off-by: Steven Danna <steve@chef.io>
51 lines
1.1 KiB
Ruby
51 lines
1.1 KiB
Ruby
# encoding: utf-8
|
|
require 'slim'
|
|
|
|
###
|
|
# Page options, layouts, aliases and proxies
|
|
###
|
|
|
|
# Per-page layout changes:
|
|
#
|
|
# With no layout
|
|
page '/*.xml', layout: false
|
|
page '/*.json', layout: false
|
|
page '/*.txt', layout: false
|
|
|
|
# With alternative layout
|
|
# page 'docs/*', layout: :sidebar, locals: { sidebar_layout: 'docs' }
|
|
|
|
# Proxy pages (http://middlemanapp.com/basics/dynamic-pages/)
|
|
# proxy '/this-page-has-no-template.html', '/template-file.html', locals: {
|
|
# which_fake_page: 'Rendering a fake page with a local variable' }
|
|
|
|
###
|
|
# Helpers
|
|
###
|
|
|
|
# Reload the browser automatically whenever files change
|
|
configure :development do
|
|
activate :livereload
|
|
end
|
|
|
|
# Methods defined in the helpers block are available in templates
|
|
# helpers do
|
|
# def some_helper
|
|
# 'Helping'
|
|
# end
|
|
# end
|
|
#
|
|
# Build-specific configuration
|
|
configure :build do
|
|
# Minify CSS on build
|
|
activate :minify_css
|
|
|
|
# Minify Javascript on build
|
|
activate :minify_javascript
|
|
end
|
|
|
|
activate :autoprefixer
|
|
activate :directory_indexes
|
|
set :trailing_slash, false
|
|
set :markdown_engine, :kramdown
|
|
set :markdown, coderay_line_numbers: :table
|