annotate lib/tasks/yardoc.rake @ 599:251b380117ce feature_227

Introduce a new latest_downloads plugin to manage active and shortcut for attachments. Add a table for attachment active/shortcut data. Move existing active-handler code into the new plugin (but still using the "old" active column in the attachments table). Note the files_controller stuff doesn't actually work here.
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Tue, 16 Aug 2011 17:01:19 +0100
parents 1d32c0a0efbf
children dffacf8a6908
rev   line source
Chris@0 1 begin
Chris@0 2 require 'yard'
Chris@0 3
Chris@0 4 YARD::Rake::YardocTask.new do |t|
Chris@14 5 files = ['lib/**/*.rb', 'app/**/*.rb']
Chris@14 6 files << Dir['vendor/plugins/**/*.rb'].reject {|f| f.match(/test/) } # Exclude test files
Chris@14 7 t.files = files
Chris@14 8
Chris@14 9 static_files = ['doc/CHANGELOG',
Chris@14 10 'doc/COPYING',
Chris@14 11 'doc/INSTALL',
Chris@14 12 'doc/RUNNING_TESTS',
Chris@14 13 'doc/UPGRADING'].join(',')
Chris@14 14
Chris@14 15 t.options += ['--output-dir', './doc/app', '--files', static_files]
Chris@0 16 end
Chris@0 17
Chris@0 18 rescue LoadError
Chris@0 19 # yard not installed (gem install yard)
Chris@0 20 # http://yardoc.org
Chris@0 21 end