GithubHelp home page GithubHelp logo

liuestc / react Goto Github PK

View Code? Open in Web Editor NEW

This project forked from discountry/react

0.0 1.0 0.0 70.57 MB

react docs in Chinese | react中文文档翻译

Home Page: https://discountry.github.io/react/

License: Other

JavaScript 96.46% HTML 0.26% CSS 0.01% Shell 0.17% Python 0.33% Makefile 0.01% C++ 1.59% C 0.19% CoffeeScript 0.43% TypeScript 0.55%

react's Introduction

React 中文文档翻译计划

我们使用 Jekyll 静态站点生成器,使用 (mostly) 处理 Markdown, 文档部署在 GitHub Pages.

团队协作

工具

加入翻译组

如果你有充足的时间,良好的英文水平,能够流利阅读英文文档,且对前端框架比较了解,欢迎你加入我们的翻译组,请用微信扫码入群:

1494351758.png

我们使用 Github issue 管理项目进度。翻译组成员无需直接提出issue,注册完成github和trello之后,可以使用第三方工具gitlo进行协作。

点击邀请链接加入翻译组,根据提示连接你的github及trello账号。

在微信群公告内获取trello项目的邀请链接,以获取编辑看板的权限。

项目trello地址

认领翻译

trello-tasks.png

新建一个与你github名称同名的列表,并将待翻译列表中的待翻译文档拖拽至你的列表中,视为认领翻译(切勿随意编辑他人创建的列表)。

安装

如果你想要参与文档的翻译,首先需要在本地部署文档的jekyll站点。

依赖

首先点击右上角的 fork 按钮拷贝本项目到你的github账号下

克隆你fork的仓库到电脑本地:

$ git clone https://github.com/[YourGithubUserName]/react.git

在使用jkeyll之前,我们需要先安装好ruby

$ cd react/docs
$ bundle install # Might need sudo.
$ npm install

如果你受到国内糟糕的网络环境影响,请将ruby源切换至国内镜像ruby-china.

构建文档

先跑一下 grunt 确保项目已被构建。

使用 Jekyll 在本地运行站点 (默认端口路由为: http://localhost:4000):

$ cd react/docs
$ bundle exec rake
$ bundle exec jekyll serve -w -L
$ open http://localhost:4000/react/index.html

生成文档

通过如下命令,我们可以在和react存放的统一路径下名为 react-gh-pages 的文件夹中生成文档。

$ bundle exec rake release

发布文档

切换至本项目的 gh-pages 分支下,复制 react-gh-pages 文件夹中的所有内容,提交并同步至项目中。

# 如果是初次在本地创建 gh-pages 分支
$ git checkout --orphan gh-pages
$ git rm --cached -r .
# 复制粘贴 `react-gh-pages` 文件夹中的所有内容
# 切换至文档部署分支
$ git checkout gh-pages
# 复制粘贴 `react-gh-pages` 文件夹中的所有内容
$ git add .
$ git commit -m 'update docs'
$ git push origin gh-pages

申请合并

完成你所选部分的翻译之后,可以在 Pull requests 页面发起新的 Pull requests 请求合并你的翻译至本仓库中。

react's People

Contributors

guaerguagua avatar liangzr avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.