fixed some syntax errors

Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/548e1f66
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/548e1f66
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/548e1f66

Branch: refs/heads/dev
Commit: 548e1f6661c2a9ce2a570859ce6a7d3dc22aae12
Parents: 46a2f77
Author: JackPu <kakashj...@gmail.com>
Authored: Thu Mar 16 19:49:16 2017 +0800
Committer: JackPu <kakashj...@gmail.com>
Committed: Thu Mar 16 19:49:16 2017 +0800

----------------------------------------------------------------------
 doc/source/cn/guide/set-up-env.md    |  2 +-
 doc/source/cn/guide/tools/toolkit.md | 42 +++++++++++++++----------------
 doc/source/guide/set-up-env.md       |  2 +-
 doc/source/guide/tools/toolkit.md    | 42 +++++++++++++++----------------
 4 files changed, 43 insertions(+), 45 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/548e1f66/doc/source/cn/guide/set-up-env.md
----------------------------------------------------------------------
diff --git a/doc/source/cn/guide/set-up-env.md 
b/doc/source/cn/guide/set-up-env.md
index 437ab06..139e155 100644
--- a/doc/source/cn/guide/set-up-env.md
+++ b/doc/source/cn/guide/set-up-env.md
@@ -67,7 +67,7 @@ $ sudo cnpm install -g weex-toolkit
 
 安装结束后你可以直接使用 `weex` 命令验证是否安装
成功,它会显示 `weex` 命令行工具各参数:
 
