Skip to content

Commit 3bb9463

Browse files
authored
Merge pull request freeCodeCamp#1318 from MasterEnoc/cypress
Update cypress to 5.6.0
2 parents f4d0c79 + 0ba2987 commit 3bb9463

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

lib/docs/filters/cypress/clean_html.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ def call
1414
css('.article-footer').remove
1515
css('.article-footer-updated').remove
1616

17+
css('.dashboard-ad').remove
18+
1719
css('pre').each do |node|
1820
node.content = node.content
1921
node['data-language'] = 'javascript'

lib/docs/scrapers/cypress.rb

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module Docs
44
class Cypress < UrlScraper
55
self.name = 'Cypress'
66
self.type = 'cypress'
7-
self.release = '3.4.1'
7+
self.release = '5.6.0'
88
self.base_url = 'https://docs.cypress.io'
99
self.root_path = '/api/api/table-of-contents.html'
1010
self.links = {
@@ -18,14 +18,18 @@ class Cypress < UrlScraper
1818
options[:max_image_size] = 300_000
1919
options[:include_default_entry] = true
2020

21-
options[:skip_patterns] = [/examples\//]
21+
options[:skip_patterns] = [
22+
/examples\//,
23+
/guides/
24+
]
25+
2226
options[:skip_link] = ->(link) {
2327
href = link.attr(:href)
2428
href.nil? ? true : EntriesFilter::SECTIONS.none? { |section| href.match?("/#{section}/") }
2529
}
2630

2731
options[:attribution] = <<-HTML
28-
&copy; 2017 Cypress.io<br>
32+
&copy; 2020 Cypress.io<br>
2933
Licensed under the MIT License.
3034
HTML
3135

0 commit comments

Comments
 (0)