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