Pārlūkot izejas kodu

Archive old TypeScript 5.1 documentation

Simon Legner 1 gadu atpakaļ
vecāks
revīzija
7f27b8d442
1 mainītis faili ar 12 papildinājumiem un 5 dzēšanām
  1. 12 5
      lib/docs/scrapers/typescript.rb

+ 12 - 5
lib/docs/scrapers/typescript.rb

@@ -4,11 +4,6 @@ module Docs
 
     self.name = 'TypeScript'
     self.type = 'typescript'
-    self.release = '5.3.3'
-    self.base_urls = [
-      'https://www.typescriptlang.org/docs/handbook/',
-      'https://www.typescriptlang.org/'
-    ]
 
     self.root_path = 'docs/'
 
@@ -49,6 +44,18 @@ module Docs
       Licensed under the Apache License, Version 2.0.
     HTML
 
+    version do
+      self.release = '5.3.3'
+      self.base_urls = [
+        'https://www.typescriptlang.org/docs/handbook/',
+        'https://www.typescriptlang.org/'
+      ]
+    end
+
+    version '5.1' do
+      self.release = '5.1.3'
+    end
+
     def get_latest_version(opts)
       get_latest_github_release('Microsoft', 'TypeScript', opts)
     end