File tree Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Original file line number Diff line number Diff line change 11module Docs
22 class Typescript < UrlScraper
3- include MultipleBaseUrls
4-
53 self . name = 'TypeScript'
64 self . type = 'typescript'
75
86 self . root_path = 'docs/'
97
10- def initial_urls
11- [ 'https://www.typescriptlang.org/docs/handbook/' ,
12- 'https://www.typescriptlang.org/tsconfig' ]
13- end
14-
158 self . links = {
169 home : 'https://www.typescriptlang.org' ,
1710 code : 'https://github.com/Microsoft/TypeScript'
1811 }
1912
2013 html_filters . push 'typescript/entries' , 'typescript/clean_html' , 'title'
2114
15+ options [ :only_patterns ] = [
16+ /\A docs\Z / ,
17+ /\A docs\/ handbook/ ,
18+ /\A tsconfig/ ,
19+ ]
2220 options [ :skip_patterns ] = [
2321 /\A branding/ ,
2422 /\A community/ ,
2523 /\A docs\Z / ,
2624 /\A tools/ ,
25+ /react.*webpack/ ,
2726 /release-notes/ ,
2827 /dt\/ search/ ,
2928 /play/
@@ -36,10 +35,7 @@ def initial_urls
3635
3736 version do
3837 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/'
4339 end
4440
4541 version '5.1' do
You can’t perform that action at this time.
0 commit comments