Update typescript to 3.7.4

pull/1158/head
Jed Fox 5 years ago
parent 33c2d1435a
commit e647b3a5ff

@ -15,7 +15,7 @@ module Docs
type
end
SKIP_ENTRIES = ['Introduction', 'A note', 'A Note', ', and', 'Techniques', ' Concepts', 'Hello World', 'Working with', 'Our ', 'Implementing ', 'Difference between', 'Basic', 'sample', 'Questions', 'Example', 'Export as close', 'Red Flags', 'First steps', 'Pitfalls', 'Well-known', 'Starting out', 'Comparing ', 'Do not', 'Trade-off', ' vs', 'Overview', 'Related']
SKIP_ENTRIES = ['Introduction', 'A note', 'A Note', ', and', 'Techniques', ' Concepts', 'Hello World', 'Working with', 'Our ', 'Implementing ', 'Difference between', 'Basic', 'sample', 'Questions', 'Example', 'Export as close', 'Red Flags', 'First steps', 'Pitfalls', 'Well-known', 'Starting out', 'Comparing ', 'Do not', 'Trade-off', ' vs', 'Overview', 'Related', 'Table of contents']
def additional_entries
return [] unless slug.start_with?('handbook')

@ -2,7 +2,7 @@ module Docs
class Typescript < UrlScraper
self.name = 'TypeScript'
self.type = 'simple'
self.release = '3.7.2'
self.release = '3.7.4'
self.base_url = 'https://www.typescriptlang.org/docs/'
self.root_path = 'tutorial.html'
self.links = {
@ -13,7 +13,7 @@ module Docs
html_filters.push 'typescript/entries', 'typescript/clean_html'
options[:container] = '#doc-content'
options[:skip] = %w(home.html)
options[:skip] = %w(home.html handbook/release-notes/overview.html)
options[:skip_link] = ->(node) { node.parent.parent['class'] == 'dropdown-menu' }
options[:fix_urls] = ->(url) {
url.sub!(/(\w+)\.md/) { "#{$1.downcase}.html" }
@ -30,5 +30,3 @@ module Docs
end
end
end

Loading…
Cancel
Save