mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
24 lines
659 B
Ruby
24 lines
659 B
Ruby
module Docs
|
|
class Phpunit < UrlScraper
|
|
self.name = 'PHPUnit'
|
|
self.type = 'phpunit'
|
|
self.version = '4.5'
|
|
self.base_url = "https://phpunit.de/manual/#{version}/en/"
|
|
self.root_path = 'index.html'
|
|
|
|
html_filters.push 'phpunit/clean_html', 'phpunit/entries', 'title'
|
|
|
|
options[:root_title] = 'PHPUnit'
|
|
options[:title] = false
|
|
|
|
options[:skip] = %w(
|
|
appendixes.index.html
|
|
appendixes.bibliography.html
|
|
appendixes.copyright.html)
|
|
|
|
options[:attribution] = <<-HTML
|
|
© 2005–2015 Sebastian Bergmann<br>
|
|
Licensed under the Creative Commons Attribution 3.0 Unported License.
|
|
HTML
|
|
end
|
|
end
|