Skip to content

Commit 4571b01

Browse files
committed
Update Codeception documentation (2.4.0)
1 parent 95895b1 commit 4571b01

4 files changed

Lines changed: 12 additions & 6 deletions

File tree

‎assets/javascripts/templates/pages/about_tmpl.coffee‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ credits = [
167167
'https://cmake.org/licensing/'
168168
], [
169169
'Codeception',
170-
'2011-2017 Michael Bodnarchuk and contributors',
170+
'2011 Michael Bodnarchuk and contributors',
171171
'MIT',
172172
'https://raw.githubusercontent.com/Codeception/Codeception/master/LICENSE'
173173
], [

‎lib/docs/filters/codeception/clean_html.rb‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ class CleanHtmlFilter < Filter
44
def call
55
@doc = doc.at_css('#page')
66

7+
css('.algolia__search-content').remove
8+
9+
css('.algolia__initial-content').each do |node|
10+
node.before(node.children).remove
11+
end
12+
713
while doc.element_children.length == 1
814
doc.first_element_child.before(doc.first_element_child.children).remove
915
end

‎lib/docs/filters/codeception/entries.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module Docs
22
class Codeception
33
class EntriesFilter < Docs::EntriesFilter
44
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
66

77
if number = subpath[/\A\d+/]
88
name.prepend "#{number.to_i}. "

‎lib/docs/scrapers/codeception.rb‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ module Docs
22
class Codeception < UrlScraper
33
self.name = 'Codeception'
44
self.type = 'codeception'
5-
self.release = '2.3.5'
6-
self.base_url = 'http://codeception.com/docs/'
5+
self.release = '2.4.0'
6+
self.base_url = 'https://codeception.com/docs/'
77
self.root_path = 'index.html'
88
self.links = {
9-
home: 'http://codeception.com/',
9+
home: 'https://codeception.com/',
1010
code: 'https://github.com/codeception/codeception'
1111
}
1212

@@ -15,7 +15,7 @@ class Codeception < UrlScraper
1515
options[:skip_patterns] = [/install/]
1616

1717
options[:attribution] = <<-HTML
18-
&copy; 2011&ndash;2017 Michael Bodnarchuk and contributors<br>
18+
&copy; 2011 Michael Bodnarchuk and contributors<br>
1919
Licensed under the MIT License.
2020
HTML
2121
end

0 commit comments

Comments
 (0)