Update Jest documentation (28.0.3)

pull/1747/head
Simon Legner 3 years ago
parent 4e29ca4076
commit 0badafd5e4

@ -429,7 +429,7 @@ credits = [
'https://raw.githubusercontent.com/jekyll/jekyll/master/LICENSE' 'https://raw.githubusercontent.com/jekyll/jekyll/master/LICENSE'
], [ ], [
'Jest', 'Jest',
'2021 Facebook, Inc.', '2022 Facebook, Inc.',
'MIT', 'MIT',
'https://raw.githubusercontent.com/facebook/jest/master/LICENSE' 'https://raw.githubusercontent.com/facebook/jest/master/LICENSE'
], [ ], [

@ -9,11 +9,6 @@ module Docs
css('hr', '.hash-link', 'button', '.badge').remove css('hr', '.hash-link', 'button', '.badge').remove
css('.anchor').each do |node|
node.parent['id'] = node['id']
node.remove
end
css('.prism-code').each do |node| css('.prism-code').each do |node|
node.parent.parent.before(node) node.parent.parent.before(node)
node.name = 'pre' node.name = 'pre'

@ -39,7 +39,7 @@ module Docs
name.remove! %r{[\s=<].*} name.remove! %r{[\s=<].*}
name.prepend 'jest ' if name.start_with?('--') name.prepend 'jest ' if name.start_with?('--')
name.prepend 'Config: ' if slug == 'configuration' name.prepend 'Config: ' if slug == 'configuration'
id = node.at_css('.anchor')['id'] id = node['id']
entries << [name, id] entries << [name, id]
end end

@ -2,7 +2,7 @@ module Docs
class Jest < UrlScraper class Jest < UrlScraper
include MultipleBaseUrls include MultipleBaseUrls
self.type = 'simple' self.type = 'simple'
self.release = '27.4.3' self.release = '28.0.3'
self.base_urls = [ self.base_urls = [
'https://jestjs.io/docs/', 'https://jestjs.io/docs/',
@ -23,7 +23,7 @@ module Docs
] ]
options[:attribution] = <<-HTML options[:attribution] = <<-HTML
&copy; 2021 Facebook, Inc.<br> &copy; 2022 Facebook, Inc.<br>
Licensed under the MIT License. Licensed under the MIT License.
HTML HTML

Loading…
Cancel
Save