|
|
@ -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 = '5.0.2'
|
|
|
|
self.release = '5.3.0'
|
|
|
|
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 = {
|
|
|
@ -12,6 +12,7 @@ module Docs
|
|
|
|
|
|
|
|
|
|
|
|
html_filters.push 'npm/entries', 'npm/clean_html', 'title'
|
|
|
|
html_filters.push 'npm/entries', 'npm/clean_html', 'title'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
options[:max_image_size] = 130_000
|
|
|
|
options[:container] = ->(filter) { filter.root_page? ? '.toc' : nil }
|
|
|
|
options[:container] = ->(filter) { filter.root_page? ? '.toc' : nil }
|
|
|
|
options[:title] = false
|
|
|
|
options[:title] = false
|
|
|
|
options[:root_title] = 'npm'
|
|
|
|
options[:root_title] = 'npm'
|
|
|
|