2014-11-12 20:10:03 +01:00
|
|
|
module Docs
|
|
|
|
class Phpunit < UrlScraper
|
|
|
|
self.name = 'PHPUnit'
|
|
|
|
self.type = 'phpunit'
|
2014-11-30 17:02:25 +01:00
|
|
|
self.root_path = 'index.html'
|
2015-07-05 15:23:17 +02:00
|
|
|
self.links = {
|
|
|
|
home: 'https://phpunit.de/',
|
|
|
|
code: 'https://github.com/sebastianbergmann/phpunit'
|
|
|
|
}
|
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
|
2017-06-25 16:55:54 +02:00
|
|
|
© 2005–2017 Sebastian Bergmann<br>
|
2014-11-12 20:10:03 +01:00
|
|
|
Licensed under the Creative Commons Attribution 3.0 Unported License.
|
|
|
|
HTML
|
2016-02-13 18:13:16 +01:00
|
|
|
|
2017-06-25 16:55:54 +02:00
|
|
|
version '6' do
|
2018-01-08 00:44:39 +01:00
|
|
|
self.release = '6.5'
|
2017-06-25 16:55:54 +02:00
|
|
|
self.base_url = "https://phpunit.de/manual/#{release}/en/"
|
|
|
|
end
|
|
|
|
|
2016-02-13 18:13:16 +01:00
|
|
|
version '5' do
|
2017-01-02 21:46:18 +01:00
|
|
|
self.release = '5.7'
|
2016-02-13 18:13:16 +01:00
|
|
|
self.base_url = "https://phpunit.de/manual/#{release}/en/"
|
|
|
|
end
|
|
|
|
|
|
|
|
version '4' do
|
|
|
|
self.release = '4.8'
|
|
|
|
self.base_url = "https://phpunit.de/manual/#{release}/en/"
|
|
|
|
end
|
2014-11-12 20:10:03 +01:00
|
|
|
end
|
|
|
|
end
|