phpunit.rb 930 B

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