Appearance
贡献文档
前提条件
- Node.js, requires version >=18.0
- pnpm, requires version >=8.0
- Preferably a markdown editor, Here's a few: Visual studio code, Typora. (If not, any text editor is fine)
- Git
参与步骤
- 克隆你 Fork 的仓库:
bash
git clone https://github.com/<You username>/dotcom
- 启动开发环境:
- 安装依赖:
```bash
npm install
```
启动开发服务:
bashnpm run dev
现在,网站已经运行在 http://localhost:3000。它支持热重载。
- 在
content
目录下创建正确的 markdown 文件。
注意:如果你正在编辑一个全新的章节,你需要添加:
- 在
content
下创建正确的目录。
- 在新目录下创建一个
index.md
文件。
- 复制你的内容到 index.md。
- 将
##
中的内容替换为:
```yaml
---
title: <Your title>
---
```
- 将你的链接添加到 DOCS_NODES。
- 尽情创作!