www: add versioning to docs (#1400)
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
---
|
||||
description: |
|
||||
Learn more about Fresh canary releases
|
||||
---
|
||||
|
||||
The canary version represents the current development state of Fresh. It's
|
||||
intended for testing work in progress features before it lands in a stable
|
||||
release. Whenever new code is merged into the `main` branch on
|
||||
[GitHub](https://github.com/denoland/fresh) a new canary version is created that
|
||||
matches the hash of the git commit.
|
||||
|
||||
With the addition of new features that are not yet in a stable release, we need
|
||||
a place to update our documentation. That's what this section of the
|
||||
documentation is about. It contains all information about unreleased features
|
||||
and changes that will land in a stable release.
|
||||
+151
-56
@@ -1,66 +1,161 @@
|
||||
type RawTableOfContents = Record<string, RawTableOfContentsEntry>;
|
||||
import FRESH_VERSIONS from "../versions.json" assert { type: "json" };
|
||||
|
||||
type RawTableOfContents = Record<
|
||||
string,
|
||||
{
|
||||
label: string;
|
||||
content: Record<string, RawTableOfContentsEntry>;
|
||||
}
|
||||
>;
|
||||
|
||||
interface RawTableOfContentsEntry {
|
||||
title: string;
|
||||
pages?: [string, string][];
|
||||
link?: string;
|
||||
pages?: [string, string, string?][];
|
||||
}
|
||||
|
||||
const toc: RawTableOfContents = {
|
||||
"introduction": {
|
||||
"title": "Introduction",
|
||||
canary: {
|
||||
label: "canary",
|
||||
content: {
|
||||
"the-canary-version": {
|
||||
title: "The canary version",
|
||||
},
|
||||
introduction: {
|
||||
title: "Introduction",
|
||||
link: "latest",
|
||||
},
|
||||
"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"],
|
||||
["fetching-data", "Fetching data", "link:latest"],
|
||||
["form-submissions", "Form submissions", "link:latest"],
|
||||
["adding-interactivity", "Adding interactivity", "link:latest"],
|
||||
["deploy-to-production", "Deploy to production", "link:latest"],
|
||||
],
|
||||
},
|
||||
concepts: {
|
||||
title: "Concepts",
|
||||
link: "latest",
|
||||
pages: [
|
||||
["architecture", "Architecture", "link:latest"],
|
||||
["routes", "Routes", "link:latest"],
|
||||
["forms", "Forms", "link:latest"],
|
||||
["islands", "Interactive islands", "link:latest"],
|
||||
["static-files", "Static files", "link:latest"],
|
||||
["middleware", "Route middleware", "link:latest"],
|
||||
["error-pages", "Error pages", "link:latest"],
|
||||
["routing", "Routing", "link:latest"],
|
||||
["data-fetching", "Data fetching", "link:latest"],
|
||||
["deployment", "Deployment", "link:latest"],
|
||||
["plugins", "Plugins", "link:latest"],
|
||||
["updating", "Updating Fresh", "link:latest"],
|
||||
["app-wrapper", "Application wrapper", "link:latest"],
|
||||
["server-configuration", "Server configuration", "link:latest"],
|
||||
],
|
||||
},
|
||||
integrations: {
|
||||
title: "Integrations",
|
||||
link: "latest",
|
||||
},
|
||||
examples: {
|
||||
title: "Examples",
|
||||
link: "latest",
|
||||
pages: [
|
||||
["modifying-the-head", "Modifying the <head>", "link:latest"],
|
||||
["setting-the-language", "Setting the language", "link:latest"],
|
||||
["writing-tests", "Writing tests", "link:latest"],
|
||||
[
|
||||
"changing-the-src-dir",
|
||||
"Changing the source directory",
|
||||
"link:latest",
|
||||
],
|
||||
["using-twind-v1", "Using Twind v1", "link:latest"],
|
||||
["init-the-server", "Initializing the server", "link:latest"],
|
||||
[
|
||||
"using-fresh-canary-version",
|
||||
"Using Fresh canary version",
|
||||
"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"],
|
||||
[
|
||||
"sharing-state-between-islands",
|
||||
"Sharing state between islands",
|
||||
"link:latest",
|
||||
],
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
"getting-started": {
|
||||
"title": "Getting Started",
|
||||
"pages": [
|
||||
["create-a-project", "Create a project"],
|
||||
["running-locally", "Running locally"],
|
||||
["create-a-route", "Create a route"],
|
||||
["dynamic-routes", "Dynamic routes"],
|
||||
["custom-handlers", "Custom handlers"],
|
||||
["fetching-data", "Fetching data"],
|
||||
["form-submissions", "Form submissions"],
|
||||
["adding-interactivity", "Adding interactivity"],
|
||||
["deploy-to-production", "Deploy to production"],
|
||||
],
|
||||
},
|
||||
"concepts": {
|
||||
"title": "Concepts",
|
||||
"pages": [
|
||||
["architecture", "Architecture"],
|
||||
["routes", "Routes"],
|
||||
["forms", "Forms"],
|
||||
["islands", "Interactive islands"],
|
||||
["static-files", "Static files"],
|
||||
["middleware", "Route middleware"],
|
||||
["error-pages", "Error pages"],
|
||||
["routing", "Routing"],
|
||||
["data-fetching", "Data fetching"],
|
||||
["deployment", "Deployment"],
|
||||
["plugins", "Plugins"],
|
||||
["updating", "Updating Fresh"],
|
||||
["app-wrapper", "Application wrapper"],
|
||||
["server-configuration", "Server configuration"],
|
||||
],
|
||||
},
|
||||
"integrations": {
|
||||
"title": "Integrations",
|
||||
},
|
||||
"examples": {
|
||||
"title": "Examples",
|
||||
"pages": [
|
||||
["modifying-the-head", "Modifying the <head>"],
|
||||
["setting-the-language", "Setting the language"],
|
||||
["writing-tests", "Writing tests"],
|
||||
["changing-the-src-dir", "Changing the source directory"],
|
||||
["using-twind-v1", "Using Twind v1"],
|
||||
["init-the-server", "Initializing the server"],
|
||||
["using-fresh-canary-version", "Using Fresh canary version"],
|
||||
["dealing-with-cors", "Dealing with CORS"],
|
||||
["creating-a-crud-api", "Creating a CRUD API"],
|
||||
["handling-complex-routes", "Handling complex routes"],
|
||||
["rendering-markdown", "Rendering markdown"],
|
||||
["sharing-state-between-islands", "Sharing state between islands"],
|
||||
],
|
||||
latest: {
|
||||
label: FRESH_VERSIONS[0],
|
||||
content: {
|
||||
introduction: {
|
||||
title: "Introduction",
|
||||
},
|
||||
"getting-started": {
|
||||
title: "Getting Started",
|
||||
pages: [
|
||||
["create-a-project", "Create a project"],
|
||||
["running-locally", "Running locally"],
|
||||
["create-a-route", "Create a route"],
|
||||
["dynamic-routes", "Dynamic routes"],
|
||||
["custom-handlers", "Custom handlers"],
|
||||
["fetching-data", "Fetching data"],
|
||||
["form-submissions", "Form submissions"],
|
||||
["adding-interactivity", "Adding interactivity"],
|
||||
["deploy-to-production", "Deploy to production"],
|
||||
],
|
||||
},
|
||||
concepts: {
|
||||
title: "Concepts",
|
||||
pages: [
|
||||
["architecture", "Architecture"],
|
||||
["routes", "Routes"],
|
||||
["forms", "Forms"],
|
||||
["islands", "Interactive islands"],
|
||||
["static-files", "Static files"],
|
||||
["middleware", "Route middleware"],
|
||||
["error-pages", "Error pages"],
|
||||
["routing", "Routing"],
|
||||
["data-fetching", "Data fetching"],
|
||||
["deployment", "Deployment"],
|
||||
["plugins", "Plugins"],
|
||||
["updating", "Updating Fresh"],
|
||||
["app-wrapper", "Application wrapper"],
|
||||
["server-configuration", "Server configuration"],
|
||||
],
|
||||
},
|
||||
integrations: {
|
||||
title: "Integrations",
|
||||
},
|
||||
examples: {
|
||||
title: "Examples",
|
||||
pages: [
|
||||
["modifying-the-head", "Modifying the <head>"],
|
||||
["setting-the-language", "Setting the language"],
|
||||
["writing-tests", "Writing tests"],
|
||||
["changing-the-src-dir", "Changing the source directory"],
|
||||
["using-twind-v1", "Using Twind v1"],
|
||||
["init-the-server", "Initializing the server"],
|
||||
["using-fresh-canary-version", "Using Fresh canary version"],
|
||||
["dealing-with-cors", "Dealing with CORS"],
|
||||
["creating-a-crud-api", "Creating a CRUD API"],
|
||||
["handling-complex-routes", "Handling complex routes"],
|
||||
["rendering-markdown", "Rendering markdown"],
|
||||
["sharing-state-between-islands", "Sharing state between islands"],
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user