class RDoc::Servlet

def initialize server, stores, cache, mount_path = nil, extra_doc_dirs = []

def initialize server, stores, cache, mount_path = nil, extra_doc_dirs = []
  super server
  @cache      = cache
  @mount_path = mount_path
  @extra_doc_dirs = extra_doc_dirs
  @stores     = stores
  @options = RDoc::Options.new
  @options.op_dir = '.'
  darkfish_dir = nil
  # HACK dup
  $LOAD_PATH.each do |path|
    darkfish_dir = File.join path, 'rdoc/generator/template/darkfish/'
    next unless File.directory? darkfish_dir
    @options.template_dir = darkfish_dir
    break
  end
  @asset_dirs = {
    :darkfish   => darkfish_dir,
    :json_index =>
      File.expand_path('../generator/template/json_index/', __FILE__),
  }
end