History

Archive old TypeScript 5.1 documentation

Simon Legner committed 2 years ago

Commit 7f27b8d1 parent ddfeed41 file · +12 −5Browse files

Unified · Split

lib/docs/scrapers/typescript.rb+12−5
@@ -4,11 +4,6 @@ module Docs · 3 unmodified lines
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 @@ module Docs · 34 unmodified lines
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