History

Update Jest documentation (28.0.3)

Simon Legner committed 4 years ago

Commit 0badafd1 parent 4e29ca44 files · +4 −9Browse files

Unified · Split

4 files
  1. assets/javascripts/templates/pages/about_tmpl.coffee +1 −1
  2. lib/docs/filters/jest/clean_html.rb +0 −5
  3. lib/docs/filters/jest/entries.rb +1 −1
  4. lib/docs/scrapers/jest.rb +2 −2
assets/javascripts/templates/pages/about_tmpl.coffee+1−1
@@ -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 ], [
lib/docs/filters/jest/clean_html.rb+0−5
@@ -9,11 +9,6 @@ module Docs · 8 unmodified lines
9 9
10 css('hr', '.hash-link', 'button', '.badge').remove10 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'
lib/docs/filters/jest/entries.rb+1−1
@@ -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 end45 end
lib/docs/scrapers/jest.rb+2−2
@@ -2,7 +2,7 @@ module Docs · 1 unmodified line
2 class Jest < UrlScraper2 class Jest < UrlScraper
3 include MultipleBaseUrls3 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] = <<-HTML25 options[:attribution] = <<-HTML
26 &copy; 2021 Facebook, Inc.<br>26 &copy; 2022 Facebook, Inc.<br>
27 Licensed under the MIT License.27 Licensed under the MIT License.
28 HTML28 HTML
29 29