docs: update canary docs for Fresh 2 (#3108)

There are still some rough edges here and there, but it's in a much
better shape than what we have today.
This commit is contained in:
Marvin Hagemeister
2025-07-18 15:18:38 +02:00
committed by GitHub
parent a66e0df08d
commit a703e79181
29 changed files with 2094 additions and 62 deletions
+44 -46
View File
@@ -18,54 +18,61 @@ const toc: RawTableOfContents = {
canary: {
label: "canary",
content: {
"the-canary-version": {
title: "The canary version",
},
introduction: {
title: "Introduction",
link: "latest",
link: "canary",
},
"getting-started": {
title: "Getting Started",
link: "latest",
pages: [
["create-a-project", "Create a project", "link:latest"],
["running-locally", "Running locally", "link:latest"],
["create-a-route", "Create a route", "link:latest"],
["dynamic-routes", "Dynamic routes", "link:latest"],
["custom-handlers", "Custom handlers", "link:latest"],
["form-submissions", "Form submissions", "link:latest"],
["adding-interactivity", "Adding interactivity", "link:latest"],
["deploy-to-production", "Deploy to production", "link:latest"],
],
link: "canary",
},
concepts: {
title: "Concepts",
link: "latest",
link: "canary",
pages: [
["architecture", "Architecture", "link:latest"],
["server-components", "Server Components", "link:latest"],
["routing", "Routing", "link:latest"],
["routes", "Routes", "link:latest"],
["app-wrapper", "App wrapper", "link:latest"],
["layouts", "Layouts", "link:latest"],
["forms", "Forms", "link:latest"],
["islands", "Interactive islands", "link:latest"],
["static-files", "Static files", "link:latest"],
["middleware", "Middlewares", "link:latest"],
["error-pages", "Error pages", "link:latest"],
["partials", "Partials", "link:latest"],
["data-fetching", "Data fetching", "link:latest"],
["ahead-of-time-builds", "Ahead-of-time Builds", "link:latest"],
["deployment", "Deployment", "link:latest"],
["plugins", "Plugins", "link:latest"],
["updating", "Updating Fresh", "link:latest"],
["server-configuration", "Server configuration", "link:latest"],
["app", "App", "link:canary"],
["middleware", "Middlewares", "link:canary"],
["context", "Context", "link:canary"],
["routing", "Routing", "link:canary"],
["islands", "Islands", "link:canary"],
["static-files", "Static files", "link:canary"],
["file-routing", "File routing", "link:canary"],
],
},
integrations: {
title: "Integrations",
link: "latest",
advanced: {
title: "Advanced",
link: "canary",
pages: [
["app-wrapper", "App wrapper", "link:canary"],
["layouts", "Layouts", "link:canary"],
["error-handling", "Error handling", "link:canary"],
["partials", "Partials", "link:canary"],
["forms", "Forms", "link:canary"],
],
},
deployment: {
title: "Deployment",
link: "canary",
pages: [
["production", "Production builds", "link:canary"],
["deno-deploy", "Deno Deploy", "link:canary"],
["docker", "Docker", "link:canary"],
],
},
testing: {
title: "Testing",
link: "canary",
},
plugins: {
title: "Plugins",
link: "canary",
pages: [
["cors", "cors", "link:canary"],
["trailing-slashes", "trailingSlashes", "link:canary"],
],
},
examples: {
title: "Examples",
@@ -73,16 +80,7 @@ const toc: RawTableOfContents = {
pages: [
["migration-guide", "Migration Guide", "link:canary"],
["modifying-the-head", "Modifying the <head>", "link:latest"],
["writing-tests", "Writing tests", "link:latest"],
[
"changing-the-src-dir",
"Changing the source directory",
"link:latest",
],
["init-the-server", "Initializing the server", "link:latest"],
["dealing-with-cors", "Dealing with CORS", "link:latest"],
["creating-a-crud-api", "Creating a CRUD API", "link:latest"],
["handling-complex-routes", "Handling complex routes", "link:latest"],
["rendering-markdown", "Rendering markdown", "link:latest"],
["rendering-raw-html", "Rendering raw HTML", "link:latest"],
[