Skip to content

Commit 6b561fc

Browse files
committed
revert the hardcode commit, and reorganized categories under CommunityShare
1 parent d9dfcf7 commit 6b561fc

File tree

7 files changed

+25
-80
lines changed

7 files changed

+25
-80
lines changed

app/api/docs-tree/route.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,7 @@ function buildTree(root: string, maxDepth = 2, rel = ""): DirNode[] {
5353
if (e.name.startsWith(".") || e.name.startsWith("[")) continue;
5454
const abs = path.join(root, e.name);
5555
const nodeRel = rel ? `${rel}/${e.name}` : e.name;
56-
57-
let node: DirNode;
58-
if (e.name !== "CommunityShare") {
59-
node = { name: e.name, path: nodeRel };
60-
} else {
61-
node = { name: "群友分享", path: nodeRel };
62-
}
56+
const node: DirNode = { name: e.name, path: nodeRel };
6357
if (maxDepth > 1) node.children = buildTree(abs, maxDepth - 1, nodeRel);
6458
nodes.push(node);
6559
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: "技术分享"
3+
date: "2025-09-18"
4+
---
5+
6+
欢迎来到技术分享板块!

app/docs/CommunityShare/raspberry-guide.md renamed to app/docs/CommunityShare/Geek/raspberry-guide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
title: 用闲置树莓派搭建一个Minecraft服务器
3-
description: "记录一下从0开始搭建一个树莓派minecraft服务器,并且使用FRP内网穿透到公网"
4-
abbrlink: 52c73bb6
53
date: 2025-08-05 18:53:40
64
tags:
75
---
86

7+
记录一下从0开始搭建一个树莓派minecraft服务器,并且使用FRP内网穿透到公网
8+
99
# 硬件准备工作
1010

1111
一台空闲的树莓派,一台有公网IP地址的VPS服务器

app/docs/CommunityShare/HelloWorld.md

Lines changed: 0 additions & 11 deletions
This file was deleted.
File renamed without changes.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: "心理健康"
3+
date: "2025-09-18"
4+
---
5+
6+
欢迎来到心理健康板块!

app/docs/CommunityShare/index.mdx

Lines changed: 10 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,25 @@
11
---
22
title: "群友分享"
3-
description: "程序员生活与心理健康指南 - 关注工作与生活的平衡"
4-
date: "2025-01-27"
5-
tags:
6-
- life
7-
- wellness
8-
- mental-health
9-
- work-life-balance
3+
date: "2025-09-18"
104
---
115

12-
欢迎来到程序员生活与心理健康板块!这里我们关注技术工作者的身心健康,分享实用的生活建议和心理调适方法。
6+
欢迎来到群友分享板块!无论你是技术极客,还是热爱生活,都欢迎积极投稿!
137

14-
## 板块内容
8+
一篇微不足道的文章或许可以帮助一个迷茫的陌生人~
159

16-
### 心理健康
10+
> 转载文章请先联系原作者获取授权,谢谢!
1711
18-
- [程序员 Burnout 自救指南](/docs/guide/burnout-guide) - 识别和应对职业倦怠
19-
- 压力管理技巧
20-
- 情绪调节方法
21-
- 职场人际关系
12+
## 心理健康
2213

23-
### 工作与生活平衡
14+
- [程序员 Burnout 自救指南](/docs/CommunityShare/MentalHealth/burnout-guide) - 识别和应对职业倦怠
2415

25-
- 时间管理策略
26-
- 工作效率提升
27-
- 远程工作适应
28-
- 职业发展规划
16+
## 技术分享
2917

30-
### 身体健康
18+
- [用闲置树莓派搭建一个Minecraft服务器](/docs/CommunityShare/Geek/raspberry-guide)
19+
20+
## 身体健康
3121

3222
- 久坐办公的解决方案
3323
- 程序员健身指南
3424
- 饮食与营养建议
3525
- 睡眠质量改善
36-
37-
### 学习与成长
38-
39-
- 持续学习策略
40-
- 技能提升路径
41-
- 职业转型指导
42-
- 个人品牌建设
43-
44-
## 为什么需要这个板块?
45-
46-
在快节奏的技术行业中,程序员们经常面临:
47-
48-
- **高强度工作压力** - 项目deadline、技术更新、学习压力
49-
- **职业倦怠风险** - 长期加班、重复性工作、缺乏成就感
50-
- **身心健康问题** - 久坐、熬夜、缺乏运动、社交隔离
51-
- **职业发展困惑** - 技术路线选择、职业转型、工作与生活平衡
52-
53-
## 我们的目标
54-
55-
- 🧠 **心理健康** - 提供实用的心理调适方法和资源
56-
- 💪 **身体健康** - 关注程序员特有的健康问题
57-
- ⚖️ **工作平衡** - 帮助建立健康的工作与生活边界
58-
- 🌱 **持续成长** - 支持个人和职业的全面发展
59-
- 🤝 **社区支持** - 营造互相帮助、共同成长的环境
60-
61-
## 贡献指南
62-
63-
我们欢迎社区成员分享:
64-
65-
- 个人经历和感悟
66-
- 实用的生活技巧
67-
- 心理健康资源
68-
- 工作与生活平衡的经验
69-
- 职业发展的思考
70-
71-
---
72-
73-
> 💡 **温馨提示**:如果你正在经历严重的心理健康问题,请及时寻求专业帮助。这个板块提供的是日常建议和社区支持,不能替代专业治疗。
74-
75-
_让我们一起关注身心健康,在技术路上走得更远更稳!_

0 commit comments

Comments
 (0)