History

Update PHPUnit documentation (12.0)

Simon Legner committed 1 year ago

Commit e2336a11 parent 94a161a2 files · +11 −2Browse files

Unified · Split

2 files
  1. lib/docs/filters/phpunit/clean_html.rb +1 −1
  2. lib/docs/scrapers/phpunit.rb +10 −1
lib/docs/filters/phpunit/clean_html.rb+1−1
@@ -2,7 +2,7 @@ module Docs · 1 unmodified line
22 class Phpunit
33 class CleanHtmlFilter < Filter
44 def call
5− @doc = at_css('.section') if not root_page?
5+ @doc = at_css('section') if not root_page?
66
77 css('pre').each do |node|
88 node['class'] = 'highlight'
lib/docs/scrapers/phpunit.rb+10−1
@@ -17,12 +17,21 @@ module Docs · 16 unmodified lines
1717 options[:title] = false
1818
1919 options[:attribution] = <<-HTML
20− &copy; 2005&ndash;2020 Sebastian Bergmann<br>
20+ &copy; 2005&ndash;2025 Sebastian Bergmann<br>
2121 Licensed under the Creative Commons Attribution 3.0 Unported License.
2222 HTML
2323
2424 FILTERS = %w(phpunit/clean_html phpunit/entries title)
2525
26+ version do
27+ self.release = '12.0'
28+ self.base_url = "https://docs.phpunit.de/en/#{release}/"
29+
30+ html_filters.push FILTERS
31+
32+ options[:container] = '.document'
33+ end
34+
2635 version '9' do
2736 self.release = '9.5'
2837 self.base_url = "https://phpunit.readthedocs.io/en/#{release}/"