You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

yardoc.rake 566B

123456789101112131415161718192021
  1. begin
  2. require 'yard'
  3. YARD::Rake::YardocTask.new do |t|
  4. files = ['app/**/*.rb']
  5. files << Dir['lib/**/*.rb', 'plugins/**/*.rb'].reject {|f| f.match(/test/) }
  6. t.files = files
  7. static_files = ['doc/CHANGELOG',
  8. 'doc/COPYING',
  9. 'doc/INSTALL',
  10. 'doc/RUNNING_TESTS',
  11. 'doc/UPGRADING'].join(',')
  12. t.options += ['--no-private', '--output-dir', './doc/app', '--files', static_files]
  13. end
  14. rescue LoadError
  15. # yard not installed (gem install yard)
  16. # http://yardoc.org
  17. end