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