📝 Docs: 重写教程与进阶指南 (#1604)

Co-authored-by: Johnny Hsieh <32300164+mnixry@users.noreply.github.com>
This commit is contained in:
Ju4tCode
2023-03-24 16:34:21 +08:00
committed by GitHub
parent 8977be2985
commit 18beb63d55
165 changed files with 6443 additions and 15655 deletions

View File

@ -13,26 +13,30 @@
/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
const sidebars = {
// By default, Docusaurus generates a sidebar from the docs folder structure
tutorial: [
"index",
{
type: "category",
label: "开始",
collapsible: false,
items: ["index", "quick-start", "editor-support"],
},
{
type: "category",
label: "指南",
items: [
{
type: "autogenerated",
dirName: "start",
dirName: "tutorial",
},
],
},
{
type: "category",
label: "教程",
label: "深入",
items: [
{
type: "autogenerated",
dirName: "tutorial",
dirName: "appendices",
},
],
},
@ -46,19 +50,53 @@ const sidebars = {
},
],
},
],
api: [{ type: "autogenerated", dirName: "api" }],
// But you can create a sidebar manually
/*
tutorialSidebar: [
{
type: 'category',
label: 'Tutorial',
items: ['hello'],
type: "category",
label: "最佳实践",
items: [
{
type: "autogenerated",
dirName: "best-practice",
},
],
},
{
type: "category",
label: "开发者",
items: [
{
type: "autogenerated",
dirName: "developer",
},
],
},
],
api: [{ type: "autogenerated", dirName: "api" }],
ecosystem: [
{
type: "category",
label: "关于我们",
collapsible: false,
items: [
{
type: "autogenerated",
dirName: "community",
},
],
},
{
type: "category",
label: "社区资源",
collapsible: false,
items: [
{
type: "link",
label: "商店",
href: "/store",
},
],
},
],
*/
};
module.exports = sidebars;