From e647b3a5ff9d56527a5070fe029d396e68f1c7b8 Mon Sep 17 00:00:00 2001 From: Jed Fox Date: Sun, 12 Jan 2020 22:49:33 -0500 Subject: [PATCH] Update typescript to 3.7.4 --- lib/docs/filters/typescript/entries.rb | 2 +- lib/docs/scrapers/typescript.rb | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/docs/filters/typescript/entries.rb b/lib/docs/filters/typescript/entries.rb index 43d577b0..7544abd1 100644 --- a/lib/docs/filters/typescript/entries.rb +++ b/lib/docs/filters/typescript/entries.rb @@ -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') diff --git a/lib/docs/scrapers/typescript.rb b/lib/docs/scrapers/typescript.rb index 828dd733..0af7841a 100644 --- a/lib/docs/scrapers/typescript.rb +++ b/lib/docs/scrapers/typescript.rb @@ -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 - -