Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (21 sloc) 852 Bytes
require 'rubygems'
gem 'rdoc' # Required on Mac OS X to get a “working” rdoc version
require 'rake/rdoctask'
load 'spec/tasks.rake'
desc 'Default: run specs.'
task :default => :spec
desc 'Generate RDoc documentation for the leaf gem.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_files.include('README.rdoc', 'MIT-LICENSE').
include('lib/**/*.rb').
exclude('lib/leaf/finders/sequel.rb').
exclude('lib/leaf/view_helpers/sinatra.rb').
exclude('lib/leaf/core_ext.rb').
exclude('lib/leaf/version.rb')
rdoc.main = "README.rdoc" # page to start on
rdoc.title = "leaf documentation"
rdoc.rdoc_dir = 'doc' # rdoc output folder
rdoc.options << '--inline-source' << '--charset=UTF-8' << '--format=darkfish'
rdoc.options << '--main=README.rdoc'
rdoc.options << '--webcvs=http://github.com/c7/leaf/tree/master/'
end