Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update hydro.md #5

Merged
merged 2 commits into from
Oct 13, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions docs/project/hydro.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@ LANG=zh . <(curl https://hydro.ac/setup.sh)

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

1. 使用 `hydrooj install @hydrooj/vjudge && hydrooj install https://cdn.luogu.com.cn/lgapi/hydro/hydroplugin-luogu-0.0.1.tgz` 安装相关模块。
2. 使用 `hydrooj cli luogu importProblem` 导入题库。
3. 使用 `hydrooj cli luogu addAccount <token>` 设置账号。
4. 重启 Hydro 进程(`pm2 restart hydrooj`)。
5. 大功告成!
1. 使用 `hydrooj install @hydrooj/vjudge` 安装 vjudge 插件(如果之前已安装请跳过该步骤)
2. 使用 `hydrooj install https://cdn.luogu.com.cn/lgapi/hydro/hydroplugin-luogu-0.0.1.tgz` 安装题库导入工具。
moesoha marked this conversation as resolved.
Show resolved Hide resolved
3. 使用 `hydrooj cli luogu importProblem` 导入题库。
4. 使用 `hydrooj cli luogu addAccount <token>` 设置账号。
5. 重启 Hydro 进程(`pm2 restart hydrooj`)。
6. 大功告成!

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

Expand Down