Update TypeScript documentation (5.8.2)

Remove MultipleBaseUrls.

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

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

Loading…
Cancel
Save