Unified · Split
| @@ -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 | HTML | 45 | 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 | end | 61 | end |