From 9d8d1c28a17436e1870355652bf639c1106c2429 Mon Sep 17 00:00:00 2001 From: Brendan Coles Date: Sun, 20 Mar 2016 15:38:35 +0000 Subject: [PATCH] Add rdoc rake task --- Rakefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/Rakefile b/Rakefile index 6994e83a2..197f93e4d 100644 --- a/Rakefile +++ b/Rakefile @@ -45,6 +45,11 @@ task :msf => ["install", "msf_install"] do Rake::Task['msf_stop'].invoke end +desc 'Generate API documentation to docs/rdocs/index.html' +task :rdoc do + Rake::Task['rdoc:rerdoc'].invoke +end + ################################ # run bundle-audit @@ -74,6 +79,24 @@ task :bundle_audit do Rake::Task['bundle_audit:run'].invoke end +################################ +# rdoc + +namespace :rdoc do + require 'rdoc/task' + + desc 'Generate API documentation to docs/rdocs/index.html' + Rake::RDocTask.new do |rd| + rd.rdoc_dir = 'docs/rdocs' + rd.main = 'README.mkd' + rd.rdoc_files.include('core/**/*\.rb') + #'extensions/**/*\.rb' + #'modules/**/*\.rb' + rd.options << '--line-numbers' + rd.options << '--all' + end +end + ################################ # Install