Update cypress to 5.6.0
Unified · Split
| @@ -14,6 +14,8 @@ module Docs · 13 unmodified lines | |||
| 14 | css('.article-footer').remove | 14 | css('.article-footer').remove |
| 15 | css('.article-footer-updated').remove | 15 | css('.article-footer-updated').remove |
| 16 | 16 | ||
| 17 | css('.dashboard-ad').remove | ||
| 18 | |||
| 17 | css('pre').each do |node| | 19 | css('pre').each do |node| |
| 18 | node.content = node.content | 20 | node.content = node.content |
| 19 | node['data-language'] = 'javascript' | 21 | node['data-language'] = 'javascript' |
| @@ -4,7 +4,7 @@ module Docs · 3 unmodified lines | |||
| 4 | class Cypress < UrlScraper | 4 | class Cypress < UrlScraper |
| 5 | self.name = 'Cypress' | 5 | self.name = 'Cypress' |
| 6 | self.type = 'cypress' | 6 | self.type = 'cypress' |
| 7 | self.release = '3.4.1' | 7 | self.release = '5.6.0' |
| 8 | self.base_url = 'https://docs.cypress.io' | 8 | self.base_url = 'https://docs.cypress.io' |
| 9 | self.root_path = '/api/api/table-of-contents.html' | 9 | self.root_path = '/api/api/table-of-contents.html' |
| 10 | self.links = { | 10 | self.links = { |
| @@ -18,14 +18,18 @@ module Docs · 7 unmodified lines | |||
| 18 | options[:max_image_size] = 300_000 | 18 | options[:max_image_size] = 300_000 |
| 19 | options[:include_default_entry] = true | 19 | options[:include_default_entry] = true |
| 20 | 20 | ||
| 21 | options[:skip_patterns] = [/examples\//] | 21 | options[:skip_patterns] = [ |
| 22 | /examples\//, | ||
| 23 | /guides/ | ||
| 24 | ] | ||
| 25 | |||
| 22 | options[:skip_link] = ->(link) { | 26 | options[:skip_link] = ->(link) { |
| 23 | href = link.attr(:href) | 27 | href = link.attr(:href) |
| 24 | href.nil? ? true : EntriesFilter::SECTIONS.none? { |section| href.match?("/#{section}/") } | 28 | href.nil? ? true : EntriesFilter::SECTIONS.none? { |section| href.match?("/#{section}/") } |
| 25 | } | 29 | } |
| 26 | 30 | ||
| 27 | options[:attribution] = <<-HTML | 31 | options[:attribution] = <<-HTML |
| 28 | © 2017 Cypress.io<br> | 32 | © 2020 Cypress.io<br> |
| 29 | Licensed under the MIT License. | 33 | Licensed under the MIT License. |
| 30 | HTML | 34 | HTML |
| 31 | 35 | ||