| @@ -2,9 +2,9 @@ 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 = '8.56.0' | 5 | self.release = '9.15.0' |
| 6 | self.base_url = 'https://eslint.org/docs/latest/' | 6 | self.base_url = 'https://eslint.org/docs/latest/' |
| 7 | self.root_path = 'user-guide/getting-started' | 7 | self.root_path = '/' |
| 8 | self.links = { | 8 | self.links = { |
| 9 | home: 'https://eslint.org/', | 9 | home: 'https://eslint.org/', |
| 10 | code: 'https://github.com/eslint/eslint' | 10 | code: 'https://github.com/eslint/eslint' |
| @@ -14,7 +14,22 @@ module Docs · 3 unmodified lines |
| 14 | | 14 | |
| 15 | options[:skip_patterns] = [/maintain/, /migrating/, /migrate/, /\Aversions/, /rule-deprecation/] | 15 | options[:skip_patterns] = [/maintain/, /migrating/, /migrate/, /\Aversions/, /rule-deprecation/] |
| 16 | options[:skip] = %w(about about/ versions) | 16 | options[:skip] = %w(about about/ versions) |
| 17 | options[:replace_paths] = { 'user-guide' => 'user-guide/' } | 17 | # A number of paths have a trailing slash, causing them to be suffixed by "index" during the NormalizePathsFilter |
| | 18 | options[:replace_paths] = { |
| | 19 | 'configure/' => 'configure', |
| | 20 | 'contribute/' => 'contribute', |
| | 21 | 'contribute/architecture/' => 'contribute/architecture', |
| | 22 | 'extend/' => 'extend', |
| | 23 | 'flags/' => 'flags', |
| | 24 | 'integrate/' => 'integrate', |
| | 25 | 'rules/' => 'rules', |
| | 26 | 'use/' => 'use', |
| | 27 | 'use/formatters/' => 'use/formatters', |
| | 28 | 'use/configure/' => 'use/configure', |
| | 29 | 'use/configure/rules/' => 'use/configure/rules', |
| | 30 | 'use/core-concepts/' => 'use/core-concepts', |
| | 31 | 'use/troubleshooting/' => 'use/troubleshooting', |
| | 32 | } |
| 18 | | 33 | |
| 19 | options[:attribution] = <<-HTML | 34 | options[:attribution] = <<-HTML |
| 20 | © OpenJS Foundation and other contributors<br> | 35 | © OpenJS Foundation and other contributors<br> |