1
0

rdoc.rb 468 B

1234567891011121314151617181920
  1. module Docs
  2. class Rdoc < FileScraper
  3. self.abstract = true
  4. self.type = 'rdoc'
  5. self.root_path = 'table_of_contents.html'
  6. html_filters.replace 'container', 'rdoc/container'
  7. html_filters.push 'rdoc/entries', 'rdoc/clean_html', 'title'
  8. options[:title] = false
  9. options[:skip] = %w(index.html)
  10. options[:skip_patterns] = [
  11. /history/i,
  12. /rakefile/i,
  13. /changelog/i,
  14. /readme/i,
  15. /news/i,
  16. /license/i]
  17. end
  18. end