From 558ee53b3db5271f5d8f2011b80867d296ec9115 Mon Sep 17 00:00:00 2001 From: Sebastian Witalec Date: Tue, 10 Dec 2024 11:51:33 +0100 Subject: [PATCH] Update site.redirects.js --- site.redirects.js | 437 ++++++++++++++++++++-------------------------- 1 file changed, 186 insertions(+), 251 deletions(-) diff --git a/site.redirects.js b/site.redirects.js index e171f22b2..ef3908f40 100644 --- a/site.redirects.js +++ b/site.redirects.js @@ -34,23 +34,23 @@ const siteRedirects = { from: '/developers/weaviate/current/core-knowledge/console', }, { - to: '/developers/wcs/tools/query-tool', - from: '/developers/wcs/guides/console', + to: '/developers/wcs/tools/query-tool', + from: '/developers/wcs/guides/console', }, { - to: '/developers/wcs/create-instance', - from: '/developers/wcs/guides/create-instance', + to: '/developers/wcs/create-instance', + from: '/developers/wcs/guides/create-instance', }, { - to: '/developers/wcs/connect', - from: '/developers/wcs/guides/authentication', + to: '/developers/wcs/connect', + from: '/developers/wcs/guides/authentication', }, // Client library redirects { to: '/developers/weaviate/client-libraries/typescript', from: '/developers/weaviate/client-libraries/javascript' }, - + // Config-refs redirects { to: '/developers/weaviate/config-refs/datatypes', @@ -60,7 +60,7 @@ const siteRedirects = { to: '/developers/weaviate/config-refs/distances', from: '/developers/weaviate/configuration/distances', }, - + // Configuration redirects { to: '/developers/weaviate/config-refs/datatypes', @@ -89,7 +89,7 @@ const siteRedirects = { '/developers/weaviate/current/schema/schema-configuration', ], }, - + // More-resources redirects { to: '/developers/weaviate/more-resources/example-datasets', @@ -107,7 +107,7 @@ const siteRedirects = { to: '/developers/integrations/llm-frameworks/dspy', from: '/developers/weaviate/more-resources/dspy', }, - + // Quickstart redirects { to: '/developers/weaviate/starter-guides/schema', @@ -129,7 +129,7 @@ const siteRedirects = { to: '/developers/wcs/tools/query-tool', from: '/developers/weaviate/quickstart/console', }, - + // Old Quickstart redirects { to: '/developers/weaviate/starter-guides/schema', @@ -151,23 +151,23 @@ const siteRedirects = { to: '/developers/wcs/tools/query-tool', from: '/developers/weaviate/current/quickstart/console', }, - + // WCD redirects { to: '/developers/wcs/faq', from: '/developers/wcs/troubleshooting', }, { - to: '/developers/wcs/tools/query-tool', - from: '/developers/wcs/platform/ssconsole', + to: '/developers/wcs/tools/query-tool', + from: '/developers/wcs/platform/ssconsole', }, { - to: '/developers/wcs/cluster-status', - from: '/developers/wcs/platform/cluster-status', + to: '/developers/wcs/cluster-status', + from: '/developers/wcs/platform/cluster-status', }, { - to: '/developers/wcs/tools/query-tool', - from: '/developers/wcs/console', + to: '/developers/wcs/tools/query-tool', + from: '/developers/wcs/console', }, // Tutorial redirects { @@ -195,13 +195,13 @@ const siteRedirects = { '/developers/weaviate/current/tutorials/quick-start-with-the-text2vec-contextionary-module', ], }, - + // Howto redirects { to: '/developers/weaviate/manage-data/read-all-objects', from: '/developers/weaviate/manage-data/exhaustive-retrieval', }, - + // Tutorial refresh 2024 { to: '/developers/weaviate/starter-guides/schema', @@ -212,22 +212,22 @@ const siteRedirects = { from: '/developers/weaviate/tutorials/connect', }, { - to: '/developers/weaviate/connections', - from: '/developers/weaviate/starter-guides/connect', + to: '/developers/weaviate/connections', + from: '/developers/weaviate/starter-guides/connect', }, - + // 2024.10 Rename "prefiltering" to "filtering" { to: '/developers/weaviate/concepts/filtering', from: '/developers/weaviate/concepts/prefiltering', }, - + // Remove BPR page { to: '/developers/weaviate/concepts/vector-index', from: '/developers/weaviate/concepts/binary-passage-retrieval', }, - + // Blog redirects { to: '/blog/understand-your-unstructured-data', @@ -291,7 +291,7 @@ const siteRedirects = { to: '/blog/weaviate-1-15-release', from: '/blog/2022/09/Weaviate-release-1-15', }, - + { to: '/blog/vector-search-explained', from: [ @@ -376,7 +376,7 @@ const siteRedirects = { to: '/developers/weaviate/model-providers/openai/generative', from: '/blog/chatgpt-for-generative-search', }, - + // GSOC and GSOD redirects // Hidden as not participating in 2023 { @@ -389,7 +389,7 @@ const siteRedirects = { '/resources/gsod-summary', ], }, - + // // Rename google modules // { // to: '/developers/weaviate/modules/reader-generator-modules/generative-google', @@ -408,7 +408,7 @@ const siteRedirects = { to: '/developers/weaviate/model-providers/google/embeddings', from: '/developers/weaviate/modules/retriever-vectorizer-modules/text2vec-google', }, - + // ============================================================================================= // 202409 Remove old module docs & redirect to model provider integration // ============================================================================================= @@ -509,7 +509,7 @@ const siteRedirects = { to: '/developers/weaviate/model-providers/google/generative', from: '/developers/weaviate/modules/reader-generator-modules/generative-palm', }, - + { to: '/developers/weaviate/modules/custom-modules', from: '/developers/weaviate/modules/other-modules/custom-modules', @@ -546,323 +546,258 @@ const siteRedirects = { to: '/developers/weaviate/modules/text2vec-contextionary', from: '/developers/weaviate/modules/retriever-vectorizer-modules/text2vec-contextionary', }, - + // ============================================================================================= // END - 202409 Remove old module docs & redirect to model provider integration // ============================================================================================= - - + + // moved Quickstart installation to Quickstart { to: '/developers/weaviate/quickstart', from: '/developers/weaviate/quickstart/installation', }, - + { to: '/developers/wcs/tools/query-tool', from: '/developers/weaviate/tutorials/console', }, - + // References: API / GraphQL redirects { to: '/developers/weaviate/api/graphql/search-operators', from: '/developers/weaviate/api/graphql/vector-search-parameters', }, - + // old link redirects { to: '/developers/weaviate/installation', from: '/developers/weaviate/current/getting-started/installation', }, - - { - to: '/developers/weaviate/configuration/compression/pq-compression', - from: '/developers/weaviate/configuration/compression', - }, + { to: '/developers/weaviate/configuration/compression/pq-compression', from: '/developers/weaviate/configuration/pq-compression', }, - + { to: '/developers/weaviate/configuration/compression/bq-compression', from: '/developers/weaviate/configuration/bq-compression', }, - + { to: '/developers/weaviate/manage-data/collections', from: '/developers/weaviate/manage-data/classes', }, - + { to: '/developers/weaviate/manage-data/collections', from: '/developers/weaviate/configuration/schema-configuration', }, - + // Legacy REST API redirects { to: '/developers/weaviate/api/rest/', - from: '/developers/weaviate/api/rest/schema', + from: [ + '/developers/weaviate/api/rest/schema', + '/developers/weaviate/api/rest/objects', + '/developers/weaviate/api/rest/batch', + '/developers/weaviate/api/rest/backups', + '/developers/weaviate/api/rest/classification', + '/developers/weaviate/api/rest/meta', + '/developers/weaviate/api/rest/nodes', + '/developers/weaviate/api/rest/well-known', + '/developers/weaviate/api/rest_legacy/schema', + '/developers/weaviate/api/rest_legacy/objects', + '/developers/weaviate/api/rest_legacy/batch', + '/developers/weaviate/api/rest_legacy/backups', + '/developers/weaviate/api/rest_legacy/classification', + '/developers/weaviate/api/rest_legacy/meta', + '/developers/weaviate/api/rest_legacy/nodes', + '/developers/weaviate/api/rest_legacy/well-known', + ] }, { - to: '/developers/weaviate/api/rest/', - from: '/developers/weaviate/api/rest/objects', + to: '/developers/weaviate/model-providers', + from: [ + '/developers/weaviate/api/rest/modules', + '/developers/weaviate/api/rest_legacy/modules', + ] }, + + // Products to Pricing redirects + { - to: '/developers/weaviate/api/rest/', - from: '/developers/weaviate/api/rest/batch', + to: "/pricing", + from: "/products", }, + { - to: '/developers/weaviate/api/rest/', - from: '/developers/weaviate/api/rest/backups', + to: "/pricing", + from: "/products/byoc", }, { - to: '/developers/weaviate/api/rest/', - from: '/developers/weaviate/api/rest/classification', + to: "/pricing", + from: "/products/serverless", }, + // workshops { - to: '/developers/weaviate/api/rest/', - from: '/developers/weaviate/api/rest/meta', + to: "/community/events", + from: "/learn/workshop" }, { - to: '/developers/weaviate/api/rest/', - from: '/developers/weaviate/api/rest/nodes', + to: "/community/events", + from: "/learn/workshops" }, + // Partners Off { - to: '/developers/weaviate/api/rest/', - from: '/developers/weaviate/api/rest/well-known', + to: "/pricing", + from: "/partnersOff" }, + // Terms and Policies Changes { - to: '/developers/weaviate/model-providers', - from: '/developers/weaviate/api/rest/modules', + to: "/service", + from: "/service/EULA" }, - - // Legacy REST API redirects { - to: '/developers/weaviate/api/rest/', - from: '/developers/weaviate/api/rest_legacy/schema', + to: "/service", + from: "/service/sla" }, { - to: '/developers/weaviate/api/rest/', - from: '/developers/weaviate/api/rest_legacy/objects', + to: "/service", + from: "/service/general-terms" }, { - to: '/developers/weaviate/api/rest/', - from: '/developers/weaviate/api/rest_legacy/batch', + to: "/service", + from: "/service/service-schedule" }, { - to: '/developers/weaviate/api/rest/', - from: '/developers/weaviate/api/rest_legacy/backups', + to: "/weaviate-support-terms", + from: "/supportterms" }, { - to: '/developers/weaviate/api/rest/', - from: '/developers/weaviate/api/rest_legacy/classification', + to: "/service", + from: "/service/weaviate-general-terms-of-service" }, + // Case Study Changes { - to: '/developers/weaviate/api/rest/', - from: '/developers/weaviate/api/rest_legacy/meta', + to: "/case-studies/neople", + from: "/services/case-study-neople" }, + // Services Changes { - to: '/developers/weaviate/api/rest/', - from: '/developers/weaviate/api/rest_legacy/nodes', + to: "/deployment/enterprise-cloud", + from: "/services/enterprise-dedicated" }, + + // Blog Article Changes { - to: '/developers/weaviate/api/rest/', - from: '/developers/weaviate/api/rest_legacy/well-known', + to: "/blog", + from: "/blog/tips-for-scaling-and-shipping-ai-products" }, + + // Release notes { - to: '/developers/weaviate/model-providers', - from: '/developers/weaviate/api/rest_legacy/modules', + to: "/developers/weaviate/release-notes/older-releases/release_1_20", + from: "/developers/weaviate/release-notes/release_1_20" }, - - - - // Products to Pricing redirects - { - to: "/pricing", - from: "/products", + to: "/developers/weaviate/release-notes/older-releases/release_1_19", + from: "/developers/weaviate/release-notes/release_1_19" }, - { - to: "/pricing", - from: "/products/byoc", + to: "/developers/weaviate/release-notes/older-releases/release_1_18", + from: "/developers/weaviate/release-notes/release_1_18" }, { - to: "/pricing", - from: "/products/serverless", + to: "/developers/weaviate/release-notes/older-releases/release_1_17", + from: "/developers/weaviate/release-notes/release_1_17" }, - // workshops { - to: "/community/events", - from: "/learn/workshop" + to: "/developers/weaviate/release-notes/older-releases/release_1_16", + from: "/developers/weaviate/release-notes/release_1_16" }, + + // Services Changes { - to: "/community/events", - from: "/learn/workshops" + to: "/platform", + from: "/services" }, - // Partners Off { - to: "/pricing", - from: "/partnersOff" + to: "/deployment/serverless", + from: "/services/serverless" }, - // Terms and Policies Changes { - to: "/service", - from: "/service/EULA" + to: "/deployment/enterprise-cloud", + from: "/services/enterprise-cloud" }, { - to: "/service", - from: "/service/sla" + to: "/deployment/byoc", + from: "/services/byoc" }, { - to: "/service", - from: "/service/general-terms" + to: "/deployment/enablement", + from: "/services/education-and-support" }, { - to: "/service", - from: "/service/service-schedule" + to: "/deployment/enablement", + from: "/deployment/education-and-support" }, + // KC Component Changes { - to: "/weaviate-support-terms", - from: "/supportterms" + to: "/learn/knowledgecards", + from: "/learn/knowledgecards/shareoptions" }, { - to: "/service", - from: "/service/weaviate-general-terms-of-service" + to: "/learn/knowledgecards", + from: "/learn/knowledgecards/knowledgeheader" }, - // Case Study Changes - { - to: "/case-studies/neople", - from: "/services/case-study-neople" - }, - { - to: "/case-studies/instabase", - from: "/case-studies" - }, - // Services Changes - { - to: "/deployment/enterprise-cloud", - from: "/services/enterprise-dedicated" - }, - - // Blog Article Changes - { - to: "/blog", - from: "/blog/tips-for-scaling-and-shipping-ai-products" - }, - -// Release notes -{ - to: "/developers/weaviate/release-notes/older-releases/release_1_20", - from: "/developers/weaviate/release-notes/release_1_20" -}, -{ - to: "/developers/weaviate/release-notes/older-releases/release_1_19", - from: "/developers/weaviate/release-notes/release_1_19" -}, -{ - to: "/developers/weaviate/release-notes/older-releases/release_1_18", - from: "/developers/weaviate/release-notes/release_1_18" -}, -{ - to: "/developers/weaviate/release-notes/older-releases/release_1_17", - from: "/developers/weaviate/release-notes/release_1_17" -}, -{ - to: "/developers/weaviate/release-notes/older-releases/release_1_16", - from: "/developers/weaviate/release-notes/release_1_16" -}, - -// Services Changes -{ - to: "/platform", - from: "/services" - }, - { - to: "/deployment/serverless", - from: "/services/serverless" - }, - { - to: "/deployment/enterprise-cloud", - from: "/services/enterprise-cloud" - }, - { - to: "/deployment/byoc", - from: "/services/byoc" - }, - { - to: "/deployment/enablement", - from: "/services/education-and-support" - }, - { - to: "/deployment/enablement", - from: "/deployment/education-and-support" - }, - // KC Component Changes - { - to: "/learn/knowledgecards", - from: "/learn/knowledgecards/shareoptions" - }, - { - to: "/learn/knowledgecards", - from: "/learn/knowledgecards/knowledgeheader" - }, -// Broken Links Redirects -{ - to: '/developers/contributor-guide/', - from: "/developers/contributor-guide/weaviate-modules/developers/weaviate/api/rest", -}, - -{ - to: '/developers/weaviate/release-notes', - from: [ - '/developers/weaviate/release-notes/older-releases/developers/weaviate/config-refs/nodes', - '/developers/weaviate/release-notes/older-releases/developers/weaviate/api/rest', - ], -}, -{ - to: "/developers/weaviate/config-refs/nodes", - from: "/developers/weaviate/release-notes/developers/weaviate/config-refs/nodes", -}, - -{ - to: "/blog/", - from: [ - "/blog/developers/weaviate/api/rest", - "/blog/developers/weaviate/config-refs/nodes", - ], -}, -{ - to: "/developers/weaviate/connections", - from: "/developers/connections", -}, -{ - to: "/developers/weaviate/client-libraries/typescript/typescript-v3", - from: "/developers/weaviate/client-libraries/typescript/developers/weaviate/client-libraries/typescript/typescript-v3", -}, -{ - to: "/developers/weaviate/modules", - from: "/developers/weaviate/modules/developers/weaviate/api/rest", -}, -{ - to: "/developers/weaviate/release-notes", - from: [ - "/developers/weaviate/release-notes/developers/weaviate/config-refs/nodes", - "/developers/weaviate/release-notes/older-releases/developers/weaviate/api/rest", - "/developers/weaviate/release-notes/older-releases/developers/weaviate/config-refs/nodes", - ], -}, -{ - to: "/developers/weaviate/starter-guides", - from: [ - "/developers/weaviate/starter-guides/developers/weaviate/installation/kubernetes", - "/developers/weaviate/starter-guides/developers/weaviate/manage-data/collections", - ], -}, - - - + // Broken Links Redirects + { + to: '/developers/contributor-guide/', + from: "/developers/contributor-guide/weaviate-modules/developers/weaviate/api/rest", + }, + { + to: "/developers/weaviate/config-refs/nodes", + from: "/developers/weaviate/release-notes/developers/weaviate/config-refs/nodes", + }, + { + to: "/blog/", + from: [ + "/blog/developers/weaviate/api/rest", + "/blog/developers/weaviate/config-refs/nodes", + ], + }, + { + to: "/developers/weaviate/connections", + from: "/developers/connections", + }, + { + to: "/developers/weaviate/client-libraries/typescript/typescript-v3", + from: "/developers/weaviate/client-libraries/typescript/developers/weaviate/client-libraries/typescript/typescript-v3", + }, + { + to: "/developers/weaviate/modules", + from: "/developers/weaviate/modules/developers/weaviate/api/rest", + }, + { + to: "/developers/weaviate/release-notes", + from: [ + "/developers/weaviate/release-notes/developers/weaviate/config-refs/nodes", + "/developers/weaviate/release-notes/older-releases/developers/weaviate/api/rest", + "/developers/weaviate/release-notes/older-releases/developers/weaviate/config-refs/nodes", + ], + }, + { + to: "/developers/weaviate/starter-guides", + from: [ + "/developers/weaviate/starter-guides/developers/weaviate/installation/kubernetes", + "/developers/weaviate/starter-guides/developers/weaviate/manage-data/collections", + ], + }, + + + ], createRedirects(existingPath) { if (existingPath.includes('/weaviate/api/graphql')) { @@ -911,7 +846,7 @@ const siteRedirects = { ), ]; } - + if ( existingPath.includes('/weaviate/concepts/replication-architecture') ) { @@ -942,7 +877,7 @@ const siteRedirects = { ), ]; } - + // Any remaining weaviate docs redirects if (existingPath.includes('/developers/weaviate')) { return [ @@ -952,7 +887,7 @@ const siteRedirects = { ), ]; } - + // Contributor Guide redirects if (existingPath.includes('/contributor-guide/weaviate-modules')) { return [ @@ -970,7 +905,7 @@ const siteRedirects = { ), ]; } - + return undefined; // Return a falsy value: no redirect created }, };