docs: make 2.x the default version (#3369)

This commit is contained in:
Marvin Hagemeister
2025-09-09 14:36:51 +02:00
committed by GitHub
parent 2c315a9972
commit 79d8cfc3ed
109 changed files with 1589 additions and 1502 deletions
+3
View File
@@ -39,6 +39,9 @@ export default function ErrorPage(props: PageProps) {
}
}
// deno-lint-ignore no-console
console.error(error);
return ServerCodePage({
serverCode: 500,
codeDescription: "Oops! Something went wrong.",
+2 -2
View File
@@ -3,8 +3,8 @@ import type { Context } from "fresh";
const REDIRECTS: Record<string, string> = {
"/docs/getting-started/fetching-data":
"/docs/getting-started/custom-handlers",
"/docs/canary/examples/modifying-the-head": "/docs/canary/advanced/head",
"/docs/canary/concepts/builder": "/docs/canary/advanced/builder",
"/docs/canary/examples/modifying-the-head": "/docs/advanced/head",
"/docs/canary/concepts/builder": "/docs/advanced/builder",
};
export async function handler<T>(ctx: Context<T>) {
+2 -4
View File
@@ -47,9 +47,7 @@ export const handler = define.handlers({
},
});
export default define.page<typeof handler>(function MainPage(props) {
const origin = `${props.url.protocol}//${props.url.host}`;
export default define.page<typeof handler>(function MainPage() {
return (
<div class="flex flex-col min-h-screen bg-white">
<div class="bg-transparent flex flex-col relative z-10">
@@ -57,7 +55,7 @@ export default define.page<typeof handler>(function MainPage(props) {
<Header title="" active="/" />
</div>
<div class="flex flex-col -mt-20 relative">
<Hero origin={origin} />
<Hero />
<Simple />
<RenderingSection />
<IslandsSection />