📝 add plugin docs

This commit is contained in:
yanyongyu
2021-12-27 22:08:59 +08:00
parent 7690f0e640
commit 0f5a4473ab
27 changed files with 218 additions and 222 deletions

View File

@ -15,80 +15,37 @@
const sidebars = {
// By default, Docusaurus generates a sidebar from the docs folder structure
tutorial: [
"index",
{
type: "autogenerated",
dirName: "guide",
type: "category",
label: "开始",
items: [
{
type: "autogenerated",
dirName: "start",
},
],
},
{
type: "category",
label: "教程",
items: [
{
type: "autogenerated",
dirName: "tutorial",
},
],
},
{
type: "category",
label: "进阶",
items: [
{
type: "autogenerated",
dirName: "advanced",
},
],
},
// {
// type: "category",
// label: "指南",
// items: [
// {
// type: "category",
// label: "开始",
// collapsible: false,
// items: [
// "guide/index",
// "guide/installation",
// "guide/getting-started",
// "guide/creating-a-project",
// "guide/basic-configuration",
// ],
// },
// {
// type: "category",
// label: "编写插件",
// collapsible: false,
// items: [
// "guide/loading-a-plugin",
// "guide/creating-a-plugin",
// "guide/creating-a-matcher",
// "guide/creating-a-handler",
// "guide/end-or-start",
// ],
// },
// {
// type: "category",
// label: "协议适配",
// collapsible: false,
// items: [
// "guide/cqhttp-guide",
// "guide/ding-guide",
// "guide/mirai-guide",
// "guide/feishu-guide",
// ],
// },
// ],
// },
// {
// type: "category",
// label: "进阶",
// items: [
// {
// type: "category",
// label: "进阶",
// collapsible: false,
// items: [
// "advanced/index",
// "advanced/scheduler",
// "advanced/permission",
// "advanced/runtime-hook",
// "advanced/export-and-require",
// {
// type: "category",
// label: "高级事件处理",
// items: [{ type: "autogenerated", dirName: "advanced/handler" }],
// },
// ],
// },
// {
// type: "category",
// label: "发布",
// collapsible: false,
// items: ["advanced/publish-plugin"],
// },
// ],
// },
],
api: [{ type: "autogenerated", dirName: "api" }],