-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
project: add syzoj support page (#7)
- Loading branch information
1 parent
e2dda01
commit 0533079
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
sidebar_label: SYZOJ | ||
sidebar_position: 3 | ||
--- | ||
|
||
# 原生支持洛谷开放平台的 SYZOJ 新版本 | ||
|
||
在 [新版本(`573796f`)](https://github.com/syzoj/syzoj/commit/573796fa7670e28d428692f1d91e7ea50ee154e5) 中,SYZOJ 已经原生支持洛谷开放平台,无需额外的配置或插件。用户只需将系统更新至最新版本,即可轻松实现与洛谷开放平台的集成。这个更新将极大地简化接入流程,为您提供更全面的用户体验。 | ||
|
||
如果您是 SYZOJ 的用户,您可以在后台管理界面的“其他操作”中验证您的版本是否支持洛谷开放平台的接入。如果您的版本较旧,您可以使用以下方法来更新您的系统: | ||
|
||
- 对于 Docker 快速安装用户,您可以在服务器上运行 `docker pull menci/syzoj-web` 后重启服务以进行更新。 | ||
- 对于手动安装用户,您可以在 `syzoj-web` 目录中运行 `git pull` 后重启服务以进行更新。 | ||
|
||
如果您使用了经过定制修改的 SYZOJ 版本,您可以选择自行升级到新版本,或者咨询洛谷开放平台,以获取协助进行相关接入的支持。 | ||
|
||
要使 SYZOJ 接入洛谷开放平台,您需要执行以下步骤: | ||
|
||
1. 在“后台管理-配置文件”中配置 `luogu_openapi_token`,将您从开放平台申请到的 OpenApp Token 填入配置文件中并保存,如: | ||
|
||
```json | ||
{ | ||
"luogu_openapi_token": "01gt8s4bnbesna15e9f6wvk5pn:w1MmbjBCsDYjXpgS" | ||
} | ||
``` | ||
|
||
2. 在“后台管理-其他操作”中点击“导入洛谷 VJudge 题目”按钮,一键导入所有洛谷开放平台的题目。 | ||
|
||
3. 完成上述步骤后,您应该能够在题库中看到题目类型为“VJudge(洛谷)”的题目,并尝试提交以确认您的 SYZOJ 已可以通过开放平台进行远程评测。 | ||
|
||
如果您有部署或者二次开发方面的需求,可以联系开发者或洛谷开放平台寻求付费帮助。 |