# Generates the documentation in HTML format. #-- # Copyright 2006 Suraj N. Kurapati # See the file named LICENSE for details. require 'rake/clean' $:.unshift File.join(File.dirname(__FILE__), '..', 'lib') require 'ruby-vpi' include RubyVPI task :default => 'guide.html' desc 'Generate the user guide.' file 'guide.html' => 'guide.erb' do |t| ENV['RUBYLIB'] = File.join(RubyVPI::Project[:home], 'lib') sh "gerbil html #{t.prerequisites[0].inspect} > #{t.name.inspect}" end CLOBBER.include 'guide.html'