yew/website/sidebars.js
Julius Lungys 8d674c5fda
Add key docs and Move fragments docs (#2178)
* Add key docs

* add frogments to sodebar

* remove duplicate title

* Apply suggestions from code review

Co-authored-by: mc1098 <m.cripps1@uni.brighton.ac.uk>

* Apply suggestions from code review

Co-authored-by: Muhammad Hamza <muhammadhamza1311@gmail.com>

* remove html comments

Co-authored-by: mc1098 <m.cripps1@uni.brighton.ac.uk>
Co-authored-by: Muhammad Hamza <muhammadhamza1311@gmail.com>
2021-11-23 09:01:58 +05:00

114 lines
3.7 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: "wasm-bindgen",
items: [
"concepts/wasm-bindgen",
"concepts/wasm-bindgen/web-sys",
]
},
{
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/events",
"concepts/html/classes",
"concepts/html/fragments",
"concepts/html/lists",
"concepts/html/literals-and-expressions"
]
},
{
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",
"advanced-topics/portals",
]
},
{
type: 'category',
label: 'More',
items: [
"more/debugging",
"more/development-tips",
"more/external-libs",
"more/css",
"more/testing",
"more/roadmap",
"more/wasm-build-tools"
]
},
"tutorial"
],
};