History

Update Jest documentation (23.3.0)

Thibaut Courouble committed 8 years ago

Commit 8be51a51 parent eaeb2bd3 files · +5 −4Browse files

Unified · Split

3 files
  1. lib/docs/filters/jest/clean_html.rb +1 −0
  2. lib/docs/filters/jest/entries.rb +1 −1
  3. lib/docs/scrapers/jest.rb +3 −3
lib/docs/filters/jest/clean_html.rb+1−0
@@ -18,6 +18,7 @@ module Docs · 17 unmodified lines
1818 end
1919
2020 css('pre').each do |node|
21+ node['data-language'] = 'js'
2122 node['data-language'] = node['class'][/language-(\w+)/, 1] if node['class']
2223 node.content = node.content
2324 end
lib/docs/filters/jest/entries.rb+1−1
@@ -6,7 +6,7 @@ module Docs · 5 unmodified lines
66 end
77
88 def get_type
9− type = at_css('.navItemActive').ancestors('.navGroup').first.at_css('h3').content
9+ type = at_css('.navListItemActive').ancestors('.navGroup').first.at_css('h3').content
1010
1111 if type == 'Introduction'
1212 'Guides: Introduction'
lib/docs/scrapers/jest.rb+3−3
@@ -1,9 +1,9 @@
11 module Docs
22 class Jest < UrlScraper
33 self.type = 'jest'
4− self.release = '23.1.0'
5− self.base_url = 'https://facebook.github.io/jest/docs/en/'
6− self.root_path = 'getting-started.html'
4+ self.release = '23.3.0'
5+ self.base_url = 'https://jestjs.io/docs/en/'
6+ self.root_path = 'getting-started'
77 self.links = {
88 home: 'https://facebook.github.io/jest/',
99 code: 'https://github.com/facebook/jest'