From 7e04c69be2185692dd67ff2c1c8aa1f82516b4fe Mon Sep 17 00:00:00 2001 From: Kazuma Ohashi Date: Wed, 9 Nov 2022 18:38:58 +0900 Subject: [PATCH] fix: typo (#397) --- docs/concepts/{architechture.md => architecture.md} | 0 docs/toc.json | 2 +- www/routes/docs/[...slug].tsx | 7 +++++++ 3 files changed, 8 insertions(+), 1 deletion(-) rename docs/concepts/{architechture.md => architecture.md} (100%) diff --git a/docs/concepts/architechture.md b/docs/concepts/architecture.md similarity index 100% rename from docs/concepts/architechture.md rename to docs/concepts/architecture.md diff --git a/docs/toc.json b/docs/toc.json index 30e3d31..ab89acf 100644 --- a/docs/toc.json +++ b/docs/toc.json @@ -19,7 +19,7 @@ "concepts": { "title": "Concepts", "pages": [ - ["architechture", "Architecture"], + ["architecture", "Architecture"], ["routes", "Routes"], ["islands", "Interactive islands"], ["static-files", "Static files"], diff --git a/www/routes/docs/[...slug].tsx b/www/routes/docs/[...slug].tsx index 8b7baf2..de6c452 100644 --- a/www/routes/docs/[...slug].tsx +++ b/www/routes/docs/[...slug].tsx @@ -31,6 +31,13 @@ export const handler: Handlers = { headers: { location: "/docs/introduction" }, }); } + if (slug === "concepts/architechture") { + return new Response("", { + status: 307, + headers: { location: "/docs/concepts/architecture" }, + }); + } + const entry = TABLE_OF_CONTENTS[slug]; if (!entry) { return ctx.renderNotFound();