Skip to content
This repository has been archived by the owner on Jun 7, 2021. It is now read-only.

Commit

Permalink
Fix a lot of 404 local path
Browse files Browse the repository at this point in the history
  • Loading branch information
imyzf committed Mar 22, 2018
1 parent 8fcc513 commit 06f9ee6
Show file tree
Hide file tree
Showing 51 changed files with 136 additions and 132 deletions.
4 changes: 2 additions & 2 deletions source/cn/guide/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Weex 的另一个主要目标是跟进当代先进的 Web 开发和原生开发

![Weex Example](../../guide/images/weex-example-yo.png)

这个例子在屏幕正中间渲染了一个单词 “Yo”。 如果你想在移动设备上预览渲染结果,你只需要安装[Weex playground app](https://weex.apache.org/cn/tools/playground.html) 或将 Weex SDK 集成到您自己的应用程序中,然后使用扫描网页右侧的二维码。
这个例子在屏幕正中间渲染了一个单词 “Yo”。 如果你想在移动设备上预览渲染结果,你只需要安装[Weex playground app](https://weex-project.io/playground.html) 或将 Weex SDK 集成到您自己的应用程序中,然后使用扫描网页右侧的二维码。

在源代码的 `<template>` 中,`<div>` 你应该很熟悉了,它在 Weex 平台上也是一个通用容器。但是 `<text>` 组件是由 Weex 特有的,它是一个块级的文本容器,可以用来渲染文字。

Expand Down Expand Up @@ -83,7 +83,7 @@ Weex 可以只编写一份代码,开发出三端都可用的页面。

> Vue.js 和 Rax 都已经集成进了 Weex SDK,你不需要再额外引入。
然而 Weex 也不是只支持 Vue 和 Rax,你也可以把自己喜欢的前端框架集成到 Weex 中。有一个文档*[扩展前端框架](./advanced/extend-js-framework.html)*描述了如何实现,但是这个过程仍然非常复杂和棘手,你需要了解关于 js-native 之间通信和原生渲染引擎的许多底层细节。
然而 Weex 也不是只支持 Vue 和 Rax,你也可以把自己喜欢的前端框架集成到 Weex 中。有一个文档*[扩展前端框架](/cn/guide/extend-js-framework.html)*描述了如何实现,但是这个过程仍然非常复杂和棘手,你需要了解关于 js-native 之间通信和原生渲染引擎的许多底层细节。

## 创建一个 App

Expand Down
2 changes: 1 addition & 1 deletion source/cn/guide/use-vue.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ Vue 中的[单文件组件](https://cn.vuejs.org/v2/guide/single-file-components

### 使用weex-loader

[weex-loader](https://github.com/weexteam/weex-loader) 是一个 webpack 的 [loader](https://webpack.js.org/concepts/loaders/#using-loaders),它能把`*.vue`文件转化为简单的javascript 模块用于安卓以及 iOS 平台。所有的特性和配置都是跟 [vue-loader](https://vue-loader.vuejs.org/en/) 一样的。
[weex-loader](https://github.com/weexteam/weex-loader) 是一个 webpack 的 [loader](http://webpack.github.io/docs/using-loaders.html),它能把`*.vue`文件转化为简单的javascript 模块用于安卓以及 iOS 平台。所有的特性和配置都是跟 [vue-loader](https://vue-loader.vuejs.org/en/) 一样的。

需要注意的是,如果您的Webpack配置的*entry*选项是一个`*.vue`文件的话,你仍需要传递一个额外的`entry`参数。

Expand Down
4 changes: 2 additions & 2 deletions source/cn/references/components/cell.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ version: 2.1
- `opacity`
- `background-color`

查看 [组件通用样式](../common-style.html)
查看 [组件通用样式](/cn/wiki/common-styles.html)

## 事件

Expand All @@ -44,7 +44,7 @@ version: 2.1
- `appear`
- `disappear`

查看 [通用事件](../common-event.html)
查看 [通用事件](/cn/wiki/common-events.html)

## 示例

Expand Down
4 changes: 2 additions & 2 deletions source/cn/references/components/div.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ version: 2.1
- `opacity`
- `background-color`

查看 [组件通用样式](../common-style.html)
查看 [组件通用样式](/cn/wiki/common-styles.html)

## 事件

Expand All @@ -62,7 +62,7 @@ version: 2.1
- `appear`
- `disappear`

查看 [通用事件](../common-event.html)
查看 [通用事件](/cn/wiki/common-events.html)

## 约束

Expand Down
4 changes: 2 additions & 2 deletions source/cn/references/components/indicator.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ version: 2.1
- `opacity`
- `background-color`

查看 [组件通用样式](../common-style.html)
查看 [组件通用样式](/cn/wiki/common-styles.html)

**注意 1:**

Expand All @@ -51,7 +51,7 @@ version: 2.1
- `appear`
- `disappear`

查看 [通用事件](../common-event.html)
查看 [通用事件](/cn/wiki/common-events.html)

## 约束

Expand Down
6 changes: 3 additions & 3 deletions source/cn/references/components/input.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Weex 内置的 `<input>` 组件用来创建接收用户输入字符的输入组
- 支持 `font-weight`
- 支持 `text-align`

查看 [文本样式](../text-style.html)
查看 [文本样式](/cn/wiki/text-styles.html)

- 通用样式:支持所有通用样式
- 盒模型
Expand All @@ -61,7 +61,7 @@ Weex 内置的 `<input>` 组件用来创建接收用户输入字符的输入组
- `opacity`
- `background-color`

查看 [组件通用样式](../common-style.html)
查看 [组件通用样式](/cn/wiki/common-styles.html)

## 事件

Expand Down Expand Up @@ -109,7 +109,7 @@ Weex 内置的 `<input>` 组件用来创建接收用户输入字符的输入组
- `appear`
- `disappear`

查看 [通用事件](../common-event.html)
查看 [通用事件](/cn/wiki/common-events.html)



Expand Down
4 changes: 2 additions & 2 deletions source/cn/references/components/list.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ version: 2.1
- `opacity`
- `background-color`

查看 [组件通用样式](../common-style.html)
查看 [组件通用样式](/cn/wiki/common-styles.html)

## 事件

Expand All @@ -85,7 +85,7 @@ version: 2.1
- `appear`
- `disappear`

查看 [通用事件](../common-event.html)
查看 [通用事件](/cn/wiki/common-events.html)

## 扩展

Expand Down
2 changes: 1 addition & 1 deletion source/cn/references/components/loading.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ version: 2.1

## 样式

- 支持所有通用样式。查看 [组件通用样式](../common-style.html)
- 支持所有通用样式。查看 [组件通用样式](/cn/wiki/common-styles.html)

## 事件

Expand Down
2 changes: 1 addition & 1 deletion source/cn/references/components/refresh.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ version: 2.1

## 样式

- 支持所有通用样式。查看 [组件通用样式](../common-style.html)
- 支持所有通用样式。查看 [组件通用样式](/cn/wiki/common-styles.html)

## 事件

Expand Down
4 changes: 2 additions & 2 deletions source/cn/references/components/scroller.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ version: 2.1
- `opacity`
- `background-color`

查看 [组件通用样式](../common-style.html)
查看 [组件通用样式](/cn/wiki/common-styles.html)

## 事件

Expand All @@ -84,7 +84,7 @@ version: 2.1
- `appear`
- `disappear`

查看 [通用事件](../common-event.html)
查看 [通用事件](/cn/wiki/common-events.html)

## 扩展

Expand Down
4 changes: 2 additions & 2 deletions source/cn/references/components/slider.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ version: 2.1
- `opacity`
- `background-color`

查看 [组件通用样式](../common-style.html)
查看 [组件通用样式](/cn/wiki/common-styles.html)

## 事件

Expand All @@ -62,7 +62,7 @@ version: 2.1
- `appear`
- `disappear`

查看 [通用事件](../common-event.html)
查看 [通用事件](/cn/wiki/common-events.html)

## 示例

Expand Down
4 changes: 2 additions & 2 deletions source/cn/references/components/switch.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ version: 2.1
- `appear`
- `disappear`

查看 [通用事件](../common-event.html)
查看 [通用事件](/cn/wiki/common-events.html)

## 样式

Expand All @@ -89,7 +89,7 @@ version: 2.1
- `opacity`
- `background-color`

查看 [组件通用样式](../common-style.html)
查看 [组件通用样式](/cn/wiki/common-styles.html)


## 使用说明
Expand Down
2 changes: 1 addition & 1 deletion source/cn/references/components/text.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ version: 2.1
## 样式
* 支持 **[通用样式](../../wiki/common-styles.html)**
* `lines {number}`: 指定文本行数。默认值是 `0`, 代表不限制行数。
* 支持 **[文本样式](../wiki/text-style.html)**
* 支持 **[文本样式](/cn/wiki/text-styles.html)**
* 支持 `color` 样式.
* 支持 `font-size` 样式,默认值为`32`.
* 支持 `font-style` 样式.
Expand Down
6 changes: 3 additions & 3 deletions source/cn/references/components/textarea.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ version: 2.1
- 支持 `font-weight`
- 支持 `text-align`

查看 [文本样式](../text-style.html)
查看 [文本样式](/cn/wiki/text-styles.html)

- 通用样式:支持所有通用样式

Expand All @@ -48,7 +48,7 @@ version: 2.1
- `opacity`
- `background-color`

查看 [组件通用样式](../common-style.html)
查看 [组件通用样式](/cn/wiki/common-styles.html)

## 事件

Expand Down Expand Up @@ -90,7 +90,7 @@ version: 2.1
- `appear`
- `disappear`

查看 [通用事件](../common-event.html)
查看 [通用事件](/cn/wiki/common-events.html)

## 示例

Expand Down
2 changes: 1 addition & 1 deletion source/cn/references/components/video.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ version: 2.1
- `opacity`
- `background-color`

查看 [组件通用样式](../common-style.html)
查看 [组件通用样式](/cn/wiki/common-styles.html)

## 事件

Expand Down
4 changes: 2 additions & 2 deletions source/cn/references/components/waterfall.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ version: 2.1
- `opacity`
- `background-color`

查看 [组件通用样式](../common-style.html)
查看 [组件通用样式](/cn/wiki/common-styles.html)

### 事件

Expand All @@ -54,7 +54,7 @@ version: 2.1
- `appear`
- `disappear`

查看 [通用事件](../common-event.html)
查看 [通用事件](/cn/wiki/common-events.html)

### API

Expand Down
1 change: 1 addition & 0 deletions source/cn/references/modules/storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,3 +182,4 @@ version: 2.1
## 其它参考

* [W3school: html5 localStorage](http://www.w3school.com.cn/html5/html_5_webstorage.asp)
* [storage 模块完整的 Demo](https://github.com/apache/incubator-weex/blob/dev/examples/module/storage-demo.we)
6 changes: 3 additions & 3 deletions source/cn/releasenote.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ layout: post
The former front-end framework (commonly known as `.we`), which is inspired by Vue 1.0, is deprecated. Although it still works well in this release, we suggest to migrate it to Vue 2.0.
- SDK
- New CSS support
- [text `font-weight`](https://weex.apache.org/wiki/text-styles.html)
- [text `font-weight`](https://weex-project.io/references/text-style.html)
`font-weight` can set to [`normal`|`bold`] or 100-900.
- gradient
like CSS3, now you can use gradient in Weex. For example:
Expand All @@ -183,7 +183,7 @@ layout: post
background-image: linear-gradient(to right, blue, white);
```
![img_1695](https://cloud.githubusercontent.com/assets/115201/23015955/ba075876-f46f-11e6-9d88-2ca3096551b9.jpeg)
[Read more about gradient](https://weex.apache.org/wiki/common-styles.html#linear-gradient-v0-10).
[Read more about gradient](https://weex-project.io/references/common-style.html).
- Pseudo class
Currently, Weex supports 4 pseudo classes:`active`, `focus`, `disabled`, `enabled`.
- New BroadcastChannel API
Expand Down Expand Up @@ -225,7 +225,7 @@ layout: post
- Has full set of commands for developers to setup android/ios application with his .we/.vue files.
- Developers could easily pack/install his application with simple command.
- Has full set of commands for developers to manage weex plugins, including create plugin template, add plugin to his project etc.
- [Plugin market](https://market.dotwe.org) was formally used for developers to publish/download weex plugins.
- [Plugin market](http://market.weex-project.io) was formally used for developers to publish/download weex plugins.


## v0.9.4
Expand Down
4 changes: 2 additions & 2 deletions source/cn/tools/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ version: 2.1

# 开发工具

+ [Playground App](./playground.html)
+ [Playground App](/tools/playground.html)
+ [Online Playground](http://dotwe.org/vue/)
+ [weex-toolkit](./toolkit.html)
+ [Weex Language Support插件](./plugin.html)
+ [Weex Language Support插件](/cn/tools/helpers.html)
7 changes: 4 additions & 3 deletions source/cn/tools/toolkit.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ weex-toolkit工具支持对你的Weex文件(`.we`或`.vue`)在监听模式下
$ weex preview src/foo.vue
```

浏览器会自动得打开预览页面并且你可以看到你的weex页面的布局和效果。如果你在你的设备上安装了[Playground](https://weex.apache.org/cn/tools/playground.html),你还可以通过扫描页面上的二维码来查看页面。
浏览器会自动得打开预览页面并且你可以看到你的weex页面的布局和效果。如果你在你的设备上安装了[Playground](https://weex.apache.org/cn/playground.html),你还可以通过扫描页面上的二维码来查看页面。

使用下面的命令,你将可以预览整个文件夹中的`.vue`文件

Expand Down Expand Up @@ -198,6 +198,7 @@ ElementMode可以切换Element标签中Domtree显示模式,下图为vdom显示

#### 集成devtool工具
* Android
* 查看文档 [Weex devtools (Android)](../../references/advanced/integrate-devtool-to-android.html), 它会引导你一步一步配置和使用它。
* 查看文档 [Weex devtools (Android)](/cn/guide/integrate-devtool-to-android.html), 它会引导你一步一步配置和使用它。
* iOS
* 查看文档 [Weex devtools (iOS)](../../references/advanced/integrate-devtool-to-ios.html), 它会引导你一步一步配置和使用它。
* 查看文档 [Weex devtools (iOS)](/cn/guide/integrate-devtool-to-ios.html), 它会引导你一步一步配置和使用它。
和使用它。
2 changes: 1 addition & 1 deletion source/cn/wiki/css-units.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ version: 2.1

## CSS `number` 单位

仅仅一个数字。用于 [`opacity`](./common-style.html)[`lines`](./text-style.html)等。
仅仅一个数字。用于 [`opacity`](./common-styles.html)[`lines`](./text-styles.html)等。

有时值必须是整数,例如:`lines`

Expand Down
6 changes: 3 additions & 3 deletions source/cn/wiki/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ version: 2.1

## Windows 指令错误

请先安装 [Git for Windows](https://git-scm.com/download/win),在 [For Windows](https://github.com/apache/incubator-weex/tree/master#for-windows) 中查看更多信息。
请先安装 [Git for Windows](https://git-scm.com/download/win),在 [For Windows](https://github.com/apache/incubator-weex/tree/dev#for-windows) 中查看更多信息。


## Android Studio 中 Gradle 错误
Expand Down Expand Up @@ -137,8 +137,8 @@ else {

如果你有两个页面,A 页面和 B 页面

1. A -> B,使用 [getConfig api](/references/api.md#getconfig) or [storage module](/modules/storage.md) 传递数据;
2. B -> A,使用 [storage module](/modules/storage.md) 传递数据。
1. A -> B,使用 [getConfig api](/references/api.md#getconfig) or [storage module](/cn/references/modules/storage.html) 传递数据;
2. B -> A,使用 [storage module](/cn/references/modules/storage.html) 传递数据。


## 父子组件之间进行 repeat 操作
Expand Down
10 changes: 5 additions & 5 deletions source/cn/wiki/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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](/cn/guide/images/flow.png)

## 本地开发环境

Expand All @@ -25,8 +25,8 @@ Weex 的本地开发环境基于 web 开发体验而设计,web 开发者可以

**相关阅读**

* [Weex 和 web 平台的差异](../../references/platform-difference.html)
* [Vue 2.x 在 Weex 和 web 中的差异](../../references/vue/difference-with-web.html)
* [Weex 和 web 平台的差异](/cn/wiki/platform-difference.html)
* [Vue 2.x 在 Weex 和 web 中的差异](/cn/wiki/platform-difference.html)
* [快速上手](../index.html)
* [使用 Devtools](./devtools.html)

Expand All @@ -49,8 +49,8 @@ Weex 目前提供了 iOS 和 Android 两个客户端的 native 渲染层。每
* [Weex 的组件和模块跟 web 标准的区别](../../references/web-standards.html)
* [如何使用 iOS](../../references/ios-apis.html)
* [如何使用 Android](../../references/android-apis.html)
* [如何扩展 iOS](../../references/advanced/extend-to-ios.html)
* [如何扩展 Android](../../references/advanced/extend-to-android.html)
* [如何扩展 iOS](/cn/guide/extend-ios.html)
* [如何扩展 Android](/cn/guide/extend-android.html)

## 浏览器渲染

Expand Down
Loading

0 comments on commit 06f9ee6

Please sign in to comment.