From 0fedd3c4065f06d57e55178368be8e933ec2e2a5 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 15 Oct 2026 17:08:13 +0000 Subject: [PATCH] fix(docs): route the dashboard tour page The [slug] route filtered dashboard-tour out of getStaticPaths while the sidebar, docs index, prev/next cards and Features page still linked to it, so /docs/dashboard-tour/ returned a 404. Generate it like every other doc. Fixes #8 Co-Authored-By: Claude Opus 5.5 (1M context) Signed-off-by: Claude --- src/pages/docs/[slug].astro | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/src/pages/docs/[slug].astro b/src/pages/docs/[slug].astro index 1a95e60..437ee0b 100644 --- a/src/pages/docs/[slug].astro +++ b/src/pages/docs/[slug].astro @@ -6,19 +6,14 @@ import { getOrderedDocs, docHref, sidebarLabel } from "../../lib/docs-nav"; export async function getStaticPaths() { const docs = await getOrderedDocs(); - return docs - .filter((doc) => doc.id !== "dashboard-tour") - .map((doc) => { - const index = docs.findIndex((entry) => entry.id === doc.id); - return { - params: { slug: doc.id }, - props: { - doc, - prev: index > 0 ? docs[index - 1] : null, - next: index < docs.length - 1 ? docs[index + 1] : null, - }, - }; - }); + return docs.map((doc, index) => ({ + params: { slug: doc.id }, + props: { + doc, + prev: index > 0 ? docs[index - 1] : null, + next: index < docs.length - 1 ? docs[index + 1] : null, + }, + })); } type Props = InferGetStaticPropsType;