Skip to content

Commit f443085

Browse files
authored
Merge pull request #7 from Crokily/feat/add-multilevel-directory
2 parents 2d33ff3 + c32860a commit f443085

File tree

17 files changed

+3337
-479
lines changed

17 files changed

+3337
-479
lines changed

CONTRIBUTING.md

Lines changed: 763 additions & 17 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 249 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,261 @@
1-
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
1+
# Involution Hell 知识库
22

3-
## Getting Started
3+
## 📋 关于
44

5-
First, run the development server:
5+
这是一个基于现代 Web 技术的协作文档平台,旨在帮助学生们分享和访问学习资料。
6+
7+
## ✨ 特性
8+
9+
- 🚀 **现代化技术栈**:Next.js 15 + Contentlayer + MDX
10+
- 🎨 **美观界面**:基于 Tailwind CSS 和 shadcn/ui 构建
11+
- 🌍 **双语支持**:中英文内容
12+
- 📱 **响应式设计**:完美适配所有设备
13+
-**快速且 SEO 友好**:静态生成,性能优化
14+
- 🤝 **社区驱动**:开源且协作性强
15+
16+
## 🚀 快速开始
17+
18+
### 环境要求
19+
20+
- Node.js 18+
21+
- pnpm(推荐)
22+
23+
### 安装
624

725
```bash
8-
npm run dev
9-
# or
10-
yarn dev
11-
# or
26+
# 克隆仓库
27+
git clone https://github.com/involutionhell/involutionhell.github.io.git
28+
cd involutionhell.github.io
29+
30+
# 安装依赖
31+
pnpm install
32+
33+
# 启动开发服务器
1234
pnpm dev
13-
# or
14-
bun dev
1535
```
1636

