You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ha...@apache.org on 2018/01/18 13:57:33 UTC

incubator-weex-site git commit: update document styles [Forced Update!]

Repository: incubator-weex-site
Updated Branches:
  refs/heads/master 5978224a3 -> b0d0243d9 (forced update)


update document styles


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

Branch: refs/heads/master
Commit: b0d0243d9d939200593b46f737ad78279d4d4b1f
Parents: 873c4a6
Author: Hanks <zh...@gmail.com>
Authored: Thu Jan 18 21:51:30 2018 +0800
Committer: Hanks <zh...@gmail.com>
Committed: Thu Jan 18 21:57:04 2018 +0800

----------------------------------------------------------------------
 _config.yml                             |   4 --
 _config_cn.yml                          |   4 --
 source/cn/guide/using-rax.md            |   7 ---
 source/cn/guide/using-vue.md            |  63 ---------------------------
 source/cn/references/images/style_1.jpg | Bin 59366 -> 0 bytes
 source/cn/references/images/style_2.jpg | Bin 59696 -> 0 bytes
 source/cn/wiki/images/style_1.jpg       | Bin 0 -> 59366 bytes
 source/cn/wiki/images/style_2.jpg       | Bin 0 -> 59696 bytes
 source/cn/wiki/index.md                 |   2 +-
 source/resources.md                     |  24 ++++------
 themes/weex/layout/_partial/article.ejs |   2 +-
 11 files changed, 10 insertions(+), 96 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/b0d0243d/_config.yml
----------------------------------------------------------------------
diff --git a/_config.yml b/_config.yml
index 33ec8d6..e85a504 100644
--- a/_config.yml
+++ b/_config.yml
@@ -393,8 +393,6 @@ alias:
   references/advanced/integrate-devtool-to-ios.html: guide/integrate-devtool-to-ios.html
   playground.html: tools/playground.html
   faq.html: wiki/faq.html
-  releasenote.html: wiki/faq.html
-  releasenote.html: wiki/release-note.html
   cn/guide/tools/toolkit.html: cn/tools/toolkit.html
   cn/guide/tools/devtools.html: cn/tools/toolkit.html
   cn/guide/tools/weexpack.html: cn/tools/toolkit.html
@@ -434,7 +432,5 @@ alias:
   cn/references/advanced/integrate-devtool-to-ios.html: cn/guide/integrate-devtool-to-ios.html
   cn/playground.html: cn/tools/playground.html
   cn/faq.html: cn/wiki/faq.html
-  cn/releasenote.html: cn/wiki/faq.html
-  cn/releasenote.html: cn/wiki/release-note.html
 
 

http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/b0d0243d/_config_cn.yml
----------------------------------------------------------------------
diff --git a/_config_cn.yml b/_config_cn.yml
index 702df6e..25bc6a2 100644
--- a/_config_cn.yml
+++ b/_config_cn.yml
@@ -391,8 +391,6 @@ alias:
   references/advanced/integrate-devtool-to-ios.html: guide/integrate-devtool-to-ios.html
   playground.html: tools/playground.html
   faq.html: wiki/faq.html
-  releasenote.html: wiki/faq.html
-  releasenote.html: wiki/release-note.html
   cn/guide/tools/toolkit.html: cn/tools/toolkit.html
   cn/guide/tools/devtools.html: cn/tools/toolkit.html
   cn/guide/tools/weexpack.html: cn/tools/toolkit.html
@@ -432,6 +430,4 @@ alias:
   cn/references/advanced/integrate-devtool-to-ios.html: cn/guide/integrate-devtool-to-ios.html
   cn/playground.html: cn/tools/playground.html
   cn/faq.html: cn/wiki/faq.html
-  cn/releasenote.html: cn/wiki/faq.html
-  cn/releasenote.html: cn/wiki/release-note.html
 

