Skip to content

Commit 9251d70

Browse files
authored
工单系统更新 (#143)
1 parent da323af commit 9251d70

5 files changed

Lines changed: 382 additions & 35 deletions

File tree

AGENTS.md

Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
1+
# Agent Guidelines for Luogu Docs
2+
3+
## Build and Development Commands
4+
5+
### Development
6+
- `pnpm install` - Install dependencies
7+
- `pnpm run start` - Start development server (localhost:3000)
8+
- `pnpm run start -h 0.0.0.0` - Start with external access for GitHub Codespaces
9+
- `pnpm run serve` - Serve built site locally
10+
- `pnpm run clear` - Clear Docusaurus cache
11+
12+
### Build and Testing
13+
- `pnpm run build` - Build production version
14+
- `pnpm run typecheck` - Run TypeScript type checking
15+
16+
### Documentation
17+
- `pnpm run write-translations` - Generate translation files
18+
- `pnpm run write-heading-ids` - Generate heading IDs for MDX
19+
20+
## Project Structure
21+
22+
```
23+
docs/
24+
├── docs/
25+
│ ├── manual/
26+
│ │ ├── class/ # Luogu class and paid services docs
27+
│ │ ├── luogu/ # Main site operation guide
28+
│ │ │ ├── account/ # Account management
29+
│ │ │ ├── problem/ # Problem-related guides
30+
│ │ │ └── team/ # Team and group features
31+
│ │ └── _image/ # Images for manual docs
32+
│ ├── rules/
33+
│ │ ├── community/ # Community rules
34+
│ │ └── academic/ # Academic guidelines
35+
│ │ ├── guide/ # Academic guides
36+
│ │ ├── handbook/ # Academic handbook
37+
│ │ └── lgr/ # Luogu official contests guidelines
38+
│ │ └── _image/ # Images for rules docs
39+
│ └── ula/ # User License Agreements
40+
├── src/
41+
│ ├── pages/ # Custom pages (about, contact, etc.)
42+
│ └── style.css # Custom theme styles
43+
└── static/img/ # Static images
44+
45+
Docusaurus Configuration
46+
├── docusaurus.config.ts # Main configuration
47+
├── sidebars.ts # Sidebar structure
48+
├── tsconfig.json # TypeScript config
49+
└── babel.config.js # Babel configuration
50+
```
51+
52+
## Code Style Guidelines
53+
54+
### Documentation Content (Markdown/MDX)
55+
56+
**Frontmatter Format:**
57+
```markdown
58+
---
59+
sidebar_position: 1
60+
---
61+
```
62+
63+
- Use Chinese language for all content (zh-Hans)
64+
- Use `sidebar_position` to control documentation order in sidebar
65+
- Maintain consistent heading levels (use H1 for page titles, H2-H4 for sections)
66+
- Use bullet points and numbered lists for clarity
67+
- Include images in `docs/*/` or `docs/*/_image/` directories with descriptive filenames
68+
69+
**Content Structure:**
70+
- Start with a brief introduction if applicable
71+
- Use subheadings for main sections
72+
- Provide clear step-by-step instructions for guides
73+
- Include warnings, notes, and important information using standard markdown
74+
75+
### TypeScript Configuration
76+
77+
- Extends Docusaurus default TypeScript configuration
78+
- Compiler options in `tsconfig.json`
79+
- Use type checking before commits (`pnpm run typecheck`)
80+
81+
### Babel Configuration
82+
83+
- Use Docusaurus preset as default
84+
- No additional plugins configured
85+
86+
## Naming Conventions
87+
88+
**Documentation:**
89+
- Use descriptive filenames in lowercase with hyphens: `image-hosting.md`
90+
- Use snake_case for image directories: `_image/`
91+
- Page titles use H1 heading
92+
93+
**Image Files:**
94+
- Use descriptive names with underscores: `TrainingList1.jpg`
95+
- Include sequence numbers for multi-step guides
96+
97+
**Code Blocks:**
98+
- Specify language for syntax highlighting: ````markdown, ````typescript, ````bash, etc.
99+
100+
## Writing Guidelines
101+
102+
### Tone and Style
103+
- Use clear, concise, and professional Chinese language
104+
- Be instructional and user-friendly
105+
- Avoid unnecessary technical jargon or explain it when used
106+
- Maintain consistency in terminology across documents
107+
108+
### Structure
109+
1. **Introduction**: Brief overview of what the page covers
110+
2. **Key Sections**: Organized with clear headings
111+
3. **Examples**: Include screenshots where appropriate (in `_image` directories)
112+
4. **Related Links**: Reference other relevant documentation
113+
5. **Contact Info**: Provide contact/support information when needed
114+
115+
### Best Practices
116+
- Keep content up-to-date with the actual website functionality
117+
- Use the `release-note.md` page for major changes
118+
- Include relative image paths: `![Description](_image/filename.jpg)`
119+
- Update `sidebars.ts` when adding new documentation sections
120+
- Test that links work correctly
121+
- Use Docusaurus features like admonitions when appropriate
122+
123+
## Testing and Validation
124+
125+
Before committing changes:
126+
1. Run `pnpm run typecheck` to verify TypeScript types
127+
2. Run `pnpm run build` to ensure production build succeeds
128+
3. Check for broken links in markdown files
129+
4. Verify image paths are correct
130+
5. Test documentation navigation in development mode
131+
6. Ensure all internal links use relative paths starting with `/`
132+
133+
## Git Commit Guidelines
134+
135+
- Write commit messages in Chinese
136+
- Be descriptive about what was changed
137+
- Include relevant context in the message
138+
- Examples:
139+
- "更新洛谷题单功能说明"
140+
- "添加学术规范新章节"
141+
- "修复图片路径错误"
142+
143+
## Additional Notes
144+
145+
- Project uses Docusaurus 3.6.1
146+
- Package manager: pnpm (recommended)
147+
- Node.js version: >=20.17
148+
- Math/TeX support via remarkMath and rehypeKatex
149+
- Search functionality via @easyops-cn/docusaurus-search-local
150+
- No linting or formatting configuration (uses editor defaults)

docs/manual/luogu/ticket.md

Lines changed: 110 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,38 @@ sidebar_label: 工单系统
6060

6161
工单主要按照字段内容与对应不同的管理权限进行分类。
6262

63-
### 一般工单
63+
### 综合问题
64+
65+
#### 一般工单
66+
67+
- 包含分类:一般咨询、建议或 bug 反馈、学术建议。
68+
69+
##### 一般咨询、建议或 bug 反馈
6470

65-
- 包含分类:Bug 反馈、功能建议。
6671
- 公开程度:公开可见
6772
- 字段:
6873
- 反馈详情(10000 字符内)
6974
- 处理权限:社区管理
7075

71-
一般工单仅接受普通文本内容,主要涉及洛谷主站、网校、有题等网站本身的操作问题,一般由管理员、开发组进行回应。
76+
一般工单接受普通文本内容,主要涉及洛谷主站、网校、有题等网站本身的操作问题,一般由管理员、开发组进行回应。
7277

73-
### 题库相关
78+
##### 学术建议
79+
80+
- 公开程度:公开可见
81+
- 提交权限:受信任的用户
82+
- 字段:
83+
- 反馈详情(10000 字符内)
84+
- 处理权限:题目管理
85+
86+
接受对于题目、题单、标签、公开赛等非开发组处理的不涉及具体的题目的学术相关工单,**具体受理的情形包括:**
87+
88+
- 标签相关:针对题目标签的改名、增加、删除等建议
89+
- 比赛相关:针对某场公开比赛的建议、问题、反馈等
90+
- 题目搬运:建议搬运某一套公开赛题
91+
- 有题相关:对于洛谷有题题目存在问题的反馈;
92+
- 其他相关:其他非题目、标签、比赛等非开发上的相关问题
93+
94+
### 题目工单
7495

7596
此类别包含对题目的主题目、多语言、标签、难度、数据等贡献修改等请求的工单。主要由题目管理志愿者处理。
7697

@@ -105,12 +126,38 @@ sidebar_label: 工单系统
105126

106127
对于题目难度仅受理两个或者以上级别的难度差异变更。请给出难度或者标签变更理由,由对应管理员审核通过后将自动应用。
107128

129+
### 文章工单
130+
131+
用户需要提供专栏文章 id 以及申请理由。专栏文章 id 可以在专栏文章的 url 中获取,例如:`https://www.luogu.com.cn/article/123456` 中的 `123456` 就是专栏文章 id。
132+
133+
#### 全站推荐工单
134+
135+
- 公开程度:公开可见
136+
- 提交权限:6 级及以上(蓝色或金色)奖项认证用户
137+
- 字段:
138+
- 文章 id
139+
- 申请理由(10000 字符内)
140+
- 处理权限:专栏管理
141+
142+
仅处理用户对某篇具体专栏文章的推荐申请,仅受理无法通过编辑页自助提交的类别,由管理员判断是否通过。
143+
144+
#### 撤下推荐工单
145+
146+
- 公开程度:公开可见
147+
- 提交权限:受信任的用户
148+
- 字段:
149+
- 文章 id
150+
- 申请理由(10000 字符内)
151+
- 处理权限:专栏管理
152+
153+
仅处理用户对某篇具体文章的修改或撤下申请,需填写详细理由,恶意提交者可能会受到禁言等处罚。
154+
108155
### 贡献申请
109156

110157
#### 公开赛/月赛审核
111158

112159
- 公开程度:不公开
113-
- 提交权限:受信任的用户
160+
- 提交权限:6 级及以上(蓝色或金色)奖项认证用户
114161
- 字段:
115162
- 比赛类型:普通公开赛/Rated公开赛/大月赛/小月赛/基础赛
116163
- QQ 号
@@ -132,8 +179,45 @@ sidebar_label: 工单系统
132179

133180
### 用户工单
134181

135-
包含奖项申请与申请权限变更工单。
182+
处理各类用户相关的工单,包括但不限于实人认证、奖项认证、权限变更、账号申诉等。所有工单均不公开。
183+
184+
#### 实人认证
185+
186+
- **暂未开放**
187+
- 公开程度:非公开
188+
- 提交权限:所有用户
189+
- 处理权限:用户管理
190+
- 字段:
191+
- 姓名
192+
- 证件号
193+
- 证件类型(身份证/护照/港澳身份证/港澳通行证/台湾通行证)
194+
- 证件图片(3 张,每张不超过 5 M)
195+
- 认证理由(1000 字符内)
196+
197+
具体受理的情形:
198+
199+
- 其他证件类型:未持有 18 位居民身份证(或港澳台居民居住证)号码。
200+
- 认证信息错误:账号的实人认证信息非本人。
201+
- 认证信息迁移:用户的实人认证的迁移申请。
202+
203+
申请需提供完整理由,由管理员根据[实人认证说明](/manual/luogu/account/id-verify)处理。
204+
205+
#### OI 奖项认证
206+
207+
- **暂未开放**
208+
- 公开程度:非公开
209+
- 提交权限:所有用户
210+
- 处理权限:用户管理
211+
- 字段:
212+
- 证明材料(3 张,每张不超过 5 M)
213+
- 具体事由(1000 字符内)
214+
215+
具体受理的情形:
136216

217+
- 奖项缺失:需提供被遗漏的奖项的纸质证书扫描件或者拍照件或电子证书。
218+
- 申请迁移奖项信息:允许将奖项信息迁移至实人认证所在账号。需通过实人认证所在账号发起申请。
219+
- 奖项信息错误:请具体说明具体的错误之处。
220+
137221
#### ICPC/CCPC 奖项认证
138222

139223
- 公开程度:非公开
@@ -147,8 +231,27 @@ sidebar_label: 工单系统
147231
- 公开程度:非公开
148232
- 提交权限:所有用户
149233
- 处理权限:用户管理
234+
- 工单附件(可选):1 张,不超过 5 M
235+
236+
为当前用户申请变更【使用专栏、自由发言、发送私信、使用图床】权限。申请需提供完整理由和所需手写检讨书(如需要),由管理员根据[社区规则](../../rules/community/index.md)处理。**7天内仅能创建一次该类型工单(含撤销或授予权限)。**
237+
238+
#### 申请解封账号
239+
240+
- 公开程度:非公开
241+
- 提交权限:被封禁用户
242+
- 处理权限:用户管理
243+
- 工单附件:1 张,不超过 5 M
244+
245+
被封禁用户可上传手写检讨,申请解封,具体见[社区规则](../../rules/community/index.md#penalty-revoke)
246+
247+
#### 账号申诉
248+
249+
- 公开程度:非公开
250+
- 提交权限:所有用户
251+
- 处理权限:用户管理
252+
- 工单附件(可选):3 张,不超过 5 M
150253

151-
仅限为当前用户申请变更【使用专栏、自由发言、发送私信、使用图床】权限。申请需提供完整理由,由管理员根据[社区规则](../../rules/community/index.md)处理。**7天内仅能创建一次该类型工单(含撤销或授予权限)。**
254+
其他用户需要申诉的情形,由用户管理员处理。
152255

153256
### 举报工单
154257

docs/rules/community/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ sidebar_position: 1
156156

157157
### 解除处罚的条件
158158

159-
当用户满足期满解除、手写检讨解除、“复活币”解除惩罚的条件时,可以联系社区管理员,或者发送邮件到`shensu283@luogu.com.cn` 申请解除处罚。联系管理员发送邮件时,必须写明用户名或 UID 和解除处罚的理由,且必须声明保证已经阅读并遵守《洛谷社区规则》。
159+
当用户满足期满解除、手写检讨解除、“复活币”解除惩罚的条件时,可以通过工单系统申请解除处罚。申请解除处罚时,需提供解除处罚的理由,且必须声明保证已经阅读并遵守《洛谷社区规则》。
160160

161161
管理组收到解除处罚的请求后在 14 天内评估用户继续违反规则的可能性。
162162

@@ -169,7 +169,7 @@ sidebar_position: 1
169169

170170
- 对于禁言、禁止私信、禁用图床、封禁专栏功能处罚,在处罚期满后,用户需主动前往[工单系统申请解除处罚](ticket.md#user-ticket)
171171

172-
- 对于非永久的封禁账户,在处罚期满后,需发送邮件至`shensu283@luogu.com.cn` 邮箱,并注明用户名、UID、申请解除处罚。
172+
- 对于非永久的封禁账户,在处罚期满后,用户需主动前往[工单系统申请解除处罚](ticket.md#user-ticket)
173173

174174
### 发送手写检讨解除处罚
175175

@@ -183,7 +183,7 @@ sidebar_position: 1
183183
- 造成的不良影响
184184
- 今后的改进措施
185185

186-
被处罚用户需将检讨拍照或者扫描后,发送到 `shensu283@luogu.com.cn` 邮箱,并注明用户名、UID。没有条件提供扫描拍照检讨的,允许使用画图工具(鼠标写字)。严禁提交由 AI 等计算机生成的检讨文字或者图片。
186+
被处罚用户需将检讨拍照或者扫描后,前往[工单系统申请解除处罚](ticket.md#user-ticket)。没有条件提供扫描拍照检讨的,允许使用画图工具(鼠标写字)。严禁提交由 AI 等计算机生成的检讨文字或者图片。
187187

188188
### 使用“复活币”解封
189189

0 commit comments

Comments
 (0)