📝 migrate admonition title syntax to Docusaurus v3 bracket form

This commit is contained in:
StarHeartHunt
2026-07-22 22:59:41 +08:00
parent 3ffdedb8e2
commit 972bfe623b
143 changed files with 358 additions and 358 deletions
@@ -98,7 +98,7 @@ NoneBot 使用 [`pydantic`](https://pydantic-docs.helpmanual.io/) 以及
参考 [记录日志](https://nonebot.dev/docs/appendices/log)[loguru 日志等级](https://loguru.readthedocs.io/en/stable/api/logger.html#levels)。
:::tip 提示
:::tip[提示]
日志等级名称应为大写,如 `INFO`
:::
@@ -15,7 +15,7 @@ nb driver install aiohttp
pip install nonebot2[aiohttp]
```
:::tip 提示
:::tip[提示]
本驱动仅支持客户端连接
:::
@@ -15,7 +15,7 @@ nb driver install fastapi
pip install nonebot2[fastapi]
```
:::tip 提示
:::tip[提示]
本驱动仅支持服务端连接
:::
@@ -15,7 +15,7 @@ nb driver install httpx
pip install nonebot2[httpx]
```
:::tip 提示
:::tip[提示]
本驱动仅支持客户端 HTTP 连接
:::
@@ -9,7 +9,7 @@ description: nonebot.drivers.none 模块
None 驱动适配
:::tip 提示
:::tip[提示]
本驱动不支持任何服务器或客户端连接
:::
@@ -15,7 +15,7 @@ nb driver install quart
pip install nonebot2[quart]
```
:::tip 提示
:::tip[提示]
本驱动仅支持服务端连接
:::
@@ -15,7 +15,7 @@ nb driver install websockets
pip install nonebot2[websockets]
```
:::tip 提示
:::tip[提示]
本驱动仅支持客户端 WebSocket 连接
:::
@@ -187,7 +187,7 @@ description: nonebot.rule 模块
命令 `("test",)` 可以匹配: `/test` 开头的消息
命令 `("test", "sub")` 可以匹配: `/test.sub` 开头的消息
:::tip 提示
:::tip[提示]
命令内容与后续消息间无需空格!
:::
@@ -264,7 +264,7 @@ description: nonebot.rule 模块
通过 [ShellCommandArgs](params.md#ShellCommandArgs) 获取解析后的参数字典
(例: `{"arg": "arg", "h": True}`)。
:::warning 警告
:::warning[警告]
如果参数解析失败,则通过 [ShellCommandArgs](params.md#ShellCommandArgs)
获取的将是 [ParserExit](exception.md#ParserExit) 异常。
:::
@@ -291,7 +291,7 @@ description: nonebot.rule 模块
rule = shell_command("ls", parser=parser)
```
:::tip 提示
:::tip[提示]
命令内容与后续消息间无需空格!
:::
@@ -322,10 +322,10 @@ description: nonebot.rule 模块
- **返回**
- [Rule](#Rule)
:::tip 提示
:::tip[提示]
正则表达式匹配使用 search 而非 match,如需从头匹配请使用 `r"^xxx"` 来确保匹配开头
:::
:::tip 提示
:::tip[提示]
正则表达式匹配使用 `EventMessage` 的 `str` 字符串,
而非 `EventMessage` 的 `PlainText` 纯文本字符串
:::