devdocs/lib/docs/scrapers/phpunit.rb

25 lines
659 B
Ruby
Raw Normal View History

2014-11-12 20:10:03 +01:00
module Docs
class Phpunit < UrlScraper
self.name = 'PHPUnit'
self.type = 'phpunit'
2015-03-01 16:36:16 +01:00
self.version = '4.5'
2014-11-30 17:02:25 +01:00
self.base_url = "https://phpunit.de/manual/#{version}/en/"
self.root_path = 'index.html'
2014-11-12 20:10:03 +01:00
2014-11-30 17:02:25 +01:00
html_filters.push 'phpunit/clean_html', 'phpunit/entries', 'title'
2014-11-12 20:10:03 +01:00
2014-11-30 17:02:25 +01:00
options[:root_title] = 'PHPUnit'
2014-11-12 20:10:03 +01:00
options[:title] = false
2014-11-30 17:02:25 +01:00
options[:skip] = %w(
appendixes.index.html
appendixes.bibliography.html
appendixes.copyright.html)
2014-11-12 20:10:03 +01:00
options[:attribution] = <<-HTML
2015-03-01 16:36:16 +01:00
&copy; 2005&ndash;2015 Sebastian Bergmann<br>
2014-11-12 20:10:03 +01:00
Licensed under the Creative Commons Attribution 3.0 Unported License.
HTML
end
end