Skip to content

Commit 14636a7

Browse files
use new plugin (#9)
1 parent 83885d7 commit 14636a7

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

Diff for: docs/project/hydro.md

+19-5
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,29 @@ LANG=zh . <(curl https://hydro.ac/setup.sh)
1414

1515
使 Hydro 接入洛谷开放平台,您需要进行以下操作:
1616

17-
1. 使用 `hydrooj install @hydrooj/vjudge` 安装 vjudge 插件(如果之前已安装请跳过该步骤)
18-
2. 使用 `hydrooj install https://cdn.luogu.com.cn/lgapi/hydro/hydroplugin-luogu-latest.tgz` 安装题库导入工具
19-
3. 使用 `hydrooj cli luogu importProblem` 导入题库
20-
4. 使用 `hydrooj cli luogu addAccount <token>` 设置账号
21-
5. 重启 Hydro 进程`pm2 restart hydrooj`
17+
1. 使用 `hydrooj install https://hydro.ac/hydroac-client.zip` 安装最新的远端评测和题库导入工具。
18+
2. 重启 Hydro 进程(`pm2 restart hydrooj`
19+
3. 使用管理员账号登录,前往 控制面板 -> 脚本管理 页面,找到 `luogu-import-problem` 脚本,运行,参数可留空,也可参照下方更多信息
20+
4. 前往 控制面板->洛谷RemoteJudge管理,购买或填写账号信息
21+
5. 设置完成后再次重启 Hydro 进程。
2222
6. 大功告成!
2323

2424
如果需要帮助部署/迁移或有二次开发的需求,您可联系 Hydro 开发者寻求帮助。
2525

26+
## 题库导入参数
27+
28+
```json
29+
{"path":"","domainId":"luogu","prefix":""}
30+
```
31+
32+
JSON 格式;
33+
34+
`path` 为本地的题目包路径,留空则自动下载。
35+
`domainId` 为导入的目标域,若希望导入默认域则填写 system
36+
`prefix` 为导入题目时添加的题号前缀,留空则保持原题号。
37+
38+
若日后需要更新题目列表则再次运行该导入功能即可。
39+
2640
- Hydro 仓库地址:https://github.com/hydro-dev/hydro
2741
- Hydro 文档:https://hydro.js.org (镜像:https://docs.hydro.ac)
2842
- 洛谷 vjudge 插件仓库地址:https://github.com/hydro-dev/luogu

0 commit comments

Comments
 (0)