diff --git a/services/www/script/validate-links.ts b/services/www/script/validate-links.ts index 8ebeba0d87b..ea7d913de0b 100644 --- a/services/www/script/validate-links.ts +++ b/services/www/script/validate-links.ts @@ -1,6 +1,7 @@ import path from "node:path" const root = path.resolve(import.meta.dir, "../dist/client") +const externalRoutes = new Set(["/docs"]) const files = await Array.fromAsync(new Bun.Glob("**/*.html").scan({ cwd: root, absolute: true })) const failures = ( await Promise.all( @@ -11,6 +12,7 @@ const failures = ( Array.from(html.matchAll(/href="([^"]+)"/g), async (match) => { const url = new URL(match[1], page) if (url.origin !== "https://opencode.local") return + if (externalRoutes.has(url.pathname)) return const targetPath = path.join(root, decodeURIComponent(url.pathname)) const target = ( diff --git a/services/www/src/docs/components/DocsHeader.astro b/services/www/src/docs/components/DocsHeader.astro index b6930553778..99d790d35aa 100644 --- a/services/www/src/docs/components/DocsHeader.astro +++ b/services/www/src/docs/components/DocsHeader.astro @@ -23,6 +23,7 @@ const searchEnabled = import.meta.env.PROD )) } + V1
{