|
@@ -8,34 +8,71 @@ module Docs
|
|
|
code: 'https://github.com/sebastianbergmann/phpunit'
|
|
code: 'https://github.com/sebastianbergmann/phpunit'
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- html_filters.push 'phpunit/clean_html', 'phpunit/entries', 'title'
|
|
|
|
|
|
|
+ options[:skip] = [
|
|
|
|
|
+ 'bibliography.html',
|
|
|
|
|
+ 'copyright.html'
|
|
|
|
|
+ ]
|
|
|
|
|
|
|
|
options[:root_title] = 'PHPUnit'
|
|
options[:root_title] = 'PHPUnit'
|
|
|
options[:title] = false
|
|
options[:title] = false
|
|
|
|
|
|
|
|
- options[:skip] = %w(
|
|
|
|
|
- appendixes.index.html
|
|
|
|
|
- appendixes.bibliography.html
|
|
|
|
|
- appendixes.copyright.html)
|
|
|
|
|
-
|
|
|
|
|
options[:attribution] = <<-HTML
|
|
options[:attribution] = <<-HTML
|
|
|
- © 2005–2017 Sebastian Bergmann<br>
|
|
|
|
|
|
|
+ © 2005–2020 Sebastian Bergmann<br>
|
|
|
Licensed under the Creative Commons Attribution 3.0 Unported License.
|
|
Licensed under the Creative Commons Attribution 3.0 Unported License.
|
|
|
HTML
|
|
HTML
|
|
|
|
|
|
|
|
|
|
+ FILTERS = %w(phpunit/clean_html phpunit/entries title)
|
|
|
|
|
+
|
|
|
|
|
+ version '9' do
|
|
|
|
|
+ self.release = '9.5'
|
|
|
|
|
+ self.base_url = "https://phpunit.readthedocs.io/en/#{release}/"
|
|
|
|
|
+
|
|
|
|
|
+ html_filters.push FILTERS
|
|
|
|
|
+
|
|
|
|
|
+ options[:container] = '.document'
|
|
|
|
|
+ end
|
|
|
|
|
+
|
|
|
|
|
+ version '8' do
|
|
|
|
|
+ self.release = '8.5'
|
|
|
|
|
+ self.base_url = "https://phpunit.readthedocs.io/en/#{release}/"
|
|
|
|
|
+
|
|
|
|
|
+ html_filters.push FILTERS
|
|
|
|
|
+
|
|
|
|
|
+ options[:container] = '.document'
|
|
|
|
|
+ end
|
|
|
|
|
+
|
|
|
|
|
+ OLDFILTERS = %w(phpunit/clean_html_old phpunit/entries_old title)
|
|
|
|
|
+
|
|
|
|
|
+ OLDSKIP = %w(
|
|
|
|
|
+ appendixes.index.html
|
|
|
|
|
+ appendixes.bibliography.html
|
|
|
|
|
+ appendixes.copyright.html)
|
|
|
|
|
+
|
|
|
version '6' do
|
|
version '6' do
|
|
|
self.release = '6.5'
|
|
self.release = '6.5'
|
|
|
self.base_url = "https://phpunit.de/manual/#{release}/en/"
|
|
self.base_url = "https://phpunit.de/manual/#{release}/en/"
|
|
|
|
|
+
|
|
|
|
|
+ html_filters.push OLDFILTERS
|
|
|
|
|
+
|
|
|
|
|
+ options[:skip] = OLDSKIP
|
|
|
end
|
|
end
|
|
|
|
|
|
|
|
version '5' do
|
|
version '5' do
|
|
|
self.release = '5.7'
|
|
self.release = '5.7'
|
|
|
self.base_url = "https://phpunit.de/manual/#{release}/en/"
|
|
self.base_url = "https://phpunit.de/manual/#{release}/en/"
|
|
|
|
|
+
|
|
|
|
|
+ html_filters.push OLDFILTERS
|
|
|
|
|
+
|
|
|
|
|
+ options[:skip] = OLDSKIP
|
|
|
end
|
|
end
|
|
|
|
|
|
|
|
version '4' do
|
|
version '4' do
|
|
|
self.release = '4.8'
|
|
self.release = '4.8'
|
|
|
self.base_url = "https://phpunit.de/manual/#{release}/en/"
|
|
self.base_url = "https://phpunit.de/manual/#{release}/en/"
|
|
|
|
|
+
|
|
|
|
|
+ options[:skip] = OLDSKIP
|
|
|
|
|
+
|
|
|
|
|
+ html_filters.push OLDFILTERS
|
|
|
end
|
|
end
|
|
|
|
|
|
|
|
def get_latest_version(opts)
|
|
def get_latest_version(opts)
|
|
@@ -43,5 +80,6 @@ module Docs
|
|
|
label = doc.at_css('.rst-current-version').content.strip
|
|
label = doc.at_css('.rst-current-version').content.strip
|
|
|
label.scan(/v: ([0-9.]+)/)[0][0]
|
|
label.scan(/v: ([0-9.]+)/)[0][0]
|
|
|
end
|
|
end
|
|
|
|
|
+
|
|
|
end
|
|
end
|
|
|
end
|
|
end
|