forked from graphql/graphql.github.io
-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
Description
拉取与运行
- 从 GraphQL-China/graphql.github.io 仓库 fork 。
- clone 你自己的仓库副本到本地。例如:
git clone [email protected]:keifergu/graphql.github.io.git
注意:此处需要为你自己的仓库地址。 - 在本地,进入仓库目录:
cd graphql.github.io - 安装依赖:
npm install - 运行服务:
npm start - 浏览器打开:http://localhost:8444/
翻译
- 使用文本编辑器打开目录,根据认领的翻译任务寻找到对应的文本位置:
例如:/learn/Introduction.md在文件夹中对应的位置则为:site/learn/Introduction.md

- 翻译后,刷新页面即可看到效果。
合并与提交
- 在本地仓库进行更改,
commit到本地仓库后,push到自己的 Github 仓库。
注意:此处默认建议commit到zh-cn分支。 - 在GraphQL-China/graphql.github.io页面选择 New pull request:

注意:base fork 为 GraphQL-China/graphql.github.io,分支为 zh-cn,head fork 为你自己的仓库,分支为 zh-cn - 发起 PR 后,等待管理人员回复与合并。
linonetwo