Unified · Split
| @@ -12,10 +12,12 @@ module Docs · 11 unmodified lines | |||
| 12 | end | 12 | end |
| 13 | 13 | ||
| 14 | def get_type | 14 | def get_type |
| 15 | if subpath.include?('guide') | 15 | if subpath.include?('developer-guide') |
| 16 | type = 'Guide' | 16 | 'Developer Guide' |
| 17 | elsif subpath.include?('guide') | ||
| 18 | 'Guide' | ||
| 17 | elsif subpath.start_with?('rules') | 19 | elsif subpath.start_with?('rules') |
| 18 | type = 'Rules' | 20 | 'Rules' |
| 19 | end | 21 | end |
| 20 | end | 22 | end |
| 21 | end | 23 | end |
| @@ -2,7 +2,7 @@ module Docs · 1 unmodified line | |||
| 2 | class Eslint < UrlScraper | 2 | class Eslint < UrlScraper |
| 3 | self.name = 'ESLint' | 3 | self.name = 'ESLint' |
| 4 | self.type = 'simple' | 4 | self.type = 'simple' |
| 5 | self.release = '4.12.0' | 5 | self.release = '4.15.0' |
| 6 | self.base_url = 'https://eslint.org/docs/' | 6 | self.base_url = 'https://eslint.org/docs/' |
| 7 | self.root_path = 'user-guide/getting-started' | 7 | self.root_path = 'user-guide/getting-started' |
| 8 | self.links = { | 8 | self.links = { |
| @@ -12,7 +12,7 @@ module Docs · 3 unmodified lines | |||
| 12 | 12 | ||
| 13 | html_filters.push 'eslint/entries', 'eslint/clean_html' | 13 | html_filters.push 'eslint/entries', 'eslint/clean_html' |
| 14 | 14 | ||
| 15 | options[:skip_patterns] = [/developer-guide/, /maintainer-guide/] | 15 | options[:skip_patterns] = [/maintainer-guide/] |
| 16 | options[:skip] = %w(about about/ rules) | 16 | options[:skip] = %w(about about/ rules) |
| 17 | 17 | ||
| 18 | options[:attribution] = <<-HTML | 18 | options[:attribution] = <<-HTML |