History

Update Jest documentation (28.0.3)

Simon Legner committed 4 years ago

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

Showing the changes to lib/docs (3 of 4 files). Show all

Unified · Split

3 files
  1. lib/docs/filters/jest/clean_html.rb +0 −5
  2. lib/docs/filters/jest/entries.rb +1 −1
  3. lib/docs/scrapers/jest.rb +2 −2
lib/docs/filters/jest/clean_html.rb+0−5
@@ -9,11 +9,6 @@ module Docs · 8 unmodified lines
99
1010 css('hr', '.hash-link', 'button', '.badge').remove
1111
12− css('.anchor').each do |node|
13− node.parent['id'] = node['id']
14− node.remove
15− end
16−
1712 css('.prism-code').each do |node|
1813 node.parent.parent.before(node)
1914 node.name = 'pre'
lib/docs/filters/jest/entries.rb+1−1
@@ -39,7 +39,7 @@ module Docs · 38 unmodified lines
3939 name.remove! %r{[\s=<].*}
4040 name.prepend 'jest ' if name.start_with?('--')
4141 name.prepend 'Config: ' if slug == 'configuration'
42− id = node.at_css('.anchor')['id']
42+ id = node['id']
4343
4444 entries << [name, id]
4545 end
lib/docs/scrapers/jest.rb+2−2
@@ -2,7 +2,7 @@ module Docs · 1 unmodified line
22 class Jest < UrlScraper
33 include MultipleBaseUrls
44 self.type = 'simple'
5− self.release = '27.4.3'
5+ self.release = '28.0.3'
66
77 self.base_urls = [
88 'https://jestjs.io/docs/',
@@ -23,7 +23,7 @@ module Docs · 14 unmodified lines
2323 ]
2424
2525 options[:attribution] = <<-HTML
26− &copy; 2021 Facebook, Inc.<br>
26+ &copy; 2022 Facebook, Inc.<br>
2727 Licensed under the MIT License.
2828 HTML
2929

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t