Class: RedminePluginSupport::RDocTask

Inherits:
GeneralTask
  • Object
show all
Defined in:
lib/redmine_plugin_support/rdoc_task.rb

Instance Attribute Summary

Attributes inherited from GeneralTask

#name

Instance Method Summary collapse

Methods inherited from GeneralTask

#initialize

Constructor Details

This class inherits a constructor from RedminePluginSupport::GeneralTask

Instance Method Details

#defineObject



5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/redmine_plugin_support/rdoc_task.rb', line 5

def define

  desc "Generate documentation for XXX"
  Rake::RDocTask.new(:doc) do |rdoc|
    rdoc.rdoc_dir = 'doc'
    rdoc.title    = Base.instance.project_name
    rdoc.options << '--line-numbers' << '--inline-source'
    rdoc.rdoc_files.include('README.rdoc')
    rdoc.rdoc_files.include('lib/**/*.rb')
    rdoc.rdoc_files.include('app/**/*.rb')
  end
  self
end