write_style_sheet()
public
Copy over the stylesheet into the appropriate place in the output
directory.
# File lib/rdoc/generator/darkfish.rb, line 214
def write_style_sheet
debug_msg "Copying static files"
options = { :verbose => $DEBUG_RDOC, :noop => @dry_run }
BUILTIN_STYLE_ITEMS.each do |item|
install_rdoc_static_file @template_dir + item, "./#{item}", options
end
@options.template_stylesheets.each do |stylesheet|
FileUtils.cp stylesheet, '.', options
end
Dir[(@template_dir + "{js,images}/**/*").to_s].each do |path|
next if File.directory? path
next if File.basename(path) =~ /^\./
dst = Pathname.new(path).relative_path_from @template_dir
install_rdoc_static_file @template_dir + path, dst, options
end
end