浏览代码

Update TypeScript documentation (3.0.1)

Thibaut Courouble 7 年之前
父节点
当前提交
7b64b43ad3
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 0
      lib/docs/filters/typescript/entries.rb
  2. 1 1
      lib/docs/scrapers/typescript.rb

+ 1 - 0
lib/docs/filters/typescript/entries.rb

@@ -9,6 +9,7 @@ module Docs
 
 
       def get_type
       def get_type
         return 'Declaration Files' if subpath.include?('declaration-files')
         return 'Declaration Files' if subpath.include?('declaration-files')
+        return 'Project Configuration' if slug == 'handbook/configuring-watch'
         type = at_css('#main-nav a.active').ancestors('.panel').first.at_css('> a').content
         type = at_css('#main-nav a.active').ancestors('.panel').first.at_css('> a').content
         type = name if type == 'Handbook'
         type = name if type == 'Handbook'
         type
         type

+ 1 - 1
lib/docs/scrapers/typescript.rb

@@ -2,7 +2,7 @@ module Docs
   class Typescript < UrlScraper
   class Typescript < UrlScraper
     self.name = 'TypeScript'
     self.name = 'TypeScript'
     self.type = 'typescript'
     self.type = 'typescript'
-    self.release = '2.9.0'
+    self.release = '3.0.1'
     self.base_url = 'https://www.typescriptlang.org/docs/'
     self.base_url = 'https://www.typescriptlang.org/docs/'
     self.root_path = 'tutorial.html'
     self.root_path = 'tutorial.html'
     self.links = {
     self.links = {