Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

45 lines (36 sloc) 1.16 kb
require 'rubygems'
require 'rake'
def staticmatic(command)
require '.haml/lib/haml'
require 'staticmatic'
configuration = StaticMatic::Configuration.new
eval(File.read("src/configuration.rb"))
StaticMatic::Base.new(".", configuration).run(command)
end
desc "Build everything."
task :build => [:site, :yardoc]
desc "Use StaticMatic to build the site."
task(:site => :haml) {staticmatic "build"}
desc "Preview the site with StaticMatic."
task(:preview => :haml) {staticmatic "preview"}
desc "Build the YARD documentation."
task :yardoc => :haml do
require 'fileutils'
Dir.chdir(".haml") {sh %{rake doc ANALYTICS=UA-535380-8}}
FileUtils.mkdir_p("site/docs")
FileUtils.rm_rf("site/docs/yardoc")
FileUtils.mv(".haml/doc", "site/docs/yardoc")
end
task :haml => ".haml" do
Dir.chdir(".haml") do
sh %{git fetch}
sh %{git checkout origin/stable}
# Check out the most recent released stable version
sh %{git checkout #{File.read("VERSION").strip}}
end
end
file ".haml" do
sh %{git clone -l -s . .haml}
Dir.chdir(".haml") {sh %{git checkout origin/stable}}
end
task(:default) {puts "Dummy default task for RunCodeRun"}
Jump to Line
Something went wrong with that request. Please try again.