equal
deleted
inserted
replaced
1 # |
|
2 # RDoc Rake tasks |
|
3 # $Id$ |
|
4 # |
|
5 |
|
6 BEGIN { |
|
7 require 'pathname' |
|
8 basedir = Pathname.new( __FILE__ ).dirname.parent |
|
9 docsdir = basedir + 'docs' |
|
10 |
|
11 $LOAD_PATH << docsdir.to_s |
|
12 } |
|
13 |
|
14 require 'rake/rdoctask' |
|
15 |
|
16 gem 'darkfish-rdoc', '>= 1.1.0' |
|
17 require 'darkfish-rdoc' |
|
18 |
|
19 ### Task: rdoc |
|
20 Rake::RDocTask.new do |rdoc| |
|
21 rdoc.rdoc_dir = 'docs/api' |
|
22 rdoc.title = "%s -- %s" % [ GEMSPEC.name, GEMSPEC.summary ] |
|
23 |
|
24 rdoc.options += [ |
|
25 '-w', '4', |
|
26 '-SHN', |
|
27 '-i', BASEDIR.to_s, |
|
28 '-f', 'darkfish', |
|
29 '-m', 'README', |
|
30 '-W', 'http://opensource.laika.com/browser/ruby-ezmlm/trunk/' |
|
31 ] |
|
32 |
|
33 rdoc.rdoc_files.include 'README' |
|
34 rdoc.rdoc_files.include LIB_FILES.collect {|f| f.relative_path_from(BASEDIR).to_s } |
|
35 end |
|
36 |
|