Skip to content

贡献文档

前提条件

参与步骤

  1. 克隆你 Fork 的仓库:
bash
git clone https://github.com/<You username>/dotcom
  1. 启动开发环境:
  1. 安装依赖:
  ```bash
  npm install
  ```
  1. 启动开发服务:

    bash
    npm run dev

现在,网站已经运行在 http://localhost:3000。它支持热重载。

  1. content 目录下创建正确的 markdown 文件。

注意:如果你正在编辑一个全新的章节,你需要添加:

  1. content 下创建正确的目录。
  1. 在新目录下创建一个 index.md 文件。
  1. 复制你的内容到 index.md。
  1. ## 中的内容替换为:
  ```yaml
      ---
      title: <Your title>
      ---
  ```
  1. 将你的链接添加到 DOCS_NODES
  1. 尽情创作!

最后更新于: