You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
91 lines
2.1 KiB
91 lines
2.1 KiB
#
|
|
## beta.devuan.org
|
|
#
|
|
# This is a Middleman configuration file.
|
|
# http://middlemanapp.com/
|
|
#
|
|
|
|
###
|
|
# Compass
|
|
###
|
|
|
|
# Change Compass configuration
|
|
compass_config do |config|
|
|
config.output_style = :compact
|
|
end
|
|
|
|
###
|
|
# Page options, layouts, aliases and proxies
|
|
# (default layout is source/layouts/layout.erb)
|
|
###
|
|
|
|
page ".(asc|json|txt|xml)$", :layout => false
|
|
page "/sitemap.xml", :layout => false
|
|
page "/os/*", :layout => :os
|
|
|
|
# Proxy pages (https://middlemanapp.com/advanced/dynamic_pages/)
|
|
# proxy "/this-page-has-no-template.html", "/template-file.html", :locals => {
|
|
# :which_fake_page => "Rendering a fake page with a local variable" }
|
|
# Don't use this for old URLs: see etc/
|
|
|
|
###
|
|
# Variables (DO NOT CHANGE)
|
|
###
|
|
|
|
set :markdown_engine, :kramdown
|
|
set :markdown, :fenced_code_blocks => true,
|
|
:disable_indented_code_blocks => true,
|
|
:smartypants => true,
|
|
:footnotes => true
|
|
|
|
set :css_dir, 'ui/css'
|
|
set :fonts_dir, 'ui/css/fonts'
|
|
set :images_dir, 'ui/img'
|
|
set :js_dir, 'ui/js'
|
|
set :build_dir, 'public'
|
|
set :partials_dir, 'partials'
|
|
set :plugins_dir, 'plugins'
|
|
set :relative_links, true
|
|
|
|
###
|
|
# Helpers
|
|
###
|
|
|
|
# Automatic image dimensions on image_tag helper
|
|
# This breaks CSS image sizing. Not good.
|
|
#activate :automatic_image_sizes
|
|
|
|
# Enable internationalization
|
|
# MIRROR: put your language first in :langs, and update :mount_at_root
|
|
activate :i18n, :templates_dir => 'pages', :data => 'locales',
|
|
:langs => [:en, :es, :de, :fr, :it, :el], :mount_at_root => :en
|
|
|
|
# Rouge syntax highlighting
|
|
activate :syntax
|
|
|
|
# Reload the browser automatically whenever files change
|
|
configure :development do
|
|
activate :livereload
|
|
end
|
|
|
|
require 'lib/devuan_helpers'
|
|
helpers DevuanHelpers
|
|
|
|
## Build-specific configuration
|
|
|
|
configure :build do
|
|
# For example, change the Compass output style for deployment
|
|
activate :minify_css
|
|
|
|
# Minify Javascript on build
|
|
activate :minify_javascript
|
|
|
|
# Enable cache buster
|
|
#activate :asset_hash
|
|
|
|
# Use relative URLs for assets (breaks 404 CSS)
|
|
#activate :relative_assets
|
|
|
|
# Or use a different image path
|
|
# set :http_prefix, "/Content/images/"
|
|
end
|
|
|