phpunit.rb 659 B

123456789101112131415161718192021222324
  1. module Docs
  2. class Phpunit < UrlScraper
  3. self.name = 'PHPUnit'
  4. self.type = 'phpunit'
  5. self.version = '4.6'
  6. self.base_url = "https://phpunit.de/manual/#{version}/en/"
  7. self.root_path = 'index.html'
  8. html_filters.push 'phpunit/clean_html', 'phpunit/entries', 'title'
  9. options[:root_title] = 'PHPUnit'
  10. options[:title] = false
  11. options[:skip] = %w(
  12. appendixes.index.html
  13. appendixes.bibliography.html
  14. appendixes.copyright.html)
  15. options[:attribution] = <<-HTML
  16. &copy; 2005&ndash;2015 Sebastian Bergmann<br>
  17. Licensed under the Creative Commons Attribution 3.0 Unported License.
  18. HTML
  19. end
  20. end