diff --git a/docs-site/src/index.ts b/docs-site/src/index.ts index d0fa3bc2b2..b79ef923ad 100644 --- a/docs-site/src/index.ts +++ b/docs-site/src/index.ts @@ -3,11 +3,6 @@ export default { const r = await env.ASSETS.fetch(request) if (r.status == 404) { const url = new URL(request.url) - const redirectPath = redirect(url.pathname) - if (redirectPath) { - url.pathname = redirectPath - return Response.redirect(url.toString(), 301) - } url.pathname = '/404.html' const r = await env.ASSETS.fetch(url) return new Response(r.body, { status: 404 }) @@ -15,11 +10,3 @@ export default { return r }, } satisfies ExportedHandler - -const redirect_lookup: Record = { - '/common_tools/': '/common-tools/', -} - -function redirect(pathname: string): string | null { - return redirect_lookup[pathname] ?? null -} diff --git a/docs/common-tools.md b/docs/common_tools.md similarity index 100% rename from docs/common-tools.md rename to docs/common_tools.md diff --git a/mkdocs.yml b/mkdocs.yml index 0659d8c02e..8c17e1aff4 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -20,7 +20,7 @@ nav: - models.md - dependencies.md - tools.md - - common-tools.md + - common_tools.md - results.md - message-history.md - testing-evals.md