From e6268f319d02ece05498b350d5cd4e97e456ab4d Mon Sep 17 00:00:00 2001 From: yanyongyu Date: Wed, 18 Nov 2020 08:48:23 +0800 Subject: [PATCH] :memo: add advanced and changelog --- docs/.vuepress/config.js | 17 ++++++++++++++++- docs/advanced/README.md | 7 +++++++ docs/advanced/permission.md | 1 + docs/advanced/runtime-hook.md | 1 + docs/advanced/scheduler.md | 1 + docs/guide/README.md | 6 ------ docs/guide/end-or-start.md | 2 ++ pages/changelog.md | 12 ++++++++++++ 8 files changed, 40 insertions(+), 7 deletions(-) create mode 100644 docs/advanced/README.md create mode 100644 docs/advanced/permission.md create mode 100644 docs/advanced/runtime-hook.md create mode 100644 docs/advanced/scheduler.md create mode 100644 pages/changelog.md diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index 009bc113..8faed7a5 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -79,8 +79,10 @@ module.exports = context => ({ nav: [ { text: "主页", link: "/" }, { text: "指南", link: "/guide/" }, + { text: "进阶", link: "/advanced/" }, { text: "API", link: "/api/" }, - { text: "插件广场", link: "/plugin-store" } + { text: "插件广场", link: "/plugin-store" }, + { text: "更新日志", link: "/changelog" } ], sidebarDepth: 2, sidebar: { @@ -110,6 +112,19 @@ module.exports = context => ({ ] } ], + "/advanced/": [ + { + title: "进阶", + collapsable: false, + sidebar: "auto", + children: [ + "", + "scheduler", + "permission", + "runtime-hook" + ] + } + ], "/api/": [ { title: "NoneBot Api Reference", diff --git a/docs/advanced/README.md b/docs/advanced/README.md new file mode 100644 index 00000000..92c6af3e --- /dev/null +++ b/docs/advanced/README.md @@ -0,0 +1,7 @@ +# 深入 + +## 它如何工作? + + + +~~未填坑~~ diff --git a/docs/advanced/permission.md b/docs/advanced/permission.md new file mode 100644 index 00000000..30e20002 --- /dev/null +++ b/docs/advanced/permission.md @@ -0,0 +1 @@ +# 权限控制 \ No newline at end of file diff --git a/docs/advanced/runtime-hook.md b/docs/advanced/runtime-hook.md new file mode 100644 index 00000000..ed3968a4 --- /dev/null +++ b/docs/advanced/runtime-hook.md @@ -0,0 +1 @@ +# 运行时插槽 \ No newline at end of file diff --git a/docs/advanced/scheduler.md b/docs/advanced/scheduler.md new file mode 100644 index 00000000..99d906d3 --- /dev/null +++ b/docs/advanced/scheduler.md @@ -0,0 +1 @@ +# 定时任务 \ No newline at end of file diff --git a/docs/guide/README.md b/docs/guide/README.md index 43b7f325..cacb58ac 100644 --- a/docs/guide/README.md +++ b/docs/guide/README.md @@ -18,12 +18,6 @@ NoneBot2 是一个可扩展的 Python 异步机器人框架,它会对机器人 需要注意的是,NoneBot 仅支持 Python 3.7+ 及 CQHTTP(OneBot) 插件 v11+。 -## 它如何工作? - - - -~~未填坑~~ - ## 特色 - 提供直观的测试前端 diff --git a/docs/guide/end-or-start.md b/docs/guide/end-or-start.md index f1b0baa9..11780114 100644 --- a/docs/guide/end-or-start.md +++ b/docs/guide/end-or-start.md @@ -5,3 +5,5 @@ - 请千万注意事件处理器的优先级设定 - 在匹配规则中请勿使用耗时极长的函数 - 同一个用户可以**跨群**(**私聊**)继续他的事件处理(除非做出权限限制,将在后续介绍) + +如果你还不能满足,前往 [进阶](../advanced/README.md) 获得更多的功能信息。 diff --git a/pages/changelog.md b/pages/changelog.md new file mode 100644 index 00000000..1d8a9cac --- /dev/null +++ b/pages/changelog.md @@ -0,0 +1,12 @@ +--- +sidebar: auto +--- + +# 更新日志 + +## v2.0.0a6 + +## v2.0.0a5 + +- 更新插件指南文档 +- 修复临时事件响应器运行后删除造成的多次响应问题