* [doc] updated guide/intro/app-arch

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

Branch: refs/heads/master
Commit: 7d94533a629939ea504afd81986fb7e69d9a8659
Parents: 7737d9f
Author: Jinjiang <zhaojinji...@me.com>
Authored: Fri Feb 17 14:46:53 2017 +0800
Committer: Jinjiang <zhaojinji...@me.com>
Committed: Fri Feb 17 14:46:53 2017 +0800

----------------------------------------------------------------------
 doc/source/cn/guide/intro/app-architecture.md | 34 ++++---------
 doc/source/guide/intro/app-architecture.md    | 57 ++++++++++++++++++++--
 doc/source/guide/intro/index.md               |  4 +-
 doc/source/guide/intro/page-architecture.md   |  4 +-
 doc/source/guide/intro/using-vue.md           |  2 +-
 doc/source/guide/intro/web-dev-experience.md  |  2 +-
 doc/source/guide/intro/write-once.md          |  2 +-
 7 files changed, 70 insertions(+), 35 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/7d94533a/doc/source/cn/guide/intro/app-architecture.md
----------------------------------------------------------------------
diff --git a/doc/source/cn/guide/intro/app-architecture.md 
b/doc/source/cn/guide/intro/app-architecture.md
index 556f72a..a3f39ce 100644
--- a/doc/source/cn/guide/intro/app-architecture.md
+++ b/doc/source/cn/guide/intro/app-architecture.md
@@ -31,10 +31,9 @@ version: 2.1
 |------|------|------|------| |-----|
 | page | page | page | page | | api |
 |------|------|------|------| | api |
-|------|------|------|------| | api |
 | page | page | page | page | | api |
 |------|------|------|------| | api |
-                              | api |
+| page | page | page | page | | api |
 |---------------------------| | api |
 |           router          | | api |
 |---------------------------| |-----|
@@ -44,34 +43,19 @@ version: 2.1
 * 
路由:这些页面将会通过路由机制有机的串联起来,页面之间的å
…³ç³»æ˜¯é€šè¿‡è·¯ç”±æ¥è¿›è¡Œè°ƒåº¦çš„。常见的移动应用路由包
括导航栏、tab 切换等。
 * 设备能力:以各种 API 
或服务的方式提供出来,供页面自由使用。
 
-## 工作分解
-
-### 前期设计
-
-确定一个移动应用有多少页面,每个页面分别是什么 
URL,页面之间的关联和跳转逻辑是怎æ 
·çš„,然后梳理整个移动应用需要的所有 API 和服务。
-
-### 脚手架
+这样的话,在构建一个完整的移动应用之前,先确定你
的应用有多少页面,每个页面分别是什么 URL,页面之间的å…
³è”和跳转逻辑是怎样的,然后梳理整个移动应用需要的所有 
API 和服务。
 
-首先我们需要一个 Weex 
移动应用的脚手架,通过这个脚手架我们能够初始化一个 iOS 
工程、一个 Android 工程或一个 web 工程。并在å…
¶ä¸­å®šä¹‰ä¸€äº›åŸºæœ¬çš„配置信息和路由规则。
+然后通过 Weex 
创建不同的页面,并分别进行开发、调试和发布。
 
-<!-- weex-pack -->
+**相关链接**
 
-### 页面
+* [页面结构](./page-architecture.html)
 
-然后我们通过 Weex 页面脚手架来创建一个个独立的 Weex 
页面,并分别进行开发、调试和发布。
-
-<!-- 页面结构 -->
-
-### 扩展
+如果你已经有一个做好的移动应用,只想用 Weex 开发å…
¶ä¸­çš„一部分页面甚至仅仅其中的一两个页面,这对 Weex 
来说完全不是问题。Weex 只是一个 
SDK,对整体的移动应用架构不会产生任何侵入性。并且完å…
¨å¯ä»¥å’Œçº¯ native 界面或 hybrid 页面共存。
 
 如果需要 WeexSDK 额外的组件、模块或其它功能,可以通过 
