@@ -2,9 +2,9 @@ module Docs
2
2
class Eslint < UrlScraper
3
3
self . name = 'ESLint'
4
4
self . type = 'simple'
5
- self . release = '8.56 .0'
5
+ self . release = '9.15 .0'
6
6
self . base_url = 'https://eslint.org/docs/latest/'
7
- self . root_path = 'user-guide/getting-started '
7
+ self . root_path = '/ '
8
8
self . links = {
9
9
home : 'https://eslint.org/' ,
10
10
code : 'https://github.com/eslint/eslint'
@@ -14,7 +14,22 @@ class Eslint < UrlScraper
14
14
15
15
options [ :skip_patterns ] = [ /maintain/ , /migrating/ , /migrate/ , /\A versions/ , /rule-deprecation/ ]
16
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
34
options [ :attribution ] = <<-HTML
20
35
© OpenJS Foundation and other contributors< br >
0 commit comments