diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2009-02-28 21:19:37 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2009-02-28 21:19:37 +0100 |
commit | 0a8b6ea5dc6a9d56638b985dd67b0c45f167e381 (patch) | |
tree | 1932cb877c3e623f9a300c37971bb4e073670aea /tasks/rdoc.rake | |
parent | 50bb456cf469f73d3a32474dc07bd58c0c64dba1 (diff) | |
download | mmap-ruby-0a8b6ea5dc6a9d56638b985dd67b0c45f167e381.zip mmap-ruby-0a8b6ea5dc6a9d56638b985dd67b0c45f167e381.tar.gz |
Diffstat (limited to 'tasks/rdoc.rake')
-rw-r--r-- | tasks/rdoc.rake | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tasks/rdoc.rake b/tasks/rdoc.rake new file mode 100644 index 0000000..7ceaba1 --- /dev/null +++ b/tasks/rdoc.rake @@ -0,0 +1,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 |