Update Cypress documentation (7.2.0)

pull/1541/head
Enoc 4 years ago
parent a78db966d2
commit 1eaf12b94e

@ -4,17 +4,13 @@ module Docs
class Cypress
class CleanHtmlFilter < Filter
def call
article_div = at_css('#article > div')
@doc = article_div unless article_div.nil?
header = at_css('h1.article-title')
doc.prepend_child(header) unless header.nil?
css('.article-edit-link').remove
css('.article-footer').remove
css('.article-footer-updated').remove
css('div[role=alert]').each do |node|
node.name = 'blockquote'
node.add_class('note info')
end
css('.dashboard-ad').remove
css('footer').remove
css('pre').each do |node|
node.content = node.content

@ -17,7 +17,7 @@ module Docs
].freeze
def get_name
at_css('h1.article-title').content.strip
at_css('h1.main-content-title').content.strip
end
def get_type

@ -4,9 +4,9 @@ module Docs
class Cypress < UrlScraper
self.name = 'Cypress'
self.type = 'cypress'
self.release = '6.8.0'
self.release = '7.2.0'
self.base_url = 'https://docs.cypress.io'
self.root_path = '/api/api/table-of-contents.html'
self.root_path = '/api/table-of-contents.html'
self.links = {
home: 'https://www.cypress.io/',
code: 'https://github.com/cypress-io/cypress',
@ -14,7 +14,7 @@ module Docs
html_filters.push 'cypress/entries', 'cypress/clean_html'
options[:container] = '#content'
options[:container] = 'article'
options[:max_image_size] = 300_000
options[:include_default_entry] = true

Loading…
Cancel
Save