Selaa lähdekoodia

Update TypeScript documentation (3.0.1)

Thibaut Courouble 7 vuotta sitten
vanhempi
commit
7b64b43ad3
2 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  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
         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 = name if type == 'Handbook'
         type

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

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