blob: 14c89f5611e0ce2ee56f1c5b679de46bcd31ceec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
require 'rdoc/rdoc'
require 'tmpdir'
srcdir = File.expand_path('../..', __dir__)
Dir.mktmpdir('rdocbench-'){|d|
dir = File.join(d, 'rdocbench')
args = %W(--root #{srcdir} --page-dir #{srcdir}/doc --encoding=UTF-8 --no-force-update --all --ri --debug --quiet #{srcdir})
args << '--op' << dir
r = RDoc::RDoc.new
r.document args
}
|