From b52a7e18080a92f0d402f28300cf0fdf320dec6b Mon Sep 17 00:00:00 2001 From: Jacob Bednarz Date: Tue, 17 Dec 2024 12:38:58 +1100 Subject: [PATCH] ci: skip all /api/ links for the validation The CI step gives a false positive that these URLs are invalid despite them being correct; they just live outside of the developer docs --- astro.config.ts | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/astro.config.ts b/astro.config.ts index 8d896947966d3bd..73608409e7b96ae 100644 --- a/astro.config.ts +++ b/astro.config.ts @@ -177,27 +177,27 @@ export default defineConfig({ 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/**", - ], - }), - ] + starlightLinksValidator({ + errorOnInvalidHashes: false, + errorOnLocalLinks: false, + exclude: [ + "/api/", + "/api/**", + "/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",