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
4 4
5 self.name = 'TypeScript'5 self.name = 'TypeScript'
6 self.type = 'typescript'6 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 ]
12 7
13 self.root_path = 'docs/'8 self.root_path = 'docs/'
14 9
@@ -49,6 +44,18 @@ module Docs · 34 unmodified lines
49 Licensed under the Apache License, Version 2.0.44 Licensed under the Apache License, Version 2.0.
50 HTML45 HTML
51 46
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
52 def get_latest_version(opts)59 def get_latest_version(opts)
53 get_latest_github_release('Microsoft', 'TypeScript', opts)60 get_latest_github_release('Microsoft', 'TypeScript', opts)
54 end61 end