-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
29 lines (23 loc) · 1003 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
require File.expand_path('../config/application', __FILE__)
Rails.application.load_tasks
require 'sdoc'
Rake::RDocTask.new("public_api") do |rdoc|
rdoc.title = "WhiteLab #{File.read(Rails.root.join("VERSION.txt"))}"
rdoc.rdoc_dir = 'public/doc/api'
rdoc.options << '--fmt' << 'shtml'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.options << '--charset' << 'utf-8'
rdoc.rdoc_files.include('app/**/*.rb')
rdoc.rdoc_files.include('lib/**/*.rb')
end
Rake::RDocTask.new("private_api") do |rdoc|
rdoc.title = "WhiteLab #{File.read(Rails.root.join("VERSION.txt"))}"
rdoc.rdoc_dir = 'doc/api'
rdoc.options << '--fmt' << 'shtml'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.options << '--charset' << 'utf-8'
rdoc.rdoc_files.include('app/**/*.rb')
rdoc.rdoc_files.include('lib/**/*.rb')
end