Browse Source

Update TypeScript documentation (2.4.0)

Thibaut Courouble 8 years ago
parent
commit
1267d7adff
1 changed files with 3 additions and 2 deletions
  1. 3 2
      lib/docs/scrapers/typescript.rb

+ 3 - 2
lib/docs/scrapers/typescript.rb

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