Unified · Split
| @@ -429,7 +429,7 @@ credits = [ · 428 unmodified lines | |||
| 429 | 'https://raw.githubusercontent.com/jekyll/jekyll/master/LICENSE' | 429 | 'https://raw.githubusercontent.com/jekyll/jekyll/master/LICENSE' |
| 430 | ], [ | 430 | ], [ |
| 431 | 'Jest', | 431 | 'Jest', |
| 432 | '2021 Facebook, Inc.', | 432 | '2022 Facebook, Inc.', |
| 433 | 'MIT', | 433 | 'MIT', |
| 434 | 'https://raw.githubusercontent.com/facebook/jest/master/LICENSE' | 434 | 'https://raw.githubusercontent.com/facebook/jest/master/LICENSE' |
| 435 | ], [ | 435 | ], [ |
| @@ -9,11 +9,6 @@ module Docs · 8 unmodified lines | |||
| 9 | 9 | ||
| 10 | css('hr', '.hash-link', 'button', '.badge').remove | 10 | css('hr', '.hash-link', 'button', '.badge').remove |
| 11 | 11 | ||
| 12 | css('.anchor').each do |node| | ||
| 13 | node.parent['id'] = node['id'] | ||
| 14 | node.remove | ||
| 15 | end | ||
| 16 | |||
| 17 | css('.prism-code').each do |node| | 12 | css('.prism-code').each do |node| |
| 18 | node.parent.parent.before(node) | 13 | node.parent.parent.before(node) |
| 19 | node.name = 'pre' | 14 | node.name = 'pre' |
| @@ -39,7 +39,7 @@ module Docs · 38 unmodified lines | |||
| 39 | name.remove! %r{[\s=<].*} | 39 | name.remove! %r{[\s=<].*} |
| 40 | name.prepend 'jest ' if name.start_with?('--') | 40 | name.prepend 'jest ' if name.start_with?('--') |
| 41 | name.prepend 'Config: ' if slug == 'configuration' | 41 | name.prepend 'Config: ' if slug == 'configuration' |
| 42 | id = node.at_css('.anchor')['id'] | 42 | id = node['id'] |
| 43 | 43 | ||
| 44 | entries << [name, id] | 44 | entries << [name, id] |
| 45 | end | 45 | end |
| @@ -2,7 +2,7 @@ module Docs · 1 unmodified line | |||
| 2 | class Jest < UrlScraper | 2 | class Jest < UrlScraper |
| 3 | include MultipleBaseUrls | 3 | include MultipleBaseUrls |
| 4 | self.type = 'simple' | 4 | self.type = 'simple' |
| 5 | self.release = '27.4.3' | 5 | self.release = '28.0.3' |
| 6 | 6 | ||
| 7 | self.base_urls = [ | 7 | self.base_urls = [ |
| 8 | 'https://jestjs.io/docs/', | 8 | 'https://jestjs.io/docs/', |
| @@ -23,7 +23,7 @@ module Docs · 14 unmodified lines | |||
| 23 | ] | 23 | ] |
| 24 | 24 | ||
| 25 | options[:attribution] = <<-HTML | 25 | options[:attribution] = <<-HTML |
| 26 | © 2021 Facebook, Inc.<br> | 26 | © 2022 Facebook, Inc.<br> |
| 27 | Licensed under the MIT License. | 27 | Licensed under the MIT License. |
| 28 | HTML | 28 | HTML |
| 29 | 29 | ||