@@ -1,21 +1,21 | |||
|
1 | 1 | begin |
|
2 | 2 | require 'yard' |
|
3 | 3 | |
|
4 | 4 | YARD::Rake::YardocTask.new do |t| |
|
5 |
files = [ |
|
|
6 |
files << Dir[' |
|
|
5 | files = ['app/**/*.rb'] | |
|
6 | files << Dir['lib/**/*.rb', 'plugins/**/*.rb'].reject {|f| f.match(/test/) } | |
|
7 | 7 | t.files = files |
|
8 | 8 | |
|
9 | 9 | static_files = ['doc/CHANGELOG', |
|
10 | 10 | 'doc/COPYING', |
|
11 | 11 | 'doc/INSTALL', |
|
12 | 12 | 'doc/RUNNING_TESTS', |
|
13 | 13 | 'doc/UPGRADING'].join(',') |
|
14 | 14 | |
|
15 | 15 | t.options += ['--output-dir', './doc/app', '--files', static_files] |
|
16 | 16 | end |
|
17 | 17 | |
|
18 | 18 | rescue LoadError |
|
19 | 19 | # yard not installed (gem install yard) |
|
20 | 20 | # http://yardoc.org |
|
21 | 21 | end |
General Comments 0
You need to be logged in to leave comments.
Login now