Report abuse
1
2
3
4
5
6
7
8
9
10
|
task :compile do
Nanoc::NotificationCenter.on(:compilation_ended) do |rep|
item = rep.respond_to?(:page) ? rep.page : rep.asset
puts "We have compiled #{item.path}:#{rep.name}!" if rep.compiled?
end
site = Nanoc::Site.new(YAML.load_file('config.yaml'))
site.load_data
site.compiler.run(nil, :even_when_not_outdated => true)
end
|