Skip to content

Commit 7f27b8d

Browse files
committed
Archive old TypeScript 5.1 documentation
1 parent ddfeed4 commit 7f27b8d

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

lib/docs/scrapers/typescript.rb

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ class Typescript < UrlScraper
44

55
self.name = 'TypeScript'
66
self.type = 'typescript'
7-
self.release = '5.3.3'
8-
self.base_urls = [
9-
'https://www.typescriptlang.org/docs/handbook/',
10-
'https://www.typescriptlang.org/'
11-
]
127

138
self.root_path = 'docs/'
149

@@ -49,6 +44,18 @@ def initial_urls
4944
Licensed under the Apache License, Version 2.0.
5045
HTML
5146

47+
version do
48+
self.release = '5.3.3'
49+
self.base_urls = [
50+
'https://www.typescriptlang.org/docs/handbook/',
51+
'https://www.typescriptlang.org/'
52+
]
53+
end
54+
55+
version '5.1' do
56+
self.release = '5.1.3'
57+
end
58+
5259
def get_latest_version(opts)
5360
get_latest_github_release('Microsoft', 'TypeScript', opts)
5461
end

0 commit comments

Comments
 (0)