diff --git a/docs/.vuepress/config.ts b/docs/.vuepress/config.ts index 405a31db..51122b7b 100644 --- a/docs/.vuepress/config.ts +++ b/docs/.vuepress/config.ts @@ -1,5 +1,6 @@ import { defineUserConfig } from "vuepress"; import theme from "./theme.js"; +import { mdEnhancePlugin } from "vuepress-plugin-md-enhance"; export default defineUserConfig({ base: "/", @@ -7,6 +8,11 @@ export default defineUserConfig({ lang: "zh-CN", title: "NoneBot Bison", description: "NoneBot Bison 文档", + plugins: [ + mdEnhancePlugin({ + mermaid: true, + }), + ], theme, diff --git a/docs/dev/cookie.md b/docs/dev/cookie.md index 61dbc5fc..75470c36 100644 --- a/docs/dev/cookie.md +++ b/docs/dev/cookie.md @@ -65,4 +65,33 @@ graph TD A[获取订阅] --> B[获取订阅的Cookie] B --> C[验证Cookie] C --> D[返回Cookie] + +``` + +```mermaid + +zenuml + title 一份快递是如何投递的 + Scheduler #661ae6 + Platform #2b2d30 + ClientManager #FFEBE6 + DB #f26522 + Internet #0747A6 + @Starter(Scheduler) + Scheduler.exec_fetch{ + Post = Platform.do_fetch_new_post(SubUnit) { + Platform.get_sub_list(Target){ + client = ClientManager.get_client(Target){ + choose(){ + cookies = DB.get_cookies() + + } + } + res = Internet.client.get(Target) + ClientManager.submit_status(){ + DB.update() + } + } + } + } ``` diff --git a/package.json b/package.json index f4fbc76e..82e36da3 100644 --- a/package.json +++ b/package.json @@ -15,5 +15,8 @@ "vue": "^3.5.6", "vuepress": "2.0.0-rc.15", "vuepress-theme-hope": "2.0.0-rc.52" + }, + "dependencies": { + "vuepress-plugin-md-enhance": "2.0.0-rc.57" } }