-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathRakefile
More file actions
26 lines (21 loc) · 852 Bytes
/
Rakefile
File metadata and controls
26 lines (21 loc) · 852 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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