From aa918d25a454b2cdea27e043b603dfc8fbb3de29 Mon Sep 17 00:00:00 2001 From: Steven Hicks Date: Wed, 17 May 2023 15:27:05 -0500 Subject: [PATCH 1/6] remove most versions --- docusaurus.config.js | 39 +++++++++++++++++++++++++++++++++++++++ optimize_versions.json | 2 +- versions.json | 2 +- 3 files changed, 41 insertions(+), 2 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index 7a446461d18..9b64c1d0114 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -77,6 +77,45 @@ module.exports = { { type: "docsVersionDropdown", position: "left", + dropdownItemsAfter: [ + { + type: "html", + value: '', + }, + { + type: "html", + className: "dropdown-archived-versions", + value: "Archived versions", + }, + // ["1.3", "1.2", "1.1", "1.0", "0.26", "0.25"].map( + // ([versionName]) => ({ + { + label: "1.3", + href: "https://www.google.com", + }, + { + label: "1.2", + href: "https://www.google.com", + }, + { + label: "1.1", + href: "https://www.google.com", + }, + { + label: "1.0", + href: "https://www.google.com", + }, + { + label: "0.26", + href: "https://www.google.com", + }, + { + label: "0.25", + href: "https://www.google.com", + }, + // }) + // ), + ], }, { type: "doc", diff --git a/optimize_versions.json b/optimize_versions.json index 2cee4356410..53b3d05e641 100644 --- a/optimize_versions.json +++ b/optimize_versions.json @@ -1 +1 @@ -["3.10.0", "3.9.0", "3.8.0", "3.7.0"] +["3.10.0", "3.9.0", "3.8.0"] diff --git a/versions.json b/versions.json index ec70d1487d0..663aa80c9c3 100644 --- a/versions.json +++ b/versions.json @@ -1 +1 @@ -["8.2", "8.1", "8.0", "1.3", "1.2", "1.1", "1.0", "0.26", "0.25"] +["8.2", "8.1", "8.0"] From f05619f72113b9651409a4ca40c101f092596225 Mon Sep 17 00:00:00 2001 From: Steven Hicks Date: Fri, 19 May 2023 14:28:32 -0500 Subject: [PATCH 2/6] remove 1.3 redirects and replace them with one rule to send everything to the archived site --- static/.htaccess | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/static/.htaccess b/static/.htaccess index 0ca1a85e8a5..66fbd25f452 100644 --- a/static/.htaccess +++ b/static/.htaccess @@ -113,7 +113,7 @@ RewriteRule ^docs/apis-clients(.*)$ /docs/apis-tools$1 [R=301,L] RewriteRule ^optimize/apis-clients(.*)$ /optimize/apis-tools$1 [R=301,L] RewriteRule ^docs/8.0/apis-clients(.*)$ /docs/8.0/apis-tools$1 [R=301,L] RewriteRule ^optimize/3.8.0/apis-clients(.*)$ /optimize/3.8.0/apis-tools$1 [R=301,L] -RewriteRule ^docs/1.3/apis-clients(.*)$ /docs/1.3/apis-tools$1 [R=301,L] +# RewriteRule ^docs/1.3/apis-clients(.*)$ /docs/1.3/apis-tools$1 [R=301,L] # 1.2 apis/clients to apis/tools change RewriteRule ^docs/1.2/apis-clients(.*)$ /docs/1.2/apis-tools$1 [R=301,L] @@ -191,8 +191,8 @@ RewriteRule ^docs/8.0/guides/implementing-connectors$ /docs/8.0/guides/configuri RewriteRule ^docs/1.2/self-managed/overview/(.*)$ /docs/1.2/self-managed/about-self-managed/$1 [R=301,L] RewriteRule ^docs/1.2/self-managed/overview$ /docs/1.2/self-managed/about-self-managed/ [R=301,L] -RewriteRule ^docs/1.3/self-managed/overview/(.*)$ /docs/1.3/self-managed/about-self-managed/$1 [R=301,L] -RewriteRule ^docs/1.3/self-managed/overview$ /docs/1.3/self-managed/about-self-managed/ [R=301,L] +# RewriteRule ^docs/1.3/self-managed/overview/(.*)$ /docs/1.3/self-managed/about-self-managed/$1 [R=301,L] +# RewriteRule ^docs/1.3/self-managed/overview$ /docs/1.3/self-managed/about-self-managed/ [R=301,L] RewriteRule ^docs/self-managed/overview/(.*)$ /docs/self-managed/about-self-managed/$1 [R=301,L] RewriteRule ^docs/self-managed/overview$ /docs/self-managed/about-self-managed/ [R=301,L] @@ -212,8 +212,8 @@ RewriteRule ^docs/self-managed/operate-deployment/authentication/(.*)$ /docs/sel RewriteRule ^docs/self-managed/identity/troubleshooting/?$ /docs/self-managed/identity/troubleshooting/troubleshoot-identity/ [R=301,L] RewriteRule ^docs/self-managed/identity/getting-started/?$ /docs/self-managed/identity/getting-started/install-identity/ [R=301,L] -RewriteRule ^docs/1.3/components/overview/(.*)$ /docs/1.3/components/components-overview/$1 [R=301,L] -RewriteRule ^docs/1.3/components/overview$ /docs/1.3/components/components-overview/ [R=301,L] +# RewriteRule ^docs/1.3/components/overview/(.*)$ /docs/1.3/components/components-overview/$1 [R=301,L] +# RewriteRule ^docs/1.3/components/overview$ /docs/1.3/components/components-overview/ [R=301,L] RewriteRule ^docs/1.2/components/overview/(.*)$ /docs/1.2/components/components-overview/$1 [R=301,L] RewriteRule ^docs/1.2/components/overview$ /docs/1.2/components/components-overview/ [R=301,L] RewriteRule ^docs/1.1/components/overview/(.*)$ /docs/1.1/components/components-overview/$1 [R=301,L] @@ -247,8 +247,8 @@ RewriteRule ^docs/components/console/troubleshooting$ /docs/components/console/c RewriteRule ^docs/components/best-practices/overview/(.*)$ /docs/components/best-practices/best-practices-overview/$1 [R=301,L] RewriteRule ^docs/components/best-practices/overview$ /docs/components/best-practices/best-practices-overview [R=301,L] -RewriteRule ^docs/1.3/apis-clients/overview/(.*)$ /docs/1.3/apis-tools/working-with-apis-tools/$1 [R=301,L] -RewriteRule ^docs/1.3/apis-clients/overview$ /docs/1.3/apis-tools/working-with-apis-tools [R=301,L] +# RewriteRule ^docs/1.3/apis-clients/overview/(.*)$ /docs/1.3/apis-tools/working-with-apis-tools/$1 [R=301,L] +# RewriteRule ^docs/1.3/apis-clients/overview$ /docs/1.3/apis-tools/working-with-apis-tools [R=301,L] RewriteRule ^docs/1.2/apis-clients/overview/(.*)$ /docs/1.2/apis-tools/working-with-apis-tools/$1 [R=301,L] RewriteRule ^docs/1.2/apis-clients/overview$ /docs/1.2/apis-tools/working-with-apis-tools [R=301,L] RewriteRule ^docs/apis-clients/overview/(.*)$ /docs/apis-tools/working-with-apis-tools/$1 [R=301,L] @@ -502,9 +502,12 @@ RewriteRule ^docs/next/apis-clients/optimize-api/(.*)$ /optimize/next/apis-clien RewriteRule ^docs/apis-clients/optimize-api/(.*)$ /optimize/apis-clients/optimize-api/$1 [R=301,L] ## optimize extraction for version 3.7.0: -RewriteRule ^docs/1.3/components/optimize/what-is-optimize(\/?)$ /optimize/3.7.0/components/what-is-optimize/ [R=301,L] -RewriteRule ^docs/1.3/components/optimize/userguide/(.*)$ /optimize/3.7.0/components/userguide/$1 [R=301,L] -RewriteRule ^docs/1.3/self-managed/optimize-deployment/(.*)$ /optimize/3.7.0/self-managed/optimize-deployment/$1 [R=301,L] +# RewriteRule ^docs/1.3/components/optimize/what-is-optimize(\/?)$ /optimize/3.7.0/components/what-is-optimize/ [R=301,L] +# RewriteRule ^docs/1.3/components/optimize/userguide/(.*)$ /optimize/3.7.0/components/userguide/$1 [R=301,L] +# RewriteRule ^docs/1.3/self-managed/optimize-deployment/(.*)$ /optimize/3.7.0/self-managed/optimize-deployment/$1 [R=301,L] + +## extract version 1.3/optimize 3.7.0: +# RewriteRule ^docs/1.3/(.*)$ https://1_3.docs.camunda.io/docs/$1 [R=301,L] # Add yaml mime type AddType text/vnd.yaml yaml From 17dce0be309134c5e306135b378b5369c410297d Mon Sep 17 00:00:00 2001 From: Steven Hicks Date: Fri, 19 May 2023 15:35:32 -0500 Subject: [PATCH 3/6] make these archived URLs look real --- docusaurus.config.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index 9b64c1d0114..b1b9dfc8d49 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -91,27 +91,27 @@ module.exports = { // ([versionName]) => ({ { label: "1.3", - href: "https://www.google.com", + href: "https://1_3.docs.camunda.io", }, { label: "1.2", - href: "https://www.google.com", + href: "https://1_2.docs.camunda.io", }, { label: "1.1", - href: "https://www.google.com", + href: "https://1_1.docs.camunda.io", }, { label: "1.0", - href: "https://www.google.com", + href: "https://1_0.docs.camunda.io", }, { label: "0.26", - href: "https://www.google.com", + href: "https://0_26.docs.camunda.io", }, { label: "0.25", - href: "https://www.google.com", + href: "https://0_25.docs.camunda.io", }, // }) // ), From 4ed62f18007fccc89d263fcbd46ca1033fbdfba8 Mon Sep 17 00:00:00 2001 From: Steven Hicks Date: Tue, 23 May 2023 15:34:52 -0500 Subject: [PATCH 4/6] update archive URLs --- docusaurus.config.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index b1b9dfc8d49..9c6e33496ae 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -91,27 +91,27 @@ module.exports = { // ([versionName]) => ({ { label: "1.3", - href: "https://1_3.docs.camunda.io", + href: "https://unsupported.docs.camunda.io/1.3/", }, { label: "1.2", - href: "https://1_2.docs.camunda.io", + href: "https://unsupported.docs.camunda.io/1.2/", }, { label: "1.1", - href: "https://1_1.docs.camunda.io", + href: "https://unsupported.docs.camunda.io/1.1/", }, { label: "1.0", - href: "https://1_0.docs.camunda.io", + href: "https://unsupported.docs.camunda.io/1.0/", }, { label: "0.26", - href: "https://0_26.docs.camunda.io", + href: "https://unsupported.docs.camunda.io/0.26/", }, { label: "0.25", - href: "https://0_25.docs.camunda.io", + href: "https://unsupported.docs.camunda.io/0.25/", }, // }) // ), From b660b107528ac8e921cca17de3204430be71fca3 Mon Sep 17 00:00:00 2001 From: Steven Hicks Date: Tue, 23 May 2023 15:35:10 -0500 Subject: [PATCH 5/6] update bulk redirect rule for 1.3 --- static/.htaccess | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/.htaccess b/static/.htaccess index 66fbd25f452..34afc4f998d 100644 --- a/static/.htaccess +++ b/static/.htaccess @@ -507,7 +507,7 @@ RewriteRule ^docs/apis-clients/optimize-api/(.*)$ /optimize/apis-clients/optimiz # RewriteRule ^docs/1.3/self-managed/optimize-deployment/(.*)$ /optimize/3.7.0/self-managed/optimize-deployment/$1 [R=301,L] ## extract version 1.3/optimize 3.7.0: -# RewriteRule ^docs/1.3/(.*)$ https://1_3.docs.camunda.io/docs/$1 [R=301,L] +RewriteRule ^docs/1.3/(.*)$ https://unsupported.docs.camunda.io/1.3/docs/$1 [R=301,L] # Add yaml mime type AddType text/vnd.yaml yaml From 9bb325281aa72faf6de4b38f9b2f790d07c6eb65 Mon Sep 17 00:00:00 2001 From: Steven Hicks Date: Tue, 30 May 2023 14:15:56 -0500 Subject: [PATCH 6/6] don't forget about this --- docusaurus.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index 9c6e33496ae..7c2849b70b4 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -85,7 +85,7 @@ module.exports = { { type: "html", className: "dropdown-archived-versions", - value: "Archived versions", + value: "Unsupported versions", }, // ["1.3", "1.2", "1.1", "1.0", "0.26", "0.25"].map( // ([versionName]) => ({