Files
Redmine/lib/tasks/yardoc.rake
Go MAEDA bff0fbce8b Remove RDoc tags (#28943).
Patch by Sho HASHIMOTO.


git-svn-id: http://svn.redmine.org/redmine/trunk@17370 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-06-08 00:55:41 +00:00

22 lines
566 B
Ruby

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