##// END OF EJS Templates
Add static docs to YARD....
Eric Davis -
r3808:2e14ba95a034
parent child
Show More
@@ -1,14 +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 = ['lib/**/*.rb', 'app/**/*.rb']
6 files << Dir['vendor/plugins/**/*.rb'].reject {|f| f.match(/test/) } # Exclude test files
6 files << Dir['vendor/plugins/**/*.rb'].reject {|f| f.match(/test/) } # Exclude test files
7 t.files = files
7 t.files = files
8 t.options += ['--output-dir', './doc/app']
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]
9 end
16 end
10
17
11 rescue LoadError
18 rescue LoadError
12 # yard not installed (gem install yard)
19 # yard not installed (gem install yard)
13 # http://yardoc.org
20 # http://yardoc.org
14 end
21 end
General Comments 0
You need to be logged in to leave comments. Login now