diff --git a/lib/docs/filters/typescript/clean_html.rb b/lib/docs/filters/typescript/clean_html.rb index 62894512..24aed5a6 100644 --- a/lib/docs/filters/typescript/clean_html.rb +++ b/lib/docs/filters/typescript/clean_html.rb @@ -4,6 +4,10 @@ module Docs def call @doc = at_css('.doc-content-container') + if root_page? + at_css('h1').content = 'TypeScript Documentation' + end + css('.xs-toc-container').remove css('article h1').each do |node| diff --git a/lib/docs/scrapers/typescript.rb b/lib/docs/scrapers/typescript.rb index cb3a06e3..5ec6d89e 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 = 'typescript' - self.release = '2.4.0' + self.release = '2.5.0' self.base_url = 'https://www.typescriptlang.org/docs/' self.root_path = 'tutorial.html' self.links = {