Update cypress to 5.6.0

pull/1318/head
MasterEnoc 4 years ago
parent 674dc1e35c
commit 0ba298731e

@ -14,6 +14,8 @@ module Docs
css('.article-footer').remove
css('.article-footer-updated').remove
css('.dashboard-ad').remove
css('pre').each do |node|
node.content = node.content
node['data-language'] = 'javascript'

@ -4,7 +4,7 @@ module Docs
class Cypress < UrlScraper
self.name = 'Cypress'
self.type = 'cypress'
self.release = '3.4.1'
self.release = '5.6.0'
self.base_url = 'https://docs.cypress.io'
self.root_path = '/api/api/table-of-contents.html'
self.links = {
@ -18,14 +18,18 @@ module Docs
options[:max_image_size] = 300_000
options[:include_default_entry] = true
options[:skip_patterns] = [/examples\//]
options[:skip_patterns] = [
/examples\//,
/guides/
]
options[:skip_link] = ->(link) {
href = link.attr(:href)
href.nil? ? true : EntriesFilter::SECTIONS.none? { |section| href.match?("/#{section}/") }
}
options[:attribution] = <<-HTML
&copy; 2017 Cypress.io<br>
&copy; 2020 Cypress.io<br>
Licensed under the MIT License.
HTML

Loading…
Cancel
Save