[新增] 更新文档

This commit is contained in:
ryan
2026-05-28 22:50:24 +08:00
parent b69bdf838d
commit 5a0821274b
31 changed files with 2418 additions and 256 deletions
+27
View File
@@ -1,5 +1,7 @@
# 命令与脚本
你会学到:OpenFlare Server、管理端前端、Agent、Swagger 和文档站的常用启动、构建、测试、安装与卸载命令。
## Server
源码启动:
@@ -42,6 +44,15 @@ cd openflare_server/web
pnpm build
```
检查:
```bash
cd openflare_server/web
pnpm lint
pnpm typecheck
pnpm test
```
## Agent
源码运行:
@@ -88,3 +99,19 @@ go install github.com/swaggo/swag/cmd/swag@v1.16.4
cd openflare_server
swag init -g main.go -o docs
```
## Docs
本地预览:
```bash
cd docs
pnpm dev
```
构建:
```bash
cd docs
pnpm build
```