annotate lib/tasks/yardoc.rake @ 1080:5bd8c86cfa6a issue_540

Makes the Publication model act as an activity; overloading the default ActivitiesController#index view in the Bibliography Plugin in order to differentiate Publications from the other event types. * Known issues: ** route to /activities is not working (only to /activity); ** publication cache needs to be implemented in the model, not in the helper; ** when a publication is added to n projects, n events are created (all with the same content).
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Thu, 22 Nov 2012 16:51:23 +0000
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