diff --git a/lib/docs/filters/npm/clean_html.rb b/lib/docs/filters/npm/clean_html.rb index c86dcdfd..ad5d0374 100644 --- a/lib/docs/filters/npm/clean_html.rb +++ b/lib/docs/filters/npm/clean_html.rb @@ -17,6 +17,11 @@ module Docs node.inner_html = node.inner_html.gsub(/<\/div>(?!\n|\z)/, "\n") end + css('h1 + h1.subtitle').each do |node| + node.name = 'p' + node.inner_html += '.' + end + css('pre').each do |node| node.content = node.content end diff --git a/lib/docs/scrapers/npm.rb b/lib/docs/scrapers/npm.rb index 1a900a4e..d0520ad0 100644 --- a/lib/docs/scrapers/npm.rb +++ b/lib/docs/scrapers/npm.rb @@ -2,7 +2,7 @@ module Docs class Npm < UrlScraper self.name = 'npm' self.type = 'npm' - self.release = '3.10.2' + self.release = '4.0.2' self.base_url = 'https://docs.npmjs.com/' self.force_gzip = true self.links = {