Update Codeception documentation (2.4.0)

pull/775/head
Thibaut Courouble 7 years ago
parent 95895b1b73
commit 4571b01c02

@ -167,7 +167,7 @@ credits = [
'https://cmake.org/licensing/'
], [
'Codeception',
'2011-2017 Michael Bodnarchuk and contributors',
'2011 Michael Bodnarchuk and contributors',
'MIT',
'https://raw.githubusercontent.com/Codeception/Codeception/master/LICENSE'
], [

@ -4,6 +4,12 @@ module Docs
def call
@doc = doc.at_css('#page')
css('.algolia__search-content').remove
css('.algolia__initial-content').each do |node|
node.before(node.children).remove
end
while doc.element_children.length == 1
doc.first_element_child.before(doc.first_element_child.children).remove
end

@ -2,7 +2,7 @@ module Docs
class Codeception
class EntriesFilter < Docs::EntriesFilter
def get_name
name = (at_css('h1') || at_css('h2')).content
name = (at_css('.js-algolia__initial-content h1') || at_css('.js-algolia__initial-content h2')).content
if number = subpath[/\A\d+/]
name.prepend "#{number.to_i}. "

@ -2,11 +2,11 @@ module Docs
class Codeception < UrlScraper
self.name = 'Codeception'
self.type = 'codeception'
self.release = '2.3.5'
self.base_url = 'http://codeception.com/docs/'
self.release = '2.4.0'
self.base_url = 'https://codeception.com/docs/'
self.root_path = 'index.html'
self.links = {
home: 'http://codeception.com/',
home: 'https://codeception.com/',
code: 'https://github.com/codeception/codeception'
}
@ -15,7 +15,7 @@ module Docs
options[:skip_patterns] = [/install/]
options[:attribution] = <<-HTML
&copy; 2011&ndash;2017 Michael Bodnarchuk and contributors<br>
&copy; 2011 Michael Bodnarchuk and contributors<br>
Licensed under the MIT License.
HTML
end

Loading…
Cancel
Save