-![](https://img.alicdn.com/tps/TB1kHFrOFXXXXaYXXXXXXXXXXXX-615-308.jpg)
+![](https://img.alicdn.com/tfs/TB1NBhdQXXXXXXzXFXXXXXXXXXX-712-343.png)
 
 ## 第二步:初始化
 

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/548e1f66/doc/source/cn/guide/tools/toolkit.md
----------------------------------------------------------------------
diff --git a/doc/source/cn/guide/tools/toolkit.md 
b/doc/source/cn/guide/tools/toolkit.md
index 0e50ea6..4984626 100644
--- a/doc/source/cn/guide/tools/toolkit.md
+++ b/doc/source/cn/guide/tools/toolkit.md
@@ -22,9 +22,9 @@ $ npm install -g weex-toolkit
 
 如果你本地没有安装node.js你
可以前往[官网](https://nodejs.org/en/)下载安装。
 
-*请确保你的node 版本是>=6,你可以使用 [n](https://github.com/tj/n) 
来进行node的版本管理*
+*请确保你的node 版本是>=6,你可以使用 [n](https://github.com/tj/n) 
来进行node的版本管理*。
 
-中国用户如果npm遭遇网络问题,可以使用淘宝的 cnpm 镜像, 
[cnpm](https://npm.taobao.org/):
+中国用户如果npm遭遇网络问题,可以使用淘宝的 `cnpm` 
镜像, [cnpm](https://npm.taobao.org/):
 
 ``` bash
 $ npm install -g cnpm --registry=https://registry.npm.taobao.org
@@ -41,10 +41,10 @@ $ cnpm install -g weex-toolkit
 $ weex init awesome-project
 ```
 
-执行完命令后,在 `awesome-project` 目录中就创建了一个使用 
Weex 和 Vue 的模板项目。
+执行完命令后,在 `awesome-project` 目录中就创建了一个使用 
`Weex` 和 `Vue` 的模板项目。
 
 
-然后我们进入项目所在路径,weex-toolkit 已经为我们生成了æ 
‡å‡†é¡¹ç›®ç»“构。
+然后我们进入项目所在路径,`weex-toolkit` 
已经为我们生成了标准项目结构。
 
 在 `package.json` 中,已经配置好了几个常用的 npm 
script,分别是:
 
@@ -53,20 +53,20 @@ $ weex init awesome-project
 - `serve`: 开启静态服务器
 - `debug`: 调试模式
 
-我们先通过 `npm install` 安装项目依赖。之后运行 `npm run dev` 
和 `npm run serve` 开启watch 模式和静态服务器。
+我们先通过 `npm install` 安装项目依赖。之后运行 `npm run dev` 
和 `npm run serve` 开启`watch`模式和静态服务器。
 
-然后我们打开浏览器,进入 `http://localhost:8080/index.html` 
即可看到 weex h5 页面。
+然后我们打开浏览器,进入 `http://localhost:8080/index.html` 
即可看到 Weex h5 页面。
 
 
 ### 实时预览
 
-weex-toolkit支持预览你当前开发的weex页面(.we或者.vue),你
只需要指定预览的文件路径即可:
+`weex-toolkit`支持预览你当前开发的weex页面(`.we`或者`.vue`),你
只需要指定预览的文件路径即可:
 
 ``` bash
 $ weex src/foo.vue 
 ```
 
-浏览器会自动弹出页面,这个时候你可以看到你
所编辑的weex页面的具体效果和页面布局。如果你
使用[playground](https://weex.apache.org/cn/playground.html)扫描右边的二维ç
 ,就能够看到weex在 android/iOS 设备上的效果了。
+浏览器会自动弹出页面,这个时候你可以看到你
所编辑的weex页面的具体效果和页面布局。如果你
使用[playground](https://weex.apache.org/cn/playground.html)扫描右边的二维ç
 ï¼Œå°±èƒ½å¤Ÿçœ‹åˆ°Weex在 Android/IOS 设备上的效果了。
 
 如果你需要预览整个项目目录,你可以输入这样的命令:
 
@@ -86,9 +86,9 @@ weex compile src/foo.vue dist
 
 
 
-### 调试 weex 页面
+### 调试 Weex 页面
 
-weex-toolkit支持调试工具**[weex 
devtools](https://github.com/weexteam/weex-devtool)**,它是专门为weex定制的一款实现了[**Chrome
 Debugging 
Protocol**](https://developer.chrome.com/devtools/docs/debugger-protocol)的inspect/debugå·¥å
…·ï¼Œèƒ½å¤Ÿå¸®åŠ©ä½ 
快速查看app运行状态和调试weex中的Javascript代ç 
ï¼Œå½“前支持**IOS**和**Android**两个平台。
+weex-toolkit支持调试工具。**[weex 
devtools](https://github.com/weexteam/weex-devtool)**,它是专门为Weex定制的一款实现了[**Chrome
 Debugging 
Protocol**](https://developer.chrome.com/devtools/docs/debugger-protocol)的inspect/debugå·¥å
…·ï¼Œèƒ½å¤Ÿå¸®åŠ©ä½ 
快速查看app运行状态和调试weex中的Javascript代ç 
ï¼Œå½“前支持**IOS**和**Android**两个平台。
 
 #### 用法
 
@@ -112,7 +112,7 @@ weex-toolkit支持调试工具**[weex 
devtools](https://github.com/weexteam/weex
 $ weex debug
 ```
 
-单纯启动一个调试服务器,并同时唤起chrome浏览器打开`调试主页`.
+单纯启动一个调试服务器,并同时唤起Chrome浏览器打开`调试主页`.
 这个`调试主页`上会有一个二维码,使用Playground 
App扫这个二维码可以开启Playground调试.
 开启调试后,设备列表中会出现您的设备,æ 
¹æ®æç¤ºè¿›è¡ŒåŽç»­çš„调试操作
 
@@ -122,10 +122,10 @@ $ weex debug
 $ weex debug your_weex.vue
 ```
 
-这个命令会将your_weex.vue编译成bundlejs文件 部署到debug服务器
-并启动debug服务器如上述命令那æ 
·.打开的`调试vue主页`会多显示一个二维码,使用playground app
-扫这个码可以加载your_weex.we.(注意要先扫描开启调试的那个ç 
)
-这个命令会自动检测your_weex.we文件变动,如果发现内
容被修改则立即重新编译部署,并刷新debugger页面
+这个命令会将`your_weex.vue`编译成`bundlejs`文件 
部署到debug服务器
+并启动debug服务器如上述命令那æ 
·.打开的`调试vue主页`会多显示一个二维码,使用Playground App
+扫这个码可以加载`your_weex.we`.(注意要å…
ˆæ‰«æå¼€å¯è°ƒè¯•çš„那个码)
+这个命令会自动检测`your_weex.we`文件变动,如果发现内
容被修改则立即重新编译部署,并刷新`debugger`页面
 .
 #### 调试整个bundle/we文件夹
 
@@ -136,8 +136,8 @@ $weex debug your/we/path  -e index.we
 ```
 
 这个命令会编译你
指定目录下的所有的we文件,并把编译好的bundlejs部署到debug服务器,他们的地址会æ˜
 å°„到 http://lcoalhost:8088/weex/ 下
-比如 your/we/path/`index.we` 
可以通过http://lcoalhost:8088/weex/index.js访问  
-your/we/path/`demo/test.we` 
可以通过http://lcoalhost:8088/weex/demo/index.js  
+比如 `your/we/path/index.we` 
可以通过http://lcoalhost:8088/weex/index.js访问  
+`your/we/path/demo/test.we` 
可以通过http://lcoalhost:8088/weex/demo/index.js  
 
 -e参数可以指定一个å…
¥å£çš„we文件,这个文件的地址会显示在`调试主页`上(作为二维ç
 )
 
@@ -183,13 +183,13 @@ your/we/path/`demo/test.we` 
可以通过http://lcoalhost:8088/weex/demo/index.js
   
 ### weex-toolkit 对 weexpack的水平扩展
 
-[weexpack](https://github.com/weexteam/weex-pack) 是基于 weex 
快速搭建应用原型的利器。它能够帮助开发者
通过命令行创建 Weex 工程,添加相应平台的 Weex app 
模版,并基于模版从本地、GitHub 或者 Weex 应用市场安装
插件,快速打包 Weex 应用并安装到手机运行,对于å…
·æœ‰åˆ†äº«ç²¾ç¥žçš„开发者而言还能够创建 Weex 
插件模版并发布插件到 Weex 应用市场。
+[weexpack](https://github.com/weexteam/weex-pack) 是基于 Weex 
快速搭建应用原型的利器。它能够帮助开发者
通过命令行创建 Weex 工程,添加相应平台的 Weex app 
模版,并基于模版从本地、GitHub 或者 Weex 应用市场安装
插件,快速打包 Weex 应用并安装到手机运行,对于å…
·æœ‰åˆ†äº«ç²¾ç¥žçš„开发者而言还能够创建 Weex 
插件模版并发布插件到 Weex 应用市场。
 
-现在使用weex-toolkit同样支持对weexpack的命令调用,如果你
当前的项目与weexpack生成的项目目录一致,那么你
可以直接实现对于platform的操作,从而构建具体的android/ios 
app.
+现在使用`weex-toolkit`同样支持对`weexpack`的命令调用,如果你
当前的项目与`weexpack`生成的项目目录一致,那么你
可以直接实现对于platform的操作,从而构建具体的Android/IOS 
app。
 
 ### weex platform 以及 run 命令
 
-如果我们希望在模拟器或者
真机上查看weex运行的效果,我们可以使用 platform 添加或者删
除 Weex应用模板。
+如果我们希望在模拟器或者
真机上查看Weex运行的效果,我们可以使用 `platform` 添加或者
删除 Weex 应用模板。
 
 ``` bash
 $ weex platform add ios 
@@ -227,7 +227,7 @@ $ weex plugin add weex-chart
 $ weex plugin remove weex-chart
 ```
 
-关于weexpack 更加详细的介绍,你可以阅读 
[官方文档](https://github.com/weexteam/weex-pack)
+关于weexpack 更加详细的介绍,你可以阅读 
[官方文档](https://github.com/weexteam/weex-pack)。
 
 
 

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/548e1f66/doc/source/guide/set-up-env.md
----------------------------------------------------------------------
diff --git a/doc/source/guide/set-up-env.md b/doc/source/guide/set-up-env.md
index 759dc9a..702c347 100644
--- a/doc/source/guide/set-up-env.md
+++ b/doc/source/guide/set-up-env.md
@@ -37,7 +37,7 @@ weex-previewer : v1.3.4
 
 Then you can use the weex command to verify that the installation is 
successful:
 
-![](https://img.alicdn.com/tps/TB1kHFrOFXXXXaYXXXXXXXXXXXX-615-308.jpg)
+![](https://img.alicdn.com/tfs/TB1NBhdQXXXXXXzXFXXXXXXXXXX-712-343.png)
 
 ### Generate a new Weex project
 

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/548e1f66/doc/source/guide/tools/toolkit.md
----------------------------------------------------------------------
diff --git a/doc/source/guide/tools/toolkit.md 
b/doc/source/guide/tools/toolkit.md
index f2a9a06..a39e617 100644
--- a/doc/source/guide/tools/toolkit.md
+++ b/doc/source/guide/tools/toolkit.md
@@ -7,7 +7,7 @@ version: 2.1
 
 # weex-toolkit
 
-[weex-toolkit](https://github.com/weexteam/weex-toolkit) is an official 
command line tool to help developers to create , debug and build their weex 
project.
+[weex-toolkit](https://github.com/weexteam/weex-toolkit) is an official 
command line tool to help developers to create, debug and build their weex 
project.
 
 ### Install
 use npm to install weex-toolkit:
@@ -15,7 +15,7 @@ use npm to install weex-toolkit:
 ``` bash
 $ npm install -g weex-toolkit
 ```
-if you make it, you can input "weex" in your command line terminal to test 
it. The right output:
+if you make it, you can input "weex" in your command line terminal to test it. 
The right output:
 
 
 
![weex-commands](https://img.alicdn.com/tfs/TB1NBhdQXXXXXXzXFXXXXXXXXXX-712-343.png)
@@ -25,12 +25,12 @@ if you have never installed node.js, you should go [node.js 
official site]( http
 If you meet some errors when installing like “permission error”, please go 
[weex-toolkit issues](https://github.com/weexteam/weex-toolkit/issues) to find 
some solution or have a discuss with us. 
 
 
-### initialize weex project
+### initialize Weex project
 ```bash
 $ weex init awesome-project
 ```
 After command running, you can find `awesome-project` directory and there are 
some weex templates in it. 
-There are some useful npm scripts you will use in the future:
+There are some useful npm scripts you will use in the future:
 
 - `build`: build the source code and generate the JS bundle
 - `dev`: run webpack watch configuration
@@ -42,21 +42,21 @@ When all dependences are ready, you can input `npm run dev` 
and run `npm run ser
 http://localhost:8080/index.html
 
 
-### preview weex page in time
+### preview Weex page in time
 
-weex-toolkit supports previewing your weex file(.we or .vue) in a watch mode. 
You only need specify your file path:
+weex-toolkit supports previewing your weex file(`.we` or `.vue`) in a watch 
mode. You only need specify your file path.
 
 ``` bash
 $ weex src/foo.vue 
 ```
-The browser will auto open the location and you could see the layout and 
effects of your weex page. If you have a 
[playground](https://weex.apache.org/cn/playground.html) app in your mobile 
devices , you can scan the QR code at the opened page.
-Try the command below , you’ll preview the whole directory files.
+The browser will auto open the location and you could see the layout and 
effects of your weex page. If you have a 
[Playground](https://weex.apache.org/cn/playground.html) app in your mobile 
devices, you can scan the QR code at the opened page.
+Try the command below, you’ll preview the whole directory files.
 
 ``` bash
 $ weex src --entry src/foo.vue
 ```
-You need to specify the directory path and the entry file(--entry)
-### build weex project
+You need to specify the directory path and the entry file(--entry).
+### build Weex project
 Use ` weex compile ` to build your single weex file or the whole project.
 ``` bash
 weex compile src/foo.vue dist
@@ -65,7 +65,7 @@ There are two arguments. One is your code source path (a 
single file or a direct
 
 ### debug 
 
-weex-toolkit has the ability to extend third party script.  And **[weex 
devtools](https://github.com/weexteam/weex-devtool)** is a custom devtools for 
weex that implements [Chrome Debugging 
Protocol](https://developer.chrome.com/devtools/docs/debugger-protocol), it is 
designed to help you quickly inspect your app and debug your JS bundle source 
in a chrome web page, both android and iOS platform are supported. So you can 
use weex-devtools feature by weex-toolkit.
+weex-toolkit has the ability to extend third party script.  And **[Weex 
devtools](https://github.com/weexteam/weex-devtool)** is a custom devtools for 
Weex that implements [Chrome Debugging 
Protocol](https://developer.chrome.com/devtools/docs/debugger-protocol), it is 
designed to help you quickly inspect your app and debug your JS bundle source 
in a Chrome web page, both android and iOS platform are supported. So you can 
use weex-devtools feature by weex-toolkit.
 
 #### usage
 
@@ -99,7 +99,7 @@ $ weex debug your_weex.vue
 ```
 
 this command will compile `your_weex.we` to `your_weex.js`  and start the 
debug server as upon command.
-`your_weex.js` will deploy on the server and displayed in `DeviceList` page as 
 another qrcode contain the url of your_weex.js
+`your_weex.js` will deploy on the server and displayed in `DeviceList` page as 
 another qrcode contain the url of your_weex.js.
 
 .
 #### start debugger with a directory of we files
@@ -109,8 +109,8 @@ this command will compile `your_weex.we` to `your_weex.js`  
and start the debug
 $weex debug your/we/path  -e index.we
 ```
 
-this command will build every file in your/we/path and deploy them on the 
bundle server. your directory will mapping to  http://localhost:port/weex/ 
-use -e to set the entry of these bundles. and the url of "index.we" will 
display on device list page as another qrcode.
+this command will build every file in `your/we/path `and deploy them on the 
bundle server. your directory will mapping to  http://localhost:port/weex/ 
+use -e to set the entry of these bundles. and the url of `index.we` will 
display on device list page as another qrcode.
 
 
 #### Features
@@ -150,28 +150,26 @@ use -e to set the entry of these bundles. and the url of 
"index.we" will display
 * Android
     * See the doc [Weex devtools 
(Android)](../../references/advanced/integrate-devtool-to-android.html), it 
will lead you to config and use it step by step.
 * IOS
-    * See the doc [Weex devtools 
(iOS)](../../references/advanced/integrate-devtool-to-ios.html), it will lead 
you to config and use it step by step.
+    * See the doc [Weex devtools 
(IOS)](../../references/advanced/integrate-devtool-to-ios.html), it will lead 
you to config and use it step by step.
   
 ### weex-toolkit extends weexpack command
 
+[weexpack](https://github.com/weexteam/weex-pack) helps to setup Weex 
application from scratch quickly. With simple commands, developers could create 
a Weex project, add different platform template, could install plugins from 
local, GitHub or Weex market, could pack up his application project and run on 
mobile. For those who would like to share his own plugins, he could publish 
them to the Weex market.
 
-
-[Weexpack](https://github.com/weexteam/weex-pack) helps to setup weex 
application from scratch quickly. With simple commands, developers could create 
a Weex project, add different platform template, could install plugins from 
local, GitHub or Weex market, could pack up his application project and run on 
mobile. For those who would like to share his own plugins, he could publish 
them to the Weex market.
-
-Now weex-toolkit can run the same commands of weexpack because of the new 
architecture. If your directory is generated by weexpack, you can build your 
iOS or android app.
+Now weex-toolkit can run the same commands of `weexpack` because of the new 
architecture. If your directory is generated by `weexpack`, you can build your 
iOS or android app.
 
 ### weex platform and run commands
 
 Use `platform add|remove` to add or remove Weex app template and run it in 
your target devices.
 
 ``` bash
-$ weex platform add iOS 
+$ weex platform add ios
 ```
 If you use these commands firstly, you might see the prompt. Just enter Y.
 
 ![install 
weexpack](https://gw.alicdn.com/tfs/TB19n4AQXXXXXawXVXXXXXXXXXX-577-70.png)
 
-Then run platform, you will see an iPhone simulator
+Then run platform, you will see an iPhone simulator.
 
 ``` bash
 $ weex run ios
@@ -199,4 +197,4 @@ Remove some plugins(eg:weex-chart):
 $ weex plugin remove weex-chart
 ```
 
-Learn more about [weexpack](https://github.com/weexteam/weex-pack)
\ No newline at end of file
+Learn more about [weexpack](https://github.com/weexteam/weex-pack).
\ No newline at end of file

Reply via email to