2014-01-10 17:42:05 +00:00
|
|
|
require File.expand_path("../helpers/download_helpers", __FILE__)
|
|
|
|
|
2013-09-19 00:36:35 +00:00
|
|
|
page "/blog_feed.xml", layout: false
|
|
|
|
|
2014-01-10 17:42:05 +00:00
|
|
|
# Archived download pages
|
|
|
|
$vagrant_versions.each do |version|
|
|
|
|
proxy "/download-archive/v#{version}.html", "/download-archive-single.html",
|
|
|
|
locals: { version: version }, ignore: true
|
|
|
|
end
|
|
|
|
|
2013-09-03 20:48:55 +00:00
|
|
|
set :css_dir, 'stylesheets'
|
|
|
|
set :js_dir, 'javascripts'
|
|
|
|
set :images_dir, 'images'
|
|
|
|
|
|
|
|
# Use the RedCarpet Markdown engine
|
|
|
|
set :markdown_engine, :redcarpet
|
2013-12-09 08:17:20 +00:00
|
|
|
set :markdown,
|
|
|
|
:fenced_code_blocks => true,
|
|
|
|
:with_toc_data => true
|
2013-09-03 20:48:55 +00:00
|
|
|
|
2013-09-16 23:07:58 +00:00
|
|
|
# Enable the blog and set the time zone so that post times appear
|
|
|
|
# correctly.
|
|
|
|
Time.zone = "America/Los_Angeles"
|
|
|
|
|
|
|
|
activate :blog do |b|
|
|
|
|
b.layout = "blog_post"
|
|
|
|
b.permalink = ":title.html"
|
|
|
|
b.prefix = "blog"
|
|
|
|
end
|
|
|
|
|
2013-09-03 20:48:55 +00:00
|
|
|
# Build-specific configuration
|
|
|
|
configure :build do
|
|
|
|
activate :asset_hash
|
|
|
|
activate :minify_css
|
|
|
|
activate :minify_html
|
|
|
|
activate :minify_javascript
|
|
|
|
end
|