Update TypeScript documentation (4.3.2)

pull/1561/head
Simon Legner 4 years ago
parent fb5e6080c6
commit e12068f64a

@ -30,13 +30,15 @@ module Docs
@doc = at_css('article > .whitespace > .markdown')
doc.child.before(deprecated) if deprecated
else # tsconfig page
@doc = at_css('.markdown > div')
at_css('h2').remove
end
css('.anchor', 'a:contains("Try")', 'h2 a', 'h3 a', 'svg', '#full-option-list').remove
# tsconfig page
css('.markdown', '.compiler-option', '.compiler-option-md', '.compiler-content').each do |node|
node.remove_attribute('class')
end
css('pre').each do |node|
language = node.at_css('.language-id') ? node.at_css('.language-id').content : 'typescript'
node.css('.language-id').remove

@ -14,6 +14,7 @@ module Docs
)
def get_name
return 'TSConfig Reference' if slug == 'tsconfig'
at_css('h1') ? at_css('h1').content : at_css('h2').content
end
@ -27,6 +28,7 @@ module Docs
def additional_entries
return [] if DEPRECATED_PAGES.include? slug
return [] if slug == 'tsconfig-json'
base_url.path == '/' ? tsconfig_entries : handbook_entries
end

@ -4,7 +4,7 @@ module Docs
self.name = 'TypeScript'
self.type = 'typescript'
self.release = '4.2.3'
self.release = '4.3.2'
self.base_urls = [
'https://www.typescriptlang.org/docs/handbook/',
'https://www.typescriptlang.org/'
@ -30,6 +30,7 @@ module Docs
options[:skip_patterns] = [
/release-notes/,
/dt\/search/,
/play\//
]

Loading…
Cancel
Save