mirror of https://github.com/yewstack/yew
110 lines
3.5 KiB
JavaScript
110 lines
3.5 KiB
JavaScript
/**
|
|
* Creating a sidebar enables you to:
|
|
- create an ordered group of docs
|
|
- render a sidebar for each doc of that group
|
|
- provide next/previous navigation
|
|
|
|
The sidebars can be generated from the filesystem, or explicitly defined here.
|
|
|
|
Create as many sidebars as you want.
|
|
*/
|
|
|
|
module.exports = {
|
|
// By default, Docusaurus generates a sidebar from the docs folder structure
|
|
// conceptsSidebar: [{type: 'autogenerated', dirName: '.'}],
|
|
|
|
// But you can create a sidebar manually
|
|
sidebar: [
|
|
"intro",
|
|
{
|
|
type: 'category',
|
|
label: 'Getting Started',
|
|
items: [
|
|
"getting-started/build-a-sample-app",
|
|
"getting-started/examples",
|
|
"getting-started/starter-templates",
|
|
{
|
|
type: 'category',
|
|
label: 'Project Setup',
|
|
items: [
|
|
'getting-started/project-setup',
|
|
'getting-started/project-setup/using-trunk',
|
|
'getting-started/project-setup/using-wasm-pack',
|
|
]
|
|
}
|
|
],
|
|
},
|
|
{
|
|
type: "category",
|
|
label: "Concepts",
|
|
items: [
|
|
{
|
|
type: "category",
|
|
label: "Components",
|
|
items: [
|
|
"concepts/components",
|
|
"concepts/components/callbacks",
|
|
"concepts/components/properties",
|
|
"concepts/components/children",
|
|
"concepts/components/refs"
|
|
],
|
|
},
|
|
{
|
|
type: "category",
|
|
label: "HTML",
|
|
items: [
|
|
"concepts/html",
|
|
"concepts/html/components",
|
|
"concepts/html/elements",
|
|
"concepts/html/classes",
|
|
"concepts/html/lists",
|
|
"concepts/html/literals-and-expressions"
|
|
]
|
|
},
|
|
{
|
|
type: "category",
|
|
label: "Services",
|
|
items: [
|
|
"concepts/services",
|
|
"concepts/services/fetch",
|
|
"concepts/services/format"
|
|
]
|
|
},
|
|
{
|
|
type: "category",
|
|
label: "Function Components",
|
|
items: [
|
|
"concepts/function-components",
|
|
"concepts/function-components/attribute",
|
|
"concepts/function-components/pre-defined-hooks",
|
|
"concepts/function-components/custom-hooks",
|
|
]
|
|
},
|
|
"concepts/agents",
|
|
"concepts/contexts",
|
|
"concepts/router",
|
|
]
|
|
},
|
|
{
|
|
type: 'category',
|
|
label: 'Advanced topics',
|
|
items: [
|
|
"advanced-topics/how-it-works",
|
|
"advanced-topics/optimizations",
|
|
]
|
|
},
|
|
{
|
|
type: 'category',
|
|
label: 'More',
|
|
items: [
|
|
"more/debugging",
|
|
"more/development-tips",
|
|
"more/css",
|
|
"more/testing",
|
|
"more/roadmap",
|
|
"more/wasm-build-tools"
|
|
]
|
|
},
|
|
],
|
|
};
|