Weex 的扩展机制进行扩展。这部分工作需要 native 的ç 
”发知识,但是随着 Weex 
组件和模块的丰富以及业务迭代的深å…
¥ï¼Œè¿™éƒ¨åˆ†æˆæœ¬ä¼šæ‰¿ä¸‹é™å’Œæ”¶æ•›çš„趋势。
 
-<!-- 扩展 iOS -->
-
-<!-- 扩展 Android -->
-
-### 云端
-
-在云端部署相应的 JS bundle,同时通过缓存或预加载等方式加
速 Weex 页面的加载时间和首屏渲染时间。
+**相关链接**
 
-这æ 
·ï¼Œä»Žç§»åŠ¨åº”ç”¨æ•´ä½“æž¶æž„ã€åˆ°é¡µé¢å¼€å‘å’ŒåŠŸèƒ½æ‰©å±•ï¼Œå†åˆ°äº‘ç«¯çš„éƒ¨ç½²å’Œåˆ†å‘ï¼Œä¸€ä¸ªå®Œæ•´çš„
 Weex 应用就可以构建出来。
\ No newline at end of file
+* [如何扩展 iOS](../../references/advanced/extend-to-ios.html)
+* [如何扩展 Android](../../references/advanced/extend-to-android.html)

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/7d94533a/doc/source/guide/intro/app-architecture.md
----------------------------------------------------------------------
diff --git a/doc/source/guide/intro/app-architecture.md 
b/doc/source/guide/intro/app-architecture.md
index 86e89ad..d7b3bc6 100644
--- a/doc/source/guide/intro/app-architecture.md
+++ b/doc/source/guide/intro/app-architecture.md
@@ -1,10 +1,61 @@
 ---
-title: App Architecture  
+title: Mobile App Architecture
 type: guide
 order: 4.5
 version: 2.1
 ---
 
-# App Architecture
+# Mobile App Architecture
 
-Work in progress.
\ No newline at end of file
+## Today's Mobile App
+
+Let's talk about what we think a mobile app should be.
+
+### Mobile App Needs Parallel Development
+
+Nowadays, all mobile app teams requires the ability to develop in parallel. 
When a mobile app keeps growing, supporting large-scale parallel development 
must become a very important key thing. Otherwise it's really easy to become a 
bottleneck.
+
+### Mobile App Needs to be Dynamic
+
+Today the development of mobile apps is very heavy. And it's really slow in 
iteration, release, distribution and online bugfix. The size of the package of 
an app is growing fast too. All of this is not suitable for this mobile 
internet age. Mobile app needs to be dynaimic which is out of the cumbersome 
process of version deployment and distribution.
+
+### Mobile App Needs Open Interconnection
+
+Today in your phone, things are hard to connect and share between different 
apps. They needs some container with common standard and specs to be shared 
with each other.
+
+## Our Thinking of Mobile App
+
+We think a dynamic, parallel development supported, standardized mobile app 
should be like this:
+
+```
+|------|------|------|------| |-----|
+| page | page | page | page | | api |
+|------|------|------|------| | api |
+| page | page | page | page | | api |
+|------|------|------|------| | api |
+| page | page | page | page | | api |
+|---------------------------| | api |
+|           router          | | api |
+|---------------------------| |-----|
+```
+
+* Pages: A whole mobile app should be divided into several mobile pages. Each 
mobile page has its own "URL".
+* Router: All the mobile pages above will be connected with router. And 
navigators or tab bars are just doing this job.
+* Features: All kinds of APIs or services provided from the device. Every 
mobile page could use these features as they like.
+
+So before you build your mobile app, make sure how many mobile pages your 
mobile app has and what are they. How do they connect each other. Give each 
mobile page a URL. And sort out all the APIs and services your mobile app needs.
+
+Then create the pages and develop, debug and deploy them using Weex.
+
+**Links**
+
+* [Mobile page architecture](./page-architecture.html)
+
+If you have built a complete mobile app already and just want to using Weex to 
rebuild part of these pages, that's absolutely no problem. Because Weex is just 
a SDK to build mobile pages which can coexist very well with other native views 
or hybrid pages.
+
+If the feature of WeexSDK is limited to your mobile app. You can extend your 
own components and modules. It requires some native development knowledge. But 
with our efforts on delivering more and more features, we believe this part of 
job will be getting smaller and smaller.
+
+**Links**
+
+* [Extend to iOS](../../references/advanced/extend-to-ios.html)
+* [Extend to Android](../../references/advanced/extend-to-android.html)

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/7d94533a/doc/source/guide/intro/index.md
----------------------------------------------------------------------
diff --git a/doc/source/guide/intro/index.md b/doc/source/guide/intro/index.md
index 1b07ccd..24c8236 100644
--- a/doc/source/guide/intro/index.md
+++ b/doc/source/guide/intro/index.md
@@ -1,5 +1,5 @@
 ---
