Remove MultipleBaseUrls. Fixes #2455.
Unified · Split
| @@ -1,17 +1,10 @@ | ||
| 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' |
| @@ -19,11 +12,17 @@ module Docs · 1 unmodified line | ||
| 19 | 12 | |
| 20 | 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 | 20 | options[:skip_patterns] = [ |
| 23 | 21 | /\Abranding/, |
| 24 | 22 | /\Acommunity/, |
| 25 | 23 | /\Adocs\Z/, |
| 26 | 24 | /\Atools/, |
| 25 | + /react.*webpack/, | |
| 27 | 26 | /release-notes/, |
| 28 | 27 | /dt\/search/, |
| 29 | 28 | /play/ |
| @@ -36,10 +35,7 @@ module Docs · 6 unmodified lines | ||
| 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 |