Files
sweet/docs/toc.ts
T

68 lines
2.1 KiB
TypeScript

type RawTableOfContents = Record<string, RawTableOfContentsEntry>;
interface RawTableOfContentsEntry {
title: string;
pages?: [string, string][];
}
const toc: RawTableOfContents = {
"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"],
],
},
};
export default toc;