From dc8622027025aba4cb51a312aeb942b2027c14be Mon Sep 17 00:00:00 2001 From: Kian Newman-Hazel Date: Fri, 13 Dec 2024 18:42:07 +0000 Subject: [PATCH 1/2] [Docs Site] Use new Algolia index --- astro.config.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/astro.config.ts b/astro.config.ts index 8e59d64a6cbdc9a..a03d68ad63931cb 100644 --- a/astro.config.ts +++ b/astro.config.ts @@ -197,17 +197,17 @@ export default defineConfig({ ], }), starlightDocSearch({ - appId: "8MU1G3QO9P", - apiKey: "4edb0a6cef3338ff4bcfbc6b3d2db56b", - indexName: "TEST - Re-dev docs", + appId: "D32WIYFTUF", + apiKey: "5cec275adc19dd3bc17617f7d9cf312a", + indexName: "prod_devdocs", }), starlightImageZoom(), ] : [ starlightDocSearch({ - appId: "8MU1G3QO9P", - apiKey: "4edb0a6cef3338ff4bcfbc6b3d2db56b", - indexName: "TEST - Re-dev docs", + appId: "D32WIYFTUF", + apiKey: "5cec275adc19dd3bc17617f7d9cf312a", + indexName: "prod_devdocs", }), starlightImageZoom(), ], From 28abde070aa3aab1136da70d8de8a046afafd0a8 Mon Sep 17 00:00:00 2001 From: Kian Newman-Hazel Date: Fri, 13 Dec 2024 19:06:07 +0000 Subject: [PATCH 2/2] enable insights, clean-up runLinkCheck --- astro.config.ts | 70 +++++++++++++++++++++++-------------------------- 1 file changed, 33 insertions(+), 37 deletions(-) diff --git a/astro.config.ts b/astro.config.ts index a03d68ad63931cb..8d896947966d3bd 100644 --- a/astro.config.ts +++ b/astro.config.ts @@ -174,43 +174,39 @@ export default defineConfig({ "./src/tooltips.css", ], pagination: false, - plugins: runLinkCheck - ? [ - starlightLinksValidator({ - errorOnInvalidHashes: false, - errorOnLocalLinks: false, - exclude: [ - "/api/", - "/api/operations/**", - "/changelog/", - "/http/resources/**", - "{props.*}", - "/", - "**/glossary/?term=**", - "/products/?product-group=*", - "/products/", - "/rules/snippets/examples/?operation=*", - "/rules/transform/examples/?operation=*", - "/workers/examples/?languages=*", - "/workers/examples/?tags=*", - "/workers-ai/models/**", - ], - }), - starlightDocSearch({ - appId: "D32WIYFTUF", - apiKey: "5cec275adc19dd3bc17617f7d9cf312a", - indexName: "prod_devdocs", - }), - starlightImageZoom(), - ] - : [ - starlightDocSearch({ - appId: "D32WIYFTUF", - apiKey: "5cec275adc19dd3bc17617f7d9cf312a", - indexName: "prod_devdocs", - }), - starlightImageZoom(), - ], + plugins: [ + ...(runLinkCheck + ? [ + starlightLinksValidator({ + errorOnInvalidHashes: false, + errorOnLocalLinks: false, + exclude: [ + "/api/", + "/api/operations/**", + "/changelog/", + "/http/resources/**", + "{props.*}", + "/", + "**/glossary/?term=**", + "/products/?product-group=*", + "/products/", + "/rules/snippets/examples/?operation=*", + "/rules/transform/examples/?operation=*", + "/workers/examples/?languages=*", + "/workers/examples/?tags=*", + "/workers-ai/models/**", + ], + }), + ] + : []), + starlightDocSearch({ + appId: "D32WIYFTUF", + apiKey: "5cec275adc19dd3bc17617f7d9cf312a", + indexName: "prod_devdocs", + insights: true, + }), + starlightImageZoom(), + ], }), tailwind({ applyBaseStyles: false,