Skip to content

Commit a705eb7

Browse files
committed
docs: update document structure and add team page
1 parent dda0c04 commit a705eb7

File tree

8 files changed

+59
-8
lines changed

8 files changed

+59
-8
lines changed

document/.vitepress/config.mts

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,15 @@ import { withMermaid } from 'vitepress-plugin-mermaid'
44
export default withMermaid({
55
title: 'Putong OJ Docs',
66
description: 'Putong OJ Documentation',
7+
srcDir: './src',
78
lang: 'zh-CN',
89
base: '/docs/',
910
themeConfig: {
1011
// https://vitepress.dev/reference/default-theme-config
1112
nav: [
12-
{ text: '文档首页', link: '/' },
13+
{ text: '常见问题', link: '/faq' },
14+
{ text: '开发团队', link: '/team' },
15+
{ text: '前往主站', link: 'https://acm.cjlu.edu.cn' },
1316
],
1417
sidebar: [
1518
{
@@ -21,19 +24,23 @@ export default withMermaid({
2124
{
2225
text: '题目',
2326
items: [
24-
{ text: '特判Special Judge', link: '/user/special-judge' },
25-
{ text: '交互题Interaction', link: '/user/interaction' },
27+
{ text: '特判 (Special Judge)', link: '/problem/special-judge' },
28+
{ text: '交互题 (Interaction)', link: '/problem/interaction' },
2629
],
2730
},
2831
{
2932
text: '其它',
3033
items: [
34+
{ text: '开发团队', link: '/team' },
3135
{ text: 'Markdown 示例', link: '/markdown-examples' },
3236
],
3337
},
3438
],
3539
socialLinks: [
36-
{ icon: 'github', link: 'https://github.com/net-escape/ptoj-backend' },
40+
{ icon: 'github', link: 'https://github.com/acm309/PutongOJ' },
3741
],
42+
editLink: {
43+
pattern: 'https://github.com/acm309/PutongOJ/tree/main/document/:path'
44+
},
3845
},
3946
})
File renamed without changes.
File renamed without changes.
Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,17 @@ hero:
1717
features:
1818
- title: 特判
1919
details: 特判程序用于处理多解题目或允许误差范围的情况。
20-
link: /user/special-judge
20+
link: /problem/special-judge
2121
linkText: 了解更多
2222
- title: 交互题
2323
details: 交互题是一种特殊的编程题型,要求选手编写的程序与评测系统进行动态交互。
24-
link: /user/interaction
24+
link: /problem/interaction
2525
linkText: 了解更多
2626
---
27+
28+
<style>
29+
:root {
30+
--vp-home-hero-name-color: transparent;
31+
--vp-home-hero-name-background: -webkit-linear-gradient(120deg, oklch(60.6% 0.25 292.717), oklch(59.1% 0.293 322.896));
32+
}
33+
</style>
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 交互题Interaction{#interaction}
1+
# 交互题 (Interaction) {#interaction}
22

33
交互题是一种特殊的编程题型,要求选手编写的程序与评测系统进行动态交互。与传统编程题(只需读取输入并输出结果)不同,交互题需要程序在运行过程中与评测系统进行多次双向通信。
44

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 特判Special Judge{#special-judge}
1+
# 特判 (Special Judge) {#special-judge}
22

33
Special Judge(简称 SPJ)是一种灵活的评测机制,用于处理那些不唯一解或需要特殊判断的编程题目。与传统题目(仅比对固定输出)不同,SPJ 允许通过自定义程序来验证选手答案的正确性。
44

document/src/team.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<script setup>
2+
import { VPTeamMembers } from 'vitepress/theme'
3+
4+
// https://vitepress.dev/zh/reference/default-theme-team-page
5+
const members = [
6+
{
7+
avatar: 'https://github.com/lazzzis.png',
8+
name: 'Lazzzis',
9+
title: 'Developer',
10+
links: [
11+
{ icon: 'github', link: 'https://github.com/lazzzis' },
12+
]
13+
}, {
14+
avatar: 'https://www.github.com/luoingly.png',
15+
name: 'Luoingly',
16+
title: 'Developer',
17+
links: [
18+
{ icon: 'github', link: 'https://github.com/luoingly' },
19+
]
20+
}, {
21+
avatar: 'https://github.com/Kerminate.png',
22+
name: 'Kerminate',
23+
title: 'Frontend Developer',
24+
links: [
25+
{ icon: 'github', link: 'https://github.com/Kerminate' },
26+
]
27+
},
28+
]
29+
</script>
30+
31+
# 开发团队 {#team}
32+
33+
Putong OJ 的开发与维护离不开以下团队成员的辛勤付出:
34+
35+
<VPTeamMembers size="small" :members />
36+
37+
Putong OJ 作为一个开源项目,我们欢迎任何大小的贡献和建议。如果你有兴趣参与开发或提出建议,请访问我们的 [GitHub 仓库](https://github.com/acm309/PutongOJ)

0 commit comments

Comments
 (0)