Redmine 3.4.4
This commit is contained in:
commit
64924a6376
2112 changed files with 259028 additions and 0 deletions
21
lib/tasks/yardoc.rake
Normal file
21
lib/tasks/yardoc.rake
Normal file
|
@ -0,0 +1,21 @@
|
|||
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 += ['--output-dir', './doc/app', '--files', static_files]
|
||||
end
|
||||
|
||||
rescue LoadError
|
||||
# yard not installed (gem install yard)
|
||||
# http://yardoc.org
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue