Update npm documentation (4.0.2)

pull/537/head
Thibaut Courouble 8 years ago
parent e6674f75f9
commit cbbe0756fe

@ -17,6 +17,11 @@ module Docs
node.inner_html = node.inner_html.gsub(/<\/div>(?!\n|\z)/, "</div>\n") node.inner_html = node.inner_html.gsub(/<\/div>(?!\n|\z)/, "</div>\n")
end end
css('h1 + h1.subtitle').each do |node|
node.name = 'p'
node.inner_html += '.'
end
css('pre').each do |node| css('pre').each do |node|
node.content = node.content node.content = node.content
end end

@ -2,7 +2,7 @@ module Docs
class Npm < UrlScraper class Npm < UrlScraper
self.name = 'npm' self.name = 'npm'
self.type = 'npm' self.type = 'npm'
self.release = '3.10.2' self.release = '4.0.2'
self.base_url = 'https://docs.npmjs.com/' self.base_url = 'https://docs.npmjs.com/'
self.force_gzip = true self.force_gzip = true
self.links = { self.links = {

Loading…
Cancel
Save