1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-20 07:21:12 +00:00
redmine/lib/tasks/yardoc.rake
Eric Davis 2c79572e4b Save yard doc to the doc/app directory.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3921 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-08-07 15:11:21 +00:00

15 lines
356 B
Ruby

begin
require 'yard'
YARD::Rake::YardocTask.new do |t|
files = ['lib/**/*.rb', 'app/**/*.rb']
files << Dir['vendor/plugins/**/*.rb'].reject {|f| f.match(/test/) } # Exclude test files
t.files = files
t.options += ['--output-dir', './doc/app']
end
rescue LoadError
# yard not installed (gem install yard)
# http://yardoc.org
end