Remove MultipleBaseUrls. Fixes #2455.
Unified · Split
| @@ -1,17 +1,10 @@ | |||
| 1 | module Docs | 1 | module Docs |
| 2 | class Typescript < UrlScraper | 2 | class Typescript < UrlScraper |
| 3 | include MultipleBaseUrls | ||
| 4 | |||
| 5 | self.name = 'TypeScript' | 3 | self.name = 'TypeScript' |
| 6 | self.type = 'typescript' | 4 | self.type = 'typescript' |
| 7 | 5 | ||
| 8 | self.root_path = 'docs/' | 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 | self.links = { | 8 | self.links = { |
| 16 | home: 'https://www.typescriptlang.org', | 9 | home: 'https://www.typescriptlang.org', |
| 17 | code: 'https://github.com/Microsoft/TypeScript' | 10 | code: 'https://github.com/Microsoft/TypeScript' |
| @@ -19,11 +12,17 @@ module Docs · 1 unmodified line | |||
| 19 | 12 | ||
| 20 | html_filters.push 'typescript/entries', 'typescript/clean_html', 'title' | 13 | html_filters.push 'typescript/entries', 'typescript/clean_html', 'title' |
| 21 | 14 | ||
| 15 | options[:only_patterns] = [ | ||
| 16 | /\Adocs\Z/, | ||
| 17 | /\Adocs\/handbook/, | ||
| 18 | /\Atsconfig/, | ||
| 19 | ] | ||
| 22 | options[:skip_patterns] = [ | 20 | options[:skip_patterns] = [ |
| 23 | /\Abranding/, | 21 | /\Abranding/, |
| 24 | /\Acommunity/, | 22 | /\Acommunity/, |
| 25 | /\Adocs\Z/, | 23 | /\Adocs\Z/, |
| 26 | /\Atools/, | 24 | /\Atools/, |
| 25 | /react.*webpack/, | ||
| 27 | /release-notes/, | 26 | /release-notes/, |
| 28 | /dt\/search/, | 27 | /dt\/search/, |
| 29 | /play/ | 28 | /play/ |
| @@ -36,10 +35,7 @@ module Docs · 6 unmodified lines | |||
| 36 | 35 | ||
| 37 | version do | 36 | version do |
| 38 | self.release = '5.8.2' | 37 | self.release = '5.8.2' |
| 39 | self.base_urls = [ | 38 | self.base_url = 'https://www.typescriptlang.org/' |
| 40 | 'https://www.typescriptlang.org/docs/handbook/', | ||
| 41 | 'https://www.typescriptlang.org/' | ||
| 42 | ] | ||
| 43 | end | 39 | end |
| 44 | 40 | ||
| 45 | version '5.1' do | 41 | version '5.1' do |