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