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'
], [
'Jest',
'2021 Facebook, Inc.',
'2022 Facebook, Inc.',
'MIT',
'https://raw.githubusercontent.com/facebook/jest/master/LICENSE'
], [

@ -9,11 +9,6 @@ module Docs
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|
node.parent.parent.before(node)
node.name = 'pre'

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

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

Loading…
Cancel
Save