-title: Intro 
+title: Intro
 type: guide
 order: 4
 has_chapter_content: false
@@ -14,4 +14,4 @@ version: 2.1
 - [Using Vue](./using-vue.html)
 - [Write once, Run Everywhere](./write-once.html)
 - [App Architecture](./app-architecture.html)
-- [Weex Page Architecture](./page-architecture.html)
\ No newline at end of file
+- [Weex Page Architecture](./page-architecture.html)

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/7d94533a/doc/source/guide/intro/page-architecture.md
----------------------------------------------------------------------
diff --git a/doc/source/guide/intro/page-architecture.md 
b/doc/source/guide/intro/page-architecture.md
index e353b98..73e5302 100644
--- a/doc/source/guide/intro/page-architecture.md
+++ b/doc/source/guide/intro/page-architecture.md
@@ -1,5 +1,5 @@
 ---
-title: Weex Page Architecture  
+title: Weex Page Architecture
 type: guide
 order: 4.6
 version: 2.1
@@ -7,4 +7,4 @@ version: 2.1
 
 # Weex Page Architecture
 
-Work in progress.
\ No newline at end of file
+Work in progress.

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/7d94533a/doc/source/guide/intro/using-vue.md
----------------------------------------------------------------------
diff --git a/doc/source/guide/intro/using-vue.md 
b/doc/source/guide/intro/using-vue.md
index bc043ae..953d7fd 100644
--- a/doc/source/guide/intro/using-vue.md
+++ b/doc/source/guide/intro/using-vue.md
@@ -1,5 +1,5 @@
 ---
-title: Using Vue  
+title: Using Vue
 type: guide
 order: 4.3
 version: 2.1

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/7d94533a/doc/source/guide/intro/web-dev-experience.md
----------------------------------------------------------------------
diff --git a/doc/source/guide/intro/web-dev-experience.md 
b/doc/source/guide/intro/web-dev-experience.md
index 026a02a..81d0ff2 100644
--- a/doc/source/guide/intro/web-dev-experience.md
+++ b/doc/source/guide/intro/web-dev-experience.md
@@ -1,5 +1,5 @@
 ---
-title: Web Dev Experience  
+title: Web Dev Experience
 type: guide
 order: 4.2
 version: 2.1

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/7d94533a/doc/source/guide/intro/write-once.md
----------------------------------------------------------------------
diff --git a/doc/source/guide/intro/write-once.md 
b/doc/source/guide/intro/write-once.md
index 282c992..382b7b4 100644
--- a/doc/source/guide/intro/write-once.md
+++ b/doc/source/guide/intro/write-once.md
@@ -1,5 +1,5 @@
 ---
-title: Write once, Run Everywhere  
+title: Write once, Run Everywhere
 type: guide
 order: 4.4
 version: 2.1

Reply via email to