Skip to content

Commit

Permalink
docs: move pages to reduce dead links
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Feb 26, 2022
1 parent c7aecc0 commit 91a872c
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,21 +68,21 @@ module.exports = {
children: [
'/guide/message/middleware.md',
'/guide/message/session.md',
'/guide/message/message.md',
'/guide/message/segment.md',
],
}, {
text: '指令系统',
isGroup: true,
children: [
'/guide/command/command.md',
'/guide/command/index.md',
'/guide/command/execution.md',
'/guide/command/help.md',
],
}, {
text: '模块化',
isGroup: true,
children: [
'/guide/plugin/plugin.md',
'/guide/plugin/index.md',
'/guide/plugin/context.md',
'/guide/plugin/lifecycle.md',
'/guide/plugin/service.md',
Expand All @@ -92,7 +92,7 @@ module.exports = {
text: '数据库',
isGroup: true,
children: [
'/guide/database/database.md',
'/guide/database/index.md',
'/guide/database/builtin.md',
'/guide/database/observer.md',
'/guide/database/writing.md',
Expand All @@ -101,7 +101,7 @@ module.exports = {
text: '跨平台',
isGroup: true,
children: [
'/guide/adapter/adapter.md',
'/guide/adapter/index.md',
'/guide/adapter/bot.md',
'/guide/adapter/binding.md',
'/guide/adapter/writing.md',
Expand Down
2 changes: 1 addition & 1 deletion docs/api/core/context.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ type Plugin<U> = PluginFunction<T, U> | PluginObject<T, U>
- **plugin:** `Plugin` 要移除的插件
- 返回值: `void`

移除插件中所注册的钩子、中间件、指令和子插件等。`plugin` 是默认为当前上下文所在的插件。如果既没有提供 `plugin`,上下文也不是一个插件上下文的话,会抛出一个错误。参见 [卸载插件](../../guide/plugin/plugin.md#卸载插件)
移除插件中所注册的钩子、中间件、指令和子插件等。`plugin` 是默认为当前上下文所在的插件。如果既没有提供 `plugin`,上下文也不是一个插件上下文的话,会抛出一个错误。参见 [卸载插件](../../guide/plugin/#卸载插件)

## 静态属性和方法

Expand Down
8 changes: 4 additions & 4 deletions docs/api/glossary.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sidebarDepth: 2

参考:

- [跨平台 / 使用适配器](../adapter/adapter.md)
- [跨平台 / 使用适配器](../adapter/)
- [API 文档 / 适配器 (Adapter)](../../api/core/adapter.md)

## 应用 (App)
Expand Down Expand Up @@ -59,7 +59,7 @@ sidebarDepth: 2

参考:

- [数据库 / 使用数据库](../database/database.md)
- [数据库 / 使用数据库](../database/)
- [API 文档 / 数据库 (Database)](../../api/core/database.md)

## 事件 (Events)
Expand Down Expand Up @@ -101,7 +101,7 @@ sidebarDepth: 2

参考:

- [复用性 / 使用插件](../plugin/plugin.md)
- [复用性 / 使用插件](../plugin/)

## 协议 (Protocol)

Expand All @@ -122,7 +122,7 @@ sidebarDepth: 2

参考:

- [处理交互 / 使用消息段](../message/message.md#使用消息段)
- [处理交互 / 使用消息段](../message/segment.md)
- [API 文档 / 消息段 (Segment)](../../api/utils/segment.md)

## 服务 (Service)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/guide/plugin/plugin.md → docs/guide/plugin/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ sidebarDepth: 2

# 编写插件

[代码起步](../introduction/direct.md) 一章中,我们已经学习了基础的插件开发范例。本章将介绍更多的插件编写方式,以及一些场景下的最佳实践。
[直接调用 Koishi](../introduction/direct.md) 一章中,我们已经学习了基础的插件开发范例。本章将介绍更多的插件编写方式,以及一些场景下的最佳实践。

## 插件的基本形式

Expand Down

0 comments on commit 91a872c

Please sign in to comment.