www: convert toc to .ts (#1381)

This commit is contained in:
Reed von Redwitz
2023-07-04 10:49:00 +02:00
committed by GitHub
parent 45ba10e9ee
commit efcaec3658
2 changed files with 28 additions and 23 deletions
+20 -11
View File
@@ -1,6 +1,13 @@
{
type RawTableOfContents = Record<string, RawTableOfContentsEntry>;
interface RawTableOfContentsEntry {
title: string;
pages?: [string, string][];
}
const toc: RawTableOfContents = {
"introduction": {
"title": "Introduction"
"title": "Introduction",
},
"getting-started": {
"title": "Getting Started",
@@ -13,8 +20,8 @@
["fetching-data", "Fetching data"],
["form-submissions", "Form submissions"],
["adding-interactivity", "Adding interactivity"],
["deploy-to-production", "Deploy to production"]
]
["deploy-to-production", "Deploy to production"],
],
},
"concepts": {
"title": "Concepts",
@@ -32,11 +39,11 @@
["plugins", "Plugins"],
["updating", "Updating Fresh"],
["app-wrapper", "Application wrapper"],
["server-configuration", "Server configuration"]
]
["server-configuration", "Server configuration"],
],
},
"integrations": {
"title": "Integrations"
"title": "Integrations",
},
"examples": {
"title": "Examples",
@@ -52,7 +59,9 @@
["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"]
]
}
}
["sharing-state-between-islands", "Sharing state between islands"],
],
},
};
export default toc;