Method deprecated or moved
This method is deprecated or moved on the latest stable version. The last existing version (v2_2_9) is shown here.
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 Related methods
- Instance methods
- assemble_template
- class_dir
- copy_static
- debug_msg
- file_dir
- gen_sub_directories
- generate
- generate_class
- generate_class_files
- generate_file_files
- generate_index
- generate_page
- generate_servlet_not_found
- generate_servlet_root
- generate_table_of_contents
- get_sorted_module_list
- get_svninfo
- install_rdoc_static_file
- render
- render_template
- setup
- template_for
- template_result
- time_delta_string
- write_style_sheet
- Class methods
- new