Unified · Split
| @@ -2,7 +2,7 @@ module Docs · 1 unmodified line | ||
| 2 | 2 | class Npm < UrlScraper |
| 3 | 3 | self.name = 'npm' |
| 4 | 4 | self.type = 'npm' |
| 5 | − self.release = '5.0.2' | |
| 5 | + self.release = '5.3.0' | |
| 6 | 6 | self.base_url = 'https://docs.npmjs.com/' |
| 7 | 7 | self.force_gzip = true |
| 8 | 8 | self.links = { |
| @@ -12,6 +12,7 @@ module Docs · 3 unmodified lines | ||
| 12 | 12 | |
| 13 | 13 | html_filters.push 'npm/entries', 'npm/clean_html', 'title' |
| 14 | 14 | |
| 15 | + options[:max_image_size] = 130_000 | |
| 15 | 16 | options[:container] = ->(filter) { filter.root_page? ? '.toc' : nil } |
| 16 | 17 | options[:title] = false |
| 17 | 18 | options[:root_title] = 'npm' |