17-
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
37+
打开浏览器访问 [http://localhost:3000](http://localhost:3000) 查看站点。
38+
39+
## 📁 项目结构
40+
41+
```
42+
📦 involutionhell.github.io
43+
├── 📂 app/ # Next.js App Router
44+
│ ├── 📂 components/ # React 组件
45+
│ ├── 📂 docs/ # 文档内容
46+
│ │ └── 📂 computer-science/ # 计算机科学知识库
47+
│ ├── 📄 layout.tsx # 根布局
48+
│ └── 📄 page.tsx # 主页
49+
├── 📂 contentlayer.config.ts # Contentlayer 配置
50+
├── 📂 tailwind.config.ts # Tailwind CSS 配置
51+
└── 📄 package.json # 依赖和脚本
52+
```
53+
54+
## 🤝 贡献
55+
56+
我们欢迎社区贡献!在开始之前,请阅读我们的[贡献指南](CONTRIBUTING.md)
57+
58+
### 贡献方式
59+
60+
- 📝 **内容**:添加新文章或改进现有文章
61+
- 🐛 **错误修复**:报告并修复问题
62+
- 🎨 **UI/UX**:改进设计和用户体验
63+
- 🌐 **翻译**:帮助多语言支持
64+
- 📖 **文档**:改进项目文档
65+
66+
### 贡献者快速开始
67+
68+
1. Fork 本仓库
69+
2. 创建特性分支: `git checkout -b feat/your-feature`
70+
3. 进行修改
71+
4. 测试修改: `pnpm check:content`
72+
5. 提交 PR
73+
74+
## 📚 文档结构
75+
76+
我们的内容采用分层式的"Folder as a Book"结构:
77+
78+
```
79+
📂 docs/
80+
├── 📂 computer-science/ # 计算机科学
81+
│ ├── 📄 index.mdx # 计算机科学概述
82+
│ └── 📂 data-structures/ # 数据结构
83+
│ ├── 📄 index.mdx # 数据结构概述
84+
│ ├── 📂 array/ # 数组
85+
│ │ ├── 📄 index.mdx # 数组概述
86+
│ │ ├── 📄 01-static-array.mdx
87+
│ │ └── 📄 02-dynamic-array.mdx
88+
│ └── 📂 linked-list/ # 链表
89+
│ ├── 📄 index.mdx # 链表概述
90+
│ └── 📄 01-singly-linked-list.mdx
91+
```
92+
93+
## 🛠️ 可用脚本
94+
95+
```bash
96+
# 开发
97+
pnpm dev # 启动开发服务器
98+
pnpm build # 构建生产版本
99+
pnpm start # 启动生产服务器
100+
101+
# 内容
102+
pnpm check:content # 使用 Contentlayer 验证内容
103+
104+
# 导出
105+
pnpm export # 导出静态站点到 /out 目录
106+
```
107+
108+
## 📄 许可证
109+
110+
本项目采用 MIT 许可证 - 查看 [LICENSE](LICENSE) 文件了解详情。
111+
112+
## 🙏 致谢
113+
114+
- 使用 [Next.js](https://nextjs.org/) 构建
115+
-[Contentlayer](https://contentlayer.dev/) 驱动
116+
- 使用 [Tailwind CSS](https://tailwindcss.com/) 样式
117+
- UI 组件来自 [shadcn/ui](https://ui.shadcn.com/)
118+
119+
特别感谢我们所有的贡献者!🎉
120+
121+
## 📞 联系我们
122+
123+
- 📧 Issues: [GitHub Issues](https://github.com/involutionhell/involutionhell.github.io/issues)
124+
- 💬 Discussions: [GitHub Discussions](https://github.com/involutionhell/involutionhell.github.io/discussions)
125+
- 🌟 Stars: 通过 ⭐ 表示支持
126+
127+
128+
# Involution Hell Docs
129+
130+
[![Deploy to GitHub Pages](https://github.com/involutionhell/involutionhell.github.io/actions/workflows/deploy.yml/badge.svg)](https://github.com/involutionhell/involutionhell.github.io/actions/workflows/deploy.yml)
131+
132+
**A modern, student-maintained knowledge base for computer science and programming.**
133+
134+
[🌐 View Live Site](https://involutionhell.github.io/) | [📖 Documentation](https://involutionhell.github.io/)
135+
136+
---
137+
138+
## 📋 About
139+
140+
This is a collaborative documentation platform built with modern web technologies, designed to help students share and access high-quality learning materials for computer science and programming.
141+
142+
## ✨ Features
143+
144+
- 🚀 **Modern Tech Stack**: Next.js 15 + Contentlayer + MDX
145+
- 🎨 **Beautiful UI**: Built with Tailwind CSS and shadcn/ui
146+
- 🌍 **Bilingual Support**: Chinese & English content
147+
- 📱 **Responsive Design**: Works perfectly on all devices
148+
-**Fast & SEO-friendly**: Static generation with optimal performance
149+
- 🤝 **Community Driven**: Open source and collaborative
150+
151+
## 🚀 Quick Start
152+
153+
### Prerequisites
154+
155+
- Node.js 18+
156+
- pnpm (recommended)
157+
158+
### Installation
159+
160+
```bash
161+
# Clone the repository
162+
git clone https://github.com/involutionhell/involutionhell.github.io.git
163+
cd involutionhell.github.io
164+
165+
# Install dependencies
166+
pnpm install
167+
168+
# Start development server
169+
pnpm dev
170+
```
171+
172+
Open [http://localhost:3000](http://localhost:3000) to see the site.
173+
174+
## 📁 Project Structure
175+
176+
```
177+
📦 involutionhell.github.io
178+
├── 📂 app/ # Next.js App Router
179+
│ ├── 📂 components/ # React Components
180+
│ ├── 📂 docs/ # Documentation Content
181+
│ │ └── 📂 computer-science/ # CS Knowledge Base
182+
│ ├── 📄 layout.tsx # Root Layout
183+
│ └── 📄 page.tsx # Homepage
184+
├── 📂 contentlayer.config.ts # Contentlayer Configuration
185+
├── 📂 tailwind.config.ts # Tailwind CSS Config
186+
└── 📄 package.json # Dependencies & Scripts
187+
```
188+
189+
## 🤝 Contributing
190+
191+
We welcome contributions from the community! Please read our [Contributing Guide](CONTRIBUTING.md) before getting started.
192+
193+
### Ways to Contribute
194+
195+
- 📝 **Content**: Add new articles or improve existing ones
196+
- 🐛 **Bug Fixes**: Report and fix issues
197+
- 🎨 **UI/UX**: Improve design and user experience
198+
- 🌐 **Translations**: Help with multilingual support
199+
- 📖 **Documentation**: Improve project documentation
200+
201+
### Quick Start for Contributors
202+
203+
1. Fork the repository
204+
2. Create a feature branch: `git checkout -b feat/your-feature`
205+
3. Make your changes
206+
4. Test your changes: `pnpm check:content`
207+
5. Submit a Pull Request
208+
209+
## 📚 Documentation Structure
210+
211+
Our content follows a hierarchical "Folder as a Book" structure:
212+
213+
```
214+
📂 docs/
215+
├── 📂 computer-science/ # Computer Science
216+
│ ├── 📄 index.mdx # CS Overview
217+
│ └── 📂 data-structures/ # Data Structures
218+
│ ├── 📄 index.mdx # DS Overview
219+
│ ├── 📂 array/ # Arrays
220+
│ │ ├── 📄 index.mdx # Array Overview
221+
│ │ ├── 📄 01-static-array.mdx
222+
│ │ └── 📄 02-dynamic-array.mdx
223+
│ └── 📂 linked-list/ # Linked Lists
224+
│ ├── 📄 index.mdx # Linked List Overview
225+
│ └── 📄 01-singly-linked-list.mdx
226+
```
227+
228+
## 🛠️ Available Scripts
229+
230+
```bash
231+
# Development
232+
pnpm dev # Start dev server
233+
pnpm build # Build for production
234+
pnpm start # Start production server
235+
236+
# Content
237+
pnpm check:content # Validate content with Contentlayer
238+
239+
# Export
240+
pnpm export # Export static site to /out
241+
```
242+
243+
## 📄 License
244+
245+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
246+
247+
## 🙏 Acknowledgments
18248

19-
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
249+
- Built with [Next.js](https://nextjs.org/)
250+
- Powered by [Contentlayer](https://contentlayer.dev/)
251+
- Styled with [Tailwind CSS](https://tailwindcss.com/)
252+
- UI components from [shadcn/ui](https://ui.shadcn.com/)
20253

21-
This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
254+
Special thanks to all our contributors! 🎉
22255

23-
## Contributing
256+
## 📞 Contact
24257

25-
- **请先阅读 `CONTRIBUTING.md`(仓库根)**:包含本项目的本地开发环境、分支策略、代码规范、提交信息格式、PR 流程与评审标准等。
26-
- **完整贡献文档**`CONTRIBUTING.md`
27-
- **快速开始贡献**
28-
- Fork 并创建特性分支(示例:`feat/your-feature`)。
29-
- 遵循贡献文档完成开发与自测。
30-
- 提交 PR,并在描述中关联 Issue、填写变更说明与测试要点。
258+
- 📧 Issues: [GitHub Issues](https://github.com/involutionhell/involutionhell.github.io/issues)
259+
- 💬 Discussions: [GitHub Discussions](https://github.com/involutionhell/involutionhell.github.io/discussions)
260+
- 🌟 Stars: Show your support with a ⭐
31261

32-
更多细节、注意事项与最佳实践,请务必查阅仓库根的 [`CONTRIBUTING.md`](CONTRIBUTING.md)

0 commit comments

Comments
 (0)