Ver código fonte

Update Jest documentation (28.0.3)

Simon Legner 3 anos atrás
pai
commit
0badafd5e4

+ 1 - 1
assets/javascripts/templates/pages/about_tmpl.coffee

@@ -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'
   ], [

+ 0 - 5
lib/docs/filters/jest/clean_html.rb

@@ -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'

+ 1 - 1
lib/docs/filters/jest/entries.rb

@@ -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 - 2
lib/docs/scrapers/jest.rb

@@ -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