📝 试试流程图)

This commit is contained in:
suyiiyii 2024-10-14 15:35:29 +08:00
parent 7aac134d5d
commit cdc8de9619
Signed by: suyiiyii
GPG Key ID: 044704CB29B8AD85
3 changed files with 38 additions and 0 deletions

View File

@ -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,

View File

@ -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()
}
}
}
}
```

View File

@ -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"
}
}