From 7f27b8d442af55cbfe113bfea3de27e1d2205504 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sun, 7 Jan 2024 10:31:57 +0100 Subject: [PATCH] Archive old TypeScript 5.1 documentation --- lib/docs/scrapers/typescript.rb | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/lib/docs/scrapers/typescript.rb b/lib/docs/scrapers/typescript.rb index a072467d..38d7fae7 100644 --- a/lib/docs/scrapers/typescript.rb +++ b/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