File tree 1 file changed +7
-11
lines changed
1 file changed +7
-11
lines changed Original file line number Diff line number Diff line change 1
1
module Docs
2
2
class Typescript < UrlScraper
3
- include MultipleBaseUrls
4
-
5
3
self . name = 'TypeScript'
6
4
self . type = 'typescript'
7
5
8
6
self . root_path = 'docs/'
9
7
10
- def initial_urls
11
- [ 'https://www.typescriptlang.org/docs/handbook/' ,
12
- 'https://www.typescriptlang.org/tsconfig' ]
13
- end
14
-
15
8
self . links = {
16
9
home : 'https://www.typescriptlang.org' ,
17
10
code : 'https://github.com/Microsoft/TypeScript'
18
11
}
19
12
20
13
html_filters . push 'typescript/entries' , 'typescript/clean_html' , 'title'
21
14
15
+ options [ :only_patterns ] = [
16
+ /\A docs\Z / ,
17
+ /\A docs\/ handbook/ ,
18
+ /\A tsconfig/ ,
19
+ ]
22
20
options [ :skip_patterns ] = [
23
21
/\A branding/ ,
24
22
/\A community/ ,
25
23
/\A docs\Z / ,
26
24
/\A tools/ ,
25
+ /react.*webpack/ ,
27
26
/release-notes/ ,
28
27
/dt\/ search/ ,
29
28
/play/
@@ -36,10 +35,7 @@ def initial_urls
36
35
37
36
version do
38
37
self . release = '5.8.2'
39
- self . base_urls = [
40
- 'https://www.typescriptlang.org/docs/handbook/' ,
41
- 'https://www.typescriptlang.org/'
42
- ]
38
+ self . base_url = 'https://www.typescriptlang.org/'
43
39
end
44
40
45
41
version '5.1' do
You can’t perform that action at this time.
0 commit comments