Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于翻译 - 基础指引 #3

Open
keifergu opened this issue Jul 6, 2017 · 2 comments
Open

关于翻译 - 基础指引 #3

keifergu opened this issue Jul 6, 2017 · 2 comments
Assignees
Labels

Comments

@keifergu
Copy link
Member

keifergu commented Jul 6, 2017

拉取与运行

  1. GraphQL-China/graphql.github.io 仓库 fork 。
  2. clone 你自己的仓库副本到本地。例如:
    git clone [email protected]:keifergu/graphql.github.io.git
    注意:此处需要为你自己的仓库地址。
  3. 在本地,进入仓库目录:
    cd graphql.github.io
  4. 安装依赖:
    npm install
  5. 运行服务:
    npm start
  6. 浏览器打开:http://localhost:8444/

翻译

  1. 使用文本编辑器打开目录,根据认领的翻译任务寻找到对应的文本位置:
    例如: /learn/Introduction.md 在文件夹中对应的位置则为: site/learn/Introduction.md
    tim 20170706131654
  2. 翻译后,刷新页面即可看到效果。

合并与提交

  1. 在本地仓库进行更改,commit 到本地仓库后,push到自己的 Github 仓库。
    注意:此处默认建议 commitzh-cn 分支。
  2. GraphQL-China/graphql.github.io页面选择 New pull request:
    new pull request
    注意:base fork 为 GraphQL-China/graphql.github.io,分支为 zh-cn,head fork 为你自己的仓库,分支为 zh-cn
  3. 发起 PR 后,等待管理人员回复与合并。
@ydfzgyj
Copy link
Member

ydfzgyj commented Jul 6, 2017

这种教程性质的东西觉得放在 wiki 里比较好,放 issue 里会被淹没

@jonirrings jonirrings self-assigned this Jul 6, 2017
@jonirrings
Copy link
Member

@ydfzgyj 已放到wiki

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants