summaryrefslogtreecommitdiffstats
path: root/tasks/rdoc.rake
blob: 7ceaba1a38fb3c6ccd2827ce3c9eda5d9e556151 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

require 'rake/rdoctask'

# RDOC
GENERAL_RDOC_OPTS = {
    "--title"   => "#{PROJECT_NAME} API documentation",
    "--main"    => README
}

# RDOC TASK
Rake::RDocTask.new(:rdoc) do |t|
    t.rdoc_files    = RDOC_FILES + LIB_FILES
    t.title         = GENERAL_RDOC_OPTS['--title']
    t.main          = GENERAL_RDOC_OPTS['--main']
    t.rdoc_dir      = RDOC_DIR
    t.options       += [ "--inline-source", "--line-numbers" ]
end