Update TypeScript documentation (5.8.2)

Remove MultipleBaseUrls.

Fixes #2455.
pull/2283/merge
Simon Legner 4 days ago
parent 13e3a2db72
commit ab18909a01

@ -1,17 +1,10 @@
module Docs module Docs
class Typescript < UrlScraper class Typescript < UrlScraper
include MultipleBaseUrls
self.name = 'TypeScript' self.name = 'TypeScript'
self.type = 'typescript' self.type = 'typescript'
self.root_path = 'docs/' self.root_path = 'docs/'
def initial_urls
[ 'https://www.typescriptlang.org/docs/handbook/',
'https://www.typescriptlang.org/tsconfig' ]
end
self.links = { self.links = {
home: 'https://www.typescriptlang.org', home: 'https://www.typescriptlang.org',
code: 'https://github.com/Microsoft/TypeScript' code: 'https://github.com/Microsoft/TypeScript'
@ -19,11 +12,17 @@ module Docs
html_filters.push 'typescript/entries', 'typescript/clean_html', 'title' html_filters.push 'typescript/entries', 'typescript/clean_html', 'title'
options[:only_patterns] = [
/\Adocs\Z/,
/\Adocs\/handbook/,
/\Atsconfig/,
]
options[:skip_patterns] = [ options[:skip_patterns] = [
/\Abranding/, /\Abranding/,
/\Acommunity/, /\Acommunity/,
/\Adocs\Z/, /\Adocs\Z/,
/\Atools/, /\Atools/,
/react.*webpack/,
/release-notes/, /release-notes/,
/dt\/search/, /dt\/search/,
/play/ /play/
@ -36,10 +35,7 @@ module Docs
version do version do
self.release = '5.8.2' self.release = '5.8.2'
self.base_urls = [ self.base_url = 'https://www.typescriptlang.org/'
'https://www.typescriptlang.org/docs/handbook/',
'https://www.typescriptlang.org/'
]
end end
version '5.1' do version '5.1' do

Loading…
Cancel
Save