Unified · Split
| @@ -2,7 +2,7 @@ module Docs · 1 unmodified line | |||
| 2 | class Phpunit | 2 | class Phpunit |
| 3 | class CleanHtmlFilter < Filter | 3 | class CleanHtmlFilter < Filter |
| 4 | def call | 4 | def call |
| 5 | @doc = at_css('.section') if not root_page? | 5 | @doc = at_css('section') if not root_page? |
| 6 | 6 | ||
| 7 | css('pre').each do |node| | 7 | css('pre').each do |node| |
| 8 | node['class'] = 'highlight' | 8 | node['class'] = 'highlight' |
| @@ -17,12 +17,21 @@ module Docs · 16 unmodified lines | |||
| 17 | options[:title] = false | 17 | options[:title] = false |
| 18 | 18 | ||
| 19 | options[:attribution] = <<-HTML | 19 | options[:attribution] = <<-HTML |
| 20 | © 2005–2020 Sebastian Bergmann<br> | 20 | © 2005–2025 Sebastian Bergmann<br> |
| 21 | Licensed under the Creative Commons Attribution 3.0 Unported License. | 21 | Licensed under the Creative Commons Attribution 3.0 Unported License. |
| 22 | HTML | 22 | HTML |
| 23 | 23 | ||
| 24 | FILTERS = %w(phpunit/clean_html phpunit/entries title) | 24 | FILTERS = %w(phpunit/clean_html phpunit/entries title) |
| 25 | 25 | ||
| 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 | |||
| 26 | version '9' do | 35 | version '9' do |
| 27 | self.release = '9.5' | 36 | self.release = '9.5' |
| 28 | self.base_url = "https://phpunit.readthedocs.io/en/#{release}/" | 37 | self.base_url = "https://phpunit.readthedocs.io/en/#{release}/" |