From b33b7e67ec28827e7a7aae5bad7d030c92fb9556 Mon Sep 17 00:00:00 2001 From: Karan Rathod Date: Mon, 26 Aug 2024 16:03:01 +0530 Subject: [PATCH 1/2] remove older versions --- docs/docusaurus.config.js | 9 ++------- docs/versions.json | 25 ------------------------- 2 files changed, 2 insertions(+), 32 deletions(-) diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index ef8c4e14c5..3cc38d2cc0 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -124,15 +124,10 @@ module.exports = { includeCurrentVersion: false, lastVersion: '2.50.0-LTS', versions: { - '2.61.0': { - banner: 'none' - }, - '2.62.0': { - banner: 'none' - }, '2.65.0': { + label: '2.65.0-Pre Release 🚧', banner: 'none' - } + }, } }, theme: { diff --git a/docs/versions.json b/docs/versions.json index 2d804f9ed1..8cd41b5e77 100644 --- a/docs/versions.json +++ b/docs/versions.json @@ -1,30 +1,5 @@ [ "2.65.0", - "2.62.0", - "2.61.0", "2.50.0-LTS", - "2.43.0", - "2.39.0", - "2.36.0", - "2.35.0", - "2.34.0", - "2.33.0", - "2.30.0", - "2.29.0", - "2.27.0", - "2.25.0", - "2.24.0", - "2.23.0", - "2.22.0", - "2.19.0", - "2.18.0", - "2.17.0", - "2.16.0", - "2.15.0", - "2.14.0", - "2.13.0", - "2.12.0", - "2.11.0", - "2.10.0", "1.x.x" ] \ No newline at end of file From 41bbf9be930a4336b78fca068df6007e41b48d6e Mon Sep 17 00:00:00 2001 From: Karan Rathod Date: Tue, 27 Aug 2024 16:21:06 +0530 Subject: [PATCH 2/2] update robots.txt to exclude older versions --- docs/static/robots.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/static/robots.txt b/docs/static/robots.txt index d41edcdfe5..2474885126 100644 --- a/docs/static/robots.txt +++ b/docs/static/robots.txt @@ -1,7 +1,10 @@ User-agent: * Disallow: /1.x.x/ Disallow: /docs/1.x.x/ - +Disallow: /docs/2.1 +Disallow: /docs/2.2 +Disallow: /docs/2.3 +Disallow: /docs/2.4 # ################################################################################ # ################################################################################