phpunit.rb 778 B

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