5 # Make only the output directory relative to the invoked directory.
8 # Load options and parse files from srcdir.
9 Dir.chdir(File.dirname(__dir__))
11 options = RDoc::Options.load_options
14 options.singleton_class.define_method(:finish) do
16 @op_dir = File.expand_path(@op_dir, invoked)
19 # Do not hide errors when generating documents of Ruby itself.
20 RDoc::RDoc.new.document options