require 'rdoc/generator/chm' require 'rdoc/generator/html/html' module RDoc::Generator::CHM::CHM HTML = RDoc::Generator::HTML::HTML INDEX = HTML::INDEX CLASS_INDEX = HTML::CLASS_INDEX CLASS_PAGE = HTML::CLASS_PAGE FILE_INDEX = HTML::FILE_INDEX FILE_PAGE = HTML::FILE_PAGE METHOD_INDEX = HTML::METHOD_INDEX METHOD_LIST = HTML::METHOD_LIST FR_INDEX_BODY = HTML::FR_INDEX_BODY # This is a nasty little hack, but hhc doesn't support the /, '') SRC_PAGE = HTML::SRC_PAGE.sub!(/<\?xml.*\?>/, '') HPP_FILE = <<-EOF [OPTIONS] Auto Index = Yes Compatibility=1.1 or later Compiled file=<%= values["opname"] %>.chm Contents file=contents.hhc Full-text search=Yes Index file=index.hhk Language=0x409 English(United States) Title=<%= values["title"] %> [FILES] <% values["all_html_files"].each do |all_html_files| %> <%= all_html_files["html_file_name"] %> <% end # values["all_html_files"] %> EOF CONTENTS = <<-EOF EOF CHM_INDEX = <<-EOF EOF end