Update npm documentation (4.0.2)

This commit is contained in:
Thibaut Courouble 2016-11-20 16:11:35 -05:00
parent e6674f75f9
commit cbbe0756fe
2 changed files with 6 additions and 1 deletions

View file

@ -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

View file

@ -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 = {