Skip to content

Commit a60f0e1

Browse files
authored
Revert "use hyphen in docs" (#1244)
1 parent 766dc95 commit a60f0e1

File tree

3 files changed

+1
-14
lines changed

3 files changed

+1
-14
lines changed

docs-site/src/index.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,10 @@ export default {
33
const r = await env.ASSETS.fetch(request)
44
if (r.status == 404) {
55
const url = new URL(request.url)
6-
const redirectPath = redirect(url.pathname)
7-
if (redirectPath) {
8-
url.pathname = redirectPath
9-
return Response.redirect(url.toString(), 301)
10-
}
116
url.pathname = '/404.html'
127
const r = await env.ASSETS.fetch(url)
138
return new Response(r.body, { status: 404 })
149
}
1510
return r
1611
},
1712
} satisfies ExportedHandler<Env>
18-
19-
const redirect_lookup: Record<string, string> = {
20-
'/common_tools/': '/common-tools/',
21-
}
22-
23-
function redirect(pathname: string): string | null {
24-
return redirect_lookup[pathname] ?? null
25-
}
File renamed without changes.

mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ nav:
2020
- models.md
2121
- dependencies.md
2222
- tools.md
23-
- common-tools.md
23+
- common_tools.md
2424
- results.md
2525
- message-history.md
2626
- testing-evals.md

0 commit comments

Comments
 (0)