To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / .svn / pristine / 5d / 5d110403425d734bbec061b5ba503df5df3a724f.svn-base @ 1297:0a574315af3e
History | View | Annotate | Download (578 Bytes)
| 1 |
begin |
|---|---|
| 2 |
require 'yard' |
| 3 |
|
| 4 |
YARD::Rake::YardocTask.new do |t| |
| 5 |
files = ['lib/**/*.rb', 'app/**/*.rb'] |
| 6 |
files << Dir['vendor/plugins/**/*.rb'].reject {|f| f.match(/test/) } # Exclude test files
|
| 7 |
t.files = files |
| 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] |
| 16 |
end |
| 17 |
|
| 18 |
rescue LoadError |
| 19 |
# yard not installed (gem install yard) |
| 20 |
# http://yardoc.org |
| 21 |
end |