jest: finish update

pull/1051/head
Jasper van Merle 6 years ago
parent 2490136110
commit b1ab6743f5

@ -354,8 +354,8 @@ credits = [
'https://raw.githubusercontent.com/jekyll/jekyll/master/LICENSE'
], [
'Jest',
'2014-present Facebook Inc.',
'BSD',
'Facebook, Inc. and its affiliates.',
'MIT',
'https://raw.githubusercontent.com/facebook/jest/master/LICENSE'
], [
'jQuery',

@ -20,15 +20,23 @@ module Docs
def additional_entries
return [] unless !root_page? && self.type == self.name # api page
at_css('.mainContainer ul').css('li > a').map do |node|
name = node.at_css('code').content.strip
entries = []
at_css('.mainContainer ul').css('li > a').each do |node|
code = node.at_css('code')
next if code.nil?
name = code.content.strip
name.sub! %r{\(.*\)}, '()'
name.remove! %r{[\s=<].*}
name.prepend 'jest ' if name.start_with?('--')
name.prepend 'Config: ' if slug == 'configuration'
id = node['href'].remove('#')
[name, id]
entries << [name, id]
end
entries
end
end
end

@ -1,11 +1,11 @@
module Docs
class Jest < UrlScraper
self.type = 'simple'
self.release = '24.8.0'
self.release = '24.9'
self.base_url = 'https://jestjs.io/docs/en/'
self.root_path = 'getting-started'
self.links = {
home: 'https://facebook.github.io/jest/',
home: 'https://jestjs.io/',
code: 'https://github.com/facebook/jest'
}
@ -14,8 +14,8 @@ module Docs
options[:container] = '.docMainWrapper'
options[:attribution] = <<-HTML
&copy; 2014&ndash;present Facebook Inc.<br>
Licensed under the BSD License.
&copy; 2019 Facebook, Inc. and its affiliates.<br>
Licensed under the MIT License.
HTML
def get_latest_version(opts)

Loading…
Cancel
Save