Skip to content

Commit d14a105

Browse files
committed
fix: docs
1 parent f99ad61 commit d14a105

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

docs/cdps/more/index.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ sidebar_position: 7
1616
- [依賴關係](./dependencies.mdx)
1717
- [PyPI 依賴](./pip.mdx)
1818
- [日誌紀錄](./log.mdx)
19-
- [導入 依賴擴充 的 函數](./plugin.mdx)
19+
- [導入 擴充 的 函數](./plugin.mdx)

docs/cdps/more/plugin.mdx

+10-2
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,13 @@
22
sidebar_position: 11
33
---
44

5-
# 導入 依賴擴充 的 函數
6-
- 導入 所需依賴 中的 函數
5+
# 導入 擴充 的 函數
6+
- 導入 特定擴充 中的 函數
7+
:::tip
8+
- 使用絕對路徑,從 `./plugins` 開始計算。
9+
:::
10+
```py
11+
# main.py (report plugin)
12+
from plugins.report.src.events import onReport # 導入自己的 函數
13+
from plugins.discord_webhook import send_webhook # 導入 其他擴充 的 函數
14+
```

0 commit comments

Comments
 (0)