http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/b0d0243d/source/cn/guide/using-rax.md
----------------------------------------------------------------------
diff --git a/source/cn/guide/using-rax.md b/source/cn/guide/using-rax.md
deleted file mode 100644
index 092a446..0000000
--- a/source/cn/guide/using-rax.md
+++ /dev/null
@@ -1,7 +0,0 @@
----
-title: 使用 Rax
-type: guide
-group: 开发
-order: 5.3
-version: 2.1
----

http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/b0d0243d/source/cn/guide/using-vue.md
----------------------------------------------------------------------
diff --git a/source/cn/guide/using-vue.md b/source/cn/guide/using-vue.md
deleted file mode 100644
index e40c08f..0000000
--- a/source/cn/guide/using-vue.md
+++ /dev/null
@@ -1,63 +0,0 @@
----
-title: 使用 Vue.js
-type: guide
-group: 开发
-order: 5.2
-version: 2.1
----
-
-# 使用 Vue 开发 Weex 页面
-
-## Vue in Weex
-
-[Vue.js](https://vuejs.org/) 是 Evan You 开发的渐进式 JavaScript 框架,在易用性、灵活性和性能等方面都非常优秀。开发者能够通过撰写 `*.vue` 文件,基于 `<template>`, `<style>`, `<script>` 快速构建组件化的 web 应用。
-
-![a vue file](//cn.vuejs.org/images/vue-component.png)
-
-Vue.js 在 2016 年 10 月正式发布了 2.0 版本,该版本加入了 Virtual-DOM 和预编译器的设计,使得该框架在运行时能够脱离 HTML 和 CSS 解析,只依赖 JavaScript;同时 Virtual-DOM 也使得 Vue 2.x 渲染成原生 UI 成为了可能。
-
-目前 Weex 与 Vue 正在展开官方合作,并将 Vue 2.x 作为内置的前端框架,Vue 也因此具备了开发原生应用的能力。
-
-**相关链接**
-
-* [Weex 快速上手](../index.html)
-* [Vue 介绍](https://cn.vuejs.org/v2/guide/)
-* [Weex 工作原理](./index.html)
-
-## Vue 2.x 在 Weex 中的特色功能
-
-### 流式渲染
-
-在 Weex 中,我们可以通过 `<foo append="tree|node">` 的方式定义页面首次渲染时的渲染颗粒度,这让开发者有机会根据界面的复杂度和业务需求对首次渲染过程进行定制。`append="tree"` 表示整个结点包括其所有子结点全部生成完毕之后,才会一次性渲染到界面上;而 `append="node"` 则表示该结点会先渲染在界面上作为一个容器,其子结点会稍后做进一步渲染。
-
-<!-- dotwe demo -->
-
-### 表单控件绑定
-
-在 Weex 中,我们针对 `<input>` 和 `<textarea>` 这两个表单控件提供了和 web 体验相同的 `v-model` 指令。通过 `<input v-model="message">` 或 `<textarea v-model="message">`,开发者可以把数据 `message` 的值自动展示在文本框上,同时用户修改了文本框的值的时候,数据 `message` 会自动被更新。
-
-<!-- dotwe demo -->
-
-### 多页面上下文隔离
-
-如 Weex 工作原理文中所述,所有 Weex 的 JS bundle 公用一个 JavaScript 内核实例。所以如何能够让多个 JS bundle 中使用的 Vue 是完全隔离的,并且其中一个页面对 Vue 进行扩展或改写不会影响到其它页面就变成了一个问题,通过 Weex 和 Vue 双方的协作,这一问题已经得以解决。大家可以放心使用。
-
-<!-- html5 apis -->
-
-### `<transition>` 过渡状态
-
-Weex 支持了 Vue 2.x 中经典的 `<transition>` 写法,开发者可以通过 `<transition>` 轻松定义一个界面在两种状态中的过渡方式。
-
-## 注意事项
-
-Vue.js 最初是为 Web 设计的,虽然可以基于 Weex 开发移动应用,但是 Web 开发和原生开发毕竟不同,在功能和开发体验上都有一些差异,这些差异从本质上讲是原生开发平台和 Web 平台之间的差异,Weex 正在努力缩小这个差异的范围。
-
-参考文章[《Vue 2.x 在 Weex 和 Web 中的差异》](../../references/vue/index.html)了解存在差异的原因和细节。
-
-## 使用其他 Vue 的工具库
-
-Vue.js 也有较多周边技术产品,如 [Vuex](https://github.com/vuejs/vuex) 和 [vue-router](https://github.com/vuejs/vue-router) 等,这些库也可以在 Weex 中很好的工作。
-
-关于 Vuex 和 vue-router 的使用方法,可以参考[《在 Weex 项目中使用 Vuex 和 vue-router》](../../references/vue/difference-of-vuex.html)。
-
-> 我们基于 Weex 和 Vue 开发了一个的完整项目 [weex-hackernews](https://github.com/weexteam/weex-hackernews) ,引入了包含 Vue 2.x 的 WeexSDK,创建了三端的项目和基本的编译配置。在项目中使用了 Vuex 和 vue-router ,能够实现同一份代码,在 iOS、Android、Web 下都能完整地工作。

http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/b0d0243d/source/cn/references/images/style_1.jpg
----------------------------------------------------------------------
diff --git a/source/cn/references/images/style_1.jpg b/source/cn/references/images/style_1.jpg
deleted file mode 100644
index 2482710..0000000
Binary files a/source/cn/references/images/style_1.jpg and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/b0d0243d/source/cn/references/images/style_2.jpg
----------------------------------------------------------------------
diff --git a/source/cn/references/images/style_2.jpg b/source/cn/references/images/style_2.jpg
deleted file mode 100644
index 6b6f2e1..0000000
Binary files a/source/cn/references/images/style_2.jpg and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/b0d0243d/source/cn/wiki/images/style_1.jpg
----------------------------------------------------------------------
diff --git a/source/cn/wiki/images/style_1.jpg b/source/cn/wiki/images/style_1.jpg
new file mode 100644
index 0000000..2482710
Binary files /dev/null and b/source/cn/wiki/images/style_1.jpg differ

http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/b0d0243d/source/cn/wiki/images/style_2.jpg
----------------------------------------------------------------------
diff --git a/source/cn/wiki/images/style_2.jpg b/source/cn/wiki/images/style_2.jpg
new file mode 100644
index 0000000..6b6f2e1
Binary files /dev/null and b/source/cn/wiki/images/style_2.jpg differ

http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/b0d0243d/source/cn/wiki/index.md
----------------------------------------------------------------------
diff --git a/source/cn/wiki/index.md b/source/cn/wiki/index.md
index 62fff5c..b893e98 100644
--- a/source/cn/wiki/index.md
+++ b/source/cn/wiki/index.md
@@ -13,7 +13,7 @@ version: 2.1
 
 Weex 表面上是一个客户端技术,但实际上它串联起了从本地开发环境到云端部署和分发的整个链路。开发者首先可以在本地像撰写 web 页面一样撰写一个 app 的页面,然后编译成一段 JavaScript 代码,形成 Weex 的一个 JS bundle;在云端,开发者可以把生成的 JS bundle 部署上去,然后通过网络请求或预下发的方式传递到用户的移动应用客户端;在移动应用客户端里,WeexSDK 会准备好一个 JavaScript 引擎,并且在用户打开一个 Weex 页面时执行相应的 JS bundle,并在执行过程中产生各种命令发送到 native 端进行的界面渲染或数据存储、网络通信、调用设备功能、用户交互响应等移动应用的场景实践;同时,如果用户没有安装移动应用,他仍然可以在浏览器里打开一个相同的 web 页面,这个页面是使用相同的页面源代码,通过浏览器里的 JavaScript 引擎运行起来的。
 
-![How it works](../images/flow.png)
+![How it works](../../images/flow.png)
 
 ## 本地开发环境
 

http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/b0d0243d/source/resources.md
----------------------------------------------------------------------
diff --git a/source/resources.md b/source/resources.md
index 78f0924..8e7b0af 100644
--- a/source/resources.md
+++ b/source/resources.md
@@ -12,32 +12,24 @@ version: 2.1
 - [Weex Project Incubation Status](http://incubator.apache.org/projects/weex.html).
 - [Mailing List](https://lists.apache.org/list.html?dev@weex.apache.org).
 - [Issues](https://issues.apache.org/jira/projects/WEEX/issues).
-- [Weex Contributing Guide](https://github.com/apache/incubator-weex/blob/master/CONTRIBUTING.md)
-A guidance document tells you how to be submitted by the person weex and how to participate in mailing discussions.
+- [Weex Contributing Guide](https://github.com/apache/incubator-weex/blob/master/CONTRIBUTING.md) A guidance document tells you how to be submitted by the person weex and how to participate in mailing discussions.
 - [Weex FAQ](https://weex.apache.org/faq.html).
 
 ## Supported Front-end Frameworks
 
-- [Rax](https://alibaba.github.io/rax/)
-**Rax** is a front-end framework with React-compatible APIs.
-- [Vue.js](https://vuejs.org/)
-**Vue.js** is a progressive front-end framework for building user interfaces.
+- [Rax](https://alibaba.github.io/rax/) **Rax** is a front-end framework with React-compatible APIs.
+- [Vue.js](https://vuejs.org/) **Vue.js** is a progressive front-end framework for building user interfaces.
 
 ## Components and Modules
 
-- [Weex Ui](https://alibaba.github.io/weex-ui/)
-**Weex Ui** is a rich interaction, lightweight, high performance UI library.
-- [Weex Market](https://market.dotwe.org)
-A website that provides a quick porting of weex's third-party component list, where you can find the weex components you need for integration.
+- [Weex Ui](https://alibaba.github.io/weex-ui/) **Weex Ui** is a rich interaction, lightweight, high performance UI library.
+- [Weex Market](https://market.dotwe.org) A website that provides a quick porting of weex's third-party component list, where you can find the weex components you need for integration.
 
 ## Tools
 
-- [Online Playground](http://dotwe.org/vue/)
-A website provides weex code practice and preview, as well as a convenient sharing platform.
-- [Playground App](http://localhost:4000/tools/playground.html)
-You can preview weex on the Playground App and learning how to use weex on it.
-- [Weex Language support for Intellij](https://plugins.jetbrains.com/plugin/9189-weex-language-support)
-A plugin supports Weex Language for Intellij. 
+- [Online Playground](http://dotwe.org/vue/) A website provides weex code practice and preview, as well as a convenient sharing platform.
+- [Playground App](http://localhost:4000/tools/playground.html) You can preview weex on the Playground App and learning how to use weex on it.
+- [Weex Language support for Intellij](https://plugins.jetbrains.com/plugin/9189-weex-language-support) A plugin supports Weex Language for Intellij.
 
 ## Community
 

http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/b0d0243d/themes/weex/layout/_partial/article.ejs
----------------------------------------------------------------------
diff --git a/themes/weex/layout/_partial/article.ejs b/themes/weex/layout/_partial/article.ejs
index 3494628..f66f588 100644
--- a/themes/weex/layout/_partial/article.ejs
+++ b/themes/weex/layout/_partial/article.ejs
@@ -6,7 +6,7 @@
     <%- page_anchor(post.content) %>
     <div class="article-tips">
       <p class="tips-text">
-        <a class="xx" href="https://github.com/apache/incubator-weex-site/tree/master/source<%- url_for(page.source)%>">Edit this page on GitHub.</a>
+        <a target="_blank" href="https://github.com/apache/incubator-weex-site/tree/master/source<%- url_for(page.source)%>">Edit this page on GitHub</a>
       </p>
     </div>
   </div>