Unified · Split
| @@ -167,7 +167,7 @@ credits = [ · 166 unmodified lines | |||
| 167 | 'https://cmake.org/licensing/' | 167 | 'https://cmake.org/licensing/' |
| 168 | ], [ | 168 | ], [ |
| 169 | 'Codeception', | 169 | 'Codeception', |
| 170 | '2011-2017 Michael Bodnarchuk and contributors', | 170 | '2011 Michael Bodnarchuk and contributors', |
| 171 | 'MIT', | 171 | 'MIT', |
| 172 | 'https://raw.githubusercontent.com/Codeception/Codeception/master/LICENSE' | 172 | 'https://raw.githubusercontent.com/Codeception/Codeception/master/LICENSE' |
| 173 | ], [ | 173 | ], [ |
| @@ -4,6 +4,12 @@ module Docs · 3 unmodified lines | |||
| 4 | def call | 4 | def call |
| 5 | @doc = doc.at_css('#page') | 5 | @doc = doc.at_css('#page') |
| 6 | 6 | ||
| 7 | css('.algolia__search-content').remove | ||
| 8 | |||
| 9 | css('.algolia__initial-content').each do |node| | ||
| 10 | node.before(node.children).remove | ||
| 11 | end | ||
| 12 | |||
| 7 | while doc.element_children.length == 1 | 13 | while doc.element_children.length == 1 |
| 8 | doc.first_element_child.before(doc.first_element_child.children).remove | 14 | doc.first_element_child.before(doc.first_element_child.children).remove |
| 9 | end | 15 | end |
| @@ -2,7 +2,7 @@ module Docs · 1 unmodified line | |||
| 2 | class Codeception | 2 | class Codeception |
| 3 | class EntriesFilter < Docs::EntriesFilter | 3 | class EntriesFilter < Docs::EntriesFilter |
| 4 | def get_name | 4 | def get_name |
| 5 | name = (at_css('h1') || at_css('h2')).content | 5 | name = (at_css('.js-algolia__initial-content h1') || at_css('.js-algolia__initial-content h2')).content |
| 6 | 6 | ||
| 7 | if number = subpath[/\A\d+/] | 7 | if number = subpath[/\A\d+/] |
| 8 | name.prepend "#{number.to_i}. " | 8 | name.prepend "#{number.to_i}. " |
| @@ -2,11 +2,11 @@ module Docs · 1 unmodified line | |||
| 2 | class Codeception < UrlScraper | 2 | class Codeception < UrlScraper |
| 3 | self.name = 'Codeception' | 3 | self.name = 'Codeception' |
| 4 | self.type = 'codeception' | 4 | self.type = 'codeception' |
| 5 | self.release = '2.3.5' | 5 | self.release = '2.4.0' |
| 6 | self.base_url = 'http://codeception.com/docs/' | 6 | self.base_url = 'https://codeception.com/docs/' |
| 7 | self.root_path = 'index.html' | 7 | self.root_path = 'index.html' |
| 8 | self.links = { | 8 | self.links = { |
| 9 | home: 'http://codeception.com/', | 9 | home: 'https://codeception.com/', |
| 10 | code: 'https://github.com/codeception/codeception' | 10 | code: 'https://github.com/codeception/codeception' |
| 11 | } | 11 | } |
| 12 | 12 | ||
| @@ -15,7 +15,7 @@ module Docs · 2 unmodified lines | |||
| 15 | options[:skip_patterns] = [/install/] | 15 | options[:skip_patterns] = [/install/] |
| 16 | 16 | ||
| 17 | options[:attribution] = <<-HTML | 17 | options[:attribution] = <<-HTML |
| 18 | © 2011–2017 Michael Bodnarchuk and contributors<br> | 18 | © 2011 Michael Bodnarchuk and contributors<br> |
| 19 | Licensed under the MIT License. | 19 | Licensed under the MIT License. |
| 20 | HTML | 20 | HTML |
| 21 | end | 21 | end |