66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
# File 'lib/flak/rake/templates/doc.rb', line 66
def self.task_factory target
settings = target.settings
desc "Release documentation"
task :doc do
docroot = File.join(settings[:root],'doc')
Dir.chdir(docroot) do |d|
site = Nanoc::Site.new(YAML.load_file('config.yaml'))
site.config[:output_dir] = settings[:doc_destination]
target.doc_plug_metadata(site)
puts "Compiling documentation site in #{settings[:doc_destination]}"
site.compile
puts "Done."
end
end
end
|