- [doc] remove documents from incubator-weex
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/8162f8c2 Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/8162f8c2 Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/8162f8c2 Branch: refs/heads/master Commit: 8162f8c23360885bcde6cd6e646472d76d6f9360 Parents: 1c5f158 Author: Hanks <zhanghan...@gmail.com> Authored: Wed Jan 17 21:03:47 2018 +0800 Committer: Hanks <zhanghan...@gmail.com> Committed: Thu Jan 18 11:24:15 2018 +0800 ---------------------------------------------------------------------- .gitignore | 7 - dangerfile-android.js | 3 - dangerfile-ios.js | 3 - dangerfile-jsfm.js | 7 +- dangerfile.js | 11 - doc/_config.yml | 339 ------- doc/_config_cn.yml | 337 ------- doc/advanced/extend-to-android.md | 175 ---- doc/package.json | 28 - doc/scaffolds/draft.md | 4 - doc/scaffolds/page.md | 4 - doc/scaffolds/post.md | 5 - doc/source/_posts/arkit.md | 112 --- doc/source/_posts/coreml.md | 79 -- doc/source/blog/index.md | 4 - doc/source/cn/download.ejs | 3 - doc/source/cn/faq.md | 223 ----- doc/source/cn/guide/.gitkeep | 0 doc/source/cn/guide/contributing.md | 107 --- doc/source/cn/guide/images/flow.png | Bin 57741 -> 0 bytes doc/source/cn/guide/images/tut-cli-qrcode.png | Bin 45480 -> 0 bytes doc/source/cn/guide/images/tut-first.png | Bin 51434 -> 0 bytes doc/source/cn/guide/images/tut-second.png | Bin 78519 -> 0 bytes doc/source/cn/guide/images/tut1.jpg | Bin 47442 -> 0 bytes doc/source/cn/guide/images/tut2.jpg | Bin 52428 -> 0 bytes doc/source/cn/guide/images/tut3.png | Bin 52198 -> 0 bytes doc/source/cn/guide/images/tut4.gif | Bin 218245 -> 0 bytes doc/source/cn/guide/index.md | 59 -- doc/source/cn/guide/integrate-to-your-app.md | 323 ------- doc/source/cn/guide/intro/app-architecture.md | 61 -- doc/source/cn/guide/intro/how-it-works.md | 62 -- doc/source/cn/guide/intro/index.md | 15 - doc/source/cn/guide/intro/page-architecture.md | 48 - doc/source/cn/guide/intro/using-vue.md | 62 -- doc/source/cn/guide/intro/web-dev-experience.md | 38 - doc/source/cn/guide/intro/write-once.md | 25 - doc/source/cn/guide/set-up-env.md | 132 --- doc/source/cn/guide/tools/index.md | 11 - doc/source/cn/guide/tools/plugin.md | 77 -- doc/source/cn/guide/tools/toolkit.md | 231 ----- doc/source/cn/index.md | 4 - doc/source/cn/playground.ejs | 3 - .../cn/references/advanced/extend-jsfm.md | 172 ---- .../cn/references/advanced/extend-to-android.md | 218 ----- .../cn/references/advanced/extend-to-html5.md | 103 --- .../cn/references/advanced/extend-to-ios.md | 325 ------- doc/source/cn/references/advanced/index.md | 15 - .../advanced/integrate-devtool-to-android.md | 353 ------- .../advanced/integrate-devtool-to-ios.md | 229 ----- doc/source/cn/references/android-apis.md | 221 ----- doc/source/cn/references/bubble.md | 146 --- doc/source/cn/references/color-names.md | 180 ---- doc/source/cn/references/common-event.md | 138 --- doc/source/cn/references/common-style.md | 627 ------------- doc/source/cn/references/components/a.md | 85 -- doc/source/cn/references/components/cell.md | 108 --- doc/source/cn/references/components/div.md | 116 --- doc/source/cn/references/components/image.md | 185 ---- doc/source/cn/references/components/index.md | 24 - .../cn/references/components/indicator.md | 136 --- doc/source/cn/references/components/input.md | 344 ------- doc/source/cn/references/components/list.md | 172 ---- doc/source/cn/references/components/loading.md | 127 --- doc/source/cn/references/components/refresh.md | 132 --- doc/source/cn/references/components/scroller.md | 199 ---- doc/source/cn/references/components/slider.md | 112 --- doc/source/cn/references/components/switch.md | 133 --- doc/source/cn/references/components/text.md | 136 --- doc/source/cn/references/components/textarea.md | 162 ---- doc/source/cn/references/components/video.md | 94 -- .../cn/references/components/waterfall.md | 64 -- doc/source/cn/references/components/web.md | 155 ---- doc/source/cn/references/downgrade.md | 11 - doc/source/cn/references/gesture.md | 60 -- doc/source/cn/references/html5-apis.md | 10 - doc/source/cn/references/images/Artboard.jpg | Bin 36223 -> 0 bytes .../cn/references/images/coding_weex_1.jpg | Bin 56225 -> 0 bytes .../cn/references/images/css-boxmodel.png | Bin 12581 -> 0 bytes .../cn/references/images/css-flexbox-align.jpg | Bin 35005 -> 0 bytes .../references/images/css-flexbox-justify.svg | 59 -- .../cn/references/images/css-flexbox-sample.png | Bin 3210 -> 0 bytes doc/source/cn/references/images/div_1.jpg | Bin 59561 -> 0 bytes doc/source/cn/references/images/div_2.jpg | Bin 62574 -> 0 bytes doc/source/cn/references/images/div_3.jpg | Bin 82345 -> 0 bytes doc/source/cn/references/images/div_4.jpg | Bin 200642 -> 0 bytes doc/source/cn/references/images/image_1.jpg | Bin 163705 -> 0 bytes doc/source/cn/references/images/image_2.jpg | Bin 255560 -> 0 bytes doc/source/cn/references/images/list_2.jpg | Bin 56635 -> 0 bytes doc/source/cn/references/images/list_3.jpg | Bin 128082 -> 0 bytes doc/source/cn/references/images/list_4.jpg | Bin 339799 -> 0 bytes doc/source/cn/references/images/nav.jpg | Bin 124441 -> 0 bytes doc/source/cn/references/images/nav.png | Bin 83497 -> 0 bytes doc/source/cn/references/images/scroller_1.jpg | Bin 344783 -> 0 bytes doc/source/cn/references/images/style_1.jpg | Bin 59366 -> 0 bytes doc/source/cn/references/images/style_2.jpg | Bin 59696 -> 0 bytes doc/source/cn/references/index.md | 19 - doc/source/cn/references/ios-apis.md | 91 -- doc/source/cn/references/js-service/index.md | 118 --- doc/source/cn/references/jsfm-apis.md | 66 -- .../cn/references/migration/difference.md | 249 ----- doc/source/cn/references/migration/index.md | 11 - .../references/migration/migration-from-weex.md | 116 --- doc/source/cn/references/modules/animation.md | 100 -- doc/source/cn/references/modules/clipboard.md | 101 -- doc/source/cn/references/modules/dom.md | 281 ------ doc/source/cn/references/modules/globalevent.md | 88 -- doc/source/cn/references/modules/index.md | 21 - doc/source/cn/references/modules/meta.md | 96 -- doc/source/cn/references/modules/modal.md | 141 --- doc/source/cn/references/modules/navigator.md | 90 -- doc/source/cn/references/modules/picker.md | 129 --- doc/source/cn/references/modules/storage.md | 184 ---- doc/source/cn/references/modules/stream.md | 124 --- doc/source/cn/references/modules/timer.md | 47 - doc/source/cn/references/modules/websocket.md | 219 ----- doc/source/cn/references/modules/webview.md | 138 --- doc/source/cn/references/native-dom-api.md | 223 ----- doc/source/cn/references/path.md | 43 - doc/source/cn/references/platform-difference.md | 70 -- doc/source/cn/references/text-style.md | 46 - doc/source/cn/references/unit.md | 64 -- .../cn/references/vue/difference-of-vuex.md | 87 -- .../cn/references/vue/difference-with-web.md | 137 --- doc/source/cn/references/vue/index.md | 12 - doc/source/cn/references/web-standards.md | 584 ------------ doc/source/cn/references/weex-variable.md | 96 -- doc/source/cn/releasenote.md | 353 ------- .../cn/v-0.10/advanced/create-a-weex-project.md | 271 ------ .../advanced/customize-a-native-component.md | 168 ---- .../cn/v-0.10/advanced/cuszomize-native-apis.md | 85 -- .../cn/v-0.10/advanced/extend-to-android.md | 170 ---- .../cn/v-0.10/advanced/extend-to-html5.md | 253 ----- doc/source/cn/v-0.10/advanced/extend-to-ios.md | 279 ------ .../v-0.10/advanced/how-data-binding-works.md | 39 - .../cn/v-0.10/advanced/images/how-arch.png | Bin 62303 -> 0 bytes .../cn/v-0.10/advanced/images/how-render.png | Bin 42957 -> 0 bytes doc/source/cn/v-0.10/advanced/index.md | 146 --- .../advanced/integrate-devtools-to-android.md | 272 ------ .../advanced/integrate-devtools-to-ios.md | 230 ----- .../cn/v-0.10/advanced/integrate-to-android.md | 201 ---- .../cn/v-0.10/advanced/integrate-to-html5.md | 69 -- .../cn/v-0.10/advanced/integrate-to-ios.md | 110 --- doc/source/cn/v-0.10/blog/index.md | 4 - .../guide/develop-on-your-local-machine.md | 175 ---- .../cn/v-0.10/guide/how-to/debug-with-html5.md | 47 - doc/source/cn/v-0.10/guide/how-to/index.md | 185 ---- .../guide/how-to/require-3rd-party-libs.md | 57 -- .../how-to/transform-code-into-js-bundle.md | 112 --- doc/source/cn/v-0.10/guide/index.md | 60 -- doc/source/cn/v-0.10/guide/syntax/comm.md | 134 --- .../v-0.10/guide/syntax/composed-component.md | 158 ---- .../cn/v-0.10/guide/syntax/config-n-data.md | 72 -- .../cn/v-0.10/guide/syntax/data-binding.md | 332 ------- .../cn/v-0.10/guide/syntax/display-logic.md | 252 ----- doc/source/cn/v-0.10/guide/syntax/events.md | 103 --- doc/source/cn/v-0.10/guide/syntax/id.md | 124 --- doc/source/cn/v-0.10/guide/syntax/index.md | 134 --- .../cn/v-0.10/guide/syntax/render-logic.md | 44 - .../cn/v-0.10/guide/syntax/style-n-class.md | 117 --- doc/source/cn/v-0.10/index.md | 5 - doc/source/cn/v-0.10/references/api.md | 67 -- doc/source/cn/v-0.10/references/bubble.md | 150 --- doc/source/cn/v-0.10/references/cheatsheet.md | 114 --- doc/source/cn/v-0.10/references/color-names.md | 180 ---- doc/source/cn/v-0.10/references/common-attrs.md | 166 ---- doc/source/cn/v-0.10/references/common-event.md | 492 ---------- doc/source/cn/v-0.10/references/common-style.md | 322 ------- .../cn/v-0.10/references/component-defs.md | 126 --- doc/source/cn/v-0.10/references/components/a.md | 273 ------ .../cn/v-0.10/references/components/cell.md | 191 ---- .../cn/v-0.10/references/components/div.md | 245 ----- .../cn/v-0.10/references/components/image.md | 161 ---- .../cn/v-0.10/references/components/index.md | 24 - .../v-0.10/references/components/indicator.md | 124 --- .../cn/v-0.10/references/components/input.md | 309 ------- .../cn/v-0.10/references/components/list.md | 375 -------- .../cn/v-0.10/references/components/loading.md | 118 --- .../cn/v-0.10/references/components/refresh.md | 204 ---- .../cn/v-0.10/references/components/scroller.md | 324 ------- .../cn/v-0.10/references/components/slider.md | 121 --- .../cn/v-0.10/references/components/switch.md | 98 -- .../cn/v-0.10/references/components/text.md | 116 --- .../cn/v-0.10/references/components/textarea.md | 115 --- .../cn/v-0.10/references/components/video.md | 82 -- .../cn/v-0.10/references/components/web.md | 143 --- doc/source/cn/v-0.10/references/gesture.md | 79 -- .../cn/v-0.10/references/images/Artboard.jpg | Bin 36223 -> 0 bytes .../v-0.10/references/images/coding_weex_1.jpg | Bin 56225 -> 0 bytes .../v-0.10/references/images/css-boxmodel.png | Bin 12581 -> 0 bytes .../references/images/css-flexbox-align.jpg | Bin 35005 -> 0 bytes .../references/images/css-flexbox-justify.svg | 59 -- .../cn/v-0.10/references/images/div_1.jpg | Bin 59561 -> 0 bytes .../cn/v-0.10/references/images/div_2.jpg | Bin 62574 -> 0 bytes .../cn/v-0.10/references/images/div_3.jpg | Bin 82345 -> 0 bytes .../cn/v-0.10/references/images/div_4.jpg | Bin 200642 -> 0 bytes .../cn/v-0.10/references/images/image_1.jpg | Bin 163705 -> 0 bytes .../cn/v-0.10/references/images/image_2.jpg | Bin 255560 -> 0 bytes .../cn/v-0.10/references/images/list_2.jpg | Bin 56635 -> 0 bytes .../cn/v-0.10/references/images/list_3.jpg | Bin 128082 -> 0 bytes .../cn/v-0.10/references/images/list_4.jpg | Bin 339799 -> 0 bytes doc/source/cn/v-0.10/references/images/nav.jpg | Bin 124441 -> 0 bytes .../cn/v-0.10/references/images/scroller_1.jpg | Bin 344783 -> 0 bytes .../cn/v-0.10/references/images/style_1.jpg | Bin 59366 -> 0 bytes .../cn/v-0.10/references/images/style_2.jpg | Bin 59696 -> 0 bytes doc/source/cn/v-0.10/references/index.md | 46 - .../cn/v-0.10/references/modules/animation.md | 90 -- .../cn/v-0.10/references/modules/clipboard.md | 112 --- doc/source/cn/v-0.10/references/modules/dom.md | 79 -- .../cn/v-0.10/references/modules/globalevent.md | 87 -- .../cn/v-0.10/references/modules/index.md | 20 - .../cn/v-0.10/references/modules/modal.md | 196 ---- .../cn/v-0.10/references/modules/navigator.md | 110 --- .../cn/v-0.10/references/modules/storage.md | 224 ----- .../cn/v-0.10/references/modules/stream.md | 220 ----- .../cn/v-0.10/references/modules/webview.md | 66 -- doc/source/cn/v-0.10/references/replace.md | 57 -- .../cn/v-0.10/references/special-element.md | 38 - doc/source/cn/v-0.10/references/specs/index.md | 309 ------- .../references/specs/js-framework-apis.md | 190 ---- .../v-0.10/references/specs/virtual-dom-apis.md | 148 --- doc/source/cn/v-0.10/references/text-style.md | 40 - doc/source/cn/v-0.10/references/units.md | 66 -- doc/source/cn/v-0.10/references/wxc/index.md | 44 - .../cn/v-0.10/references/wxc/wxc-navpage.md | 192 ---- .../cn/v-0.10/references/wxc/wxc-tabbar.md | 176 ---- doc/source/cn/v-0.10/tools/devtools-android.md | 123 --- doc/source/cn/v-0.10/tools/devtools-ios.md | 65 -- doc/source/cn/v-0.10/tools/devtools.md | 99 -- doc/source/cn/v-0.10/tools/index.md | 96 -- doc/source/cn/v-0.10/tools/playground.md | 22 - doc/source/cn/v-0.10/tools/transformer.md | 38 - doc/source/download.ejs | 3 - doc/source/examples/a.md | 39 - doc/source/examples/animation.md | 47 - doc/source/examples/clipboard.md | 64 -- doc/source/examples/div.md | 27 - doc/source/examples/dom-rect.md | 118 --- doc/source/examples/dom-scroll.md | 93 -- doc/source/examples/image.md | 58 -- doc/source/examples/indicator.md | 80 -- doc/source/examples/input.md | 68 -- doc/source/examples/list.md | 64 -- doc/source/examples/modal.md | 81 -- doc/source/examples/navigator.md | 54 -- doc/source/examples/refresh.md | 74 -- doc/source/examples/scroller.md | 92 -- doc/source/examples/slider.md | 53 -- doc/source/examples/storage.md | 103 --- doc/source/examples/stream.md | 74 -- doc/source/examples/switch.md | 69 -- doc/source/examples/text.md | 44 - doc/source/examples/textarea.md | 68 -- doc/source/examples/video.md | 55 -- doc/source/examples/web.md | 97 -- doc/source/faq.md | 207 ----- doc/source/guide/.gitkeep | 0 doc/source/guide/contributing.md | 106 --- doc/source/guide/images/flow.png | Bin 57741 -> 0 bytes doc/source/guide/images/tut-cli-qrcode.png | Bin 45480 -> 0 bytes doc/source/guide/images/tut-first.png | Bin 51434 -> 0 bytes doc/source/guide/images/tut-second.png | Bin 78519 -> 0 bytes doc/source/guide/images/tut1.jpg | Bin 47442 -> 0 bytes doc/source/guide/images/tut2.jpg | Bin 52428 -> 0 bytes doc/source/guide/images/tut3.png | Bin 52198 -> 0 bytes doc/source/guide/images/tut4.gif | Bin 218245 -> 0 bytes doc/source/guide/index.md | 66 -- doc/source/guide/integrate-to-your-app.md | 281 ------ doc/source/guide/intro/app-architecture.md | 61 -- doc/source/guide/intro/how-it-works.md | 72 -- doc/source/guide/intro/index.md | 17 - doc/source/guide/intro/page-architecture.md | 48 - doc/source/guide/intro/using-vue.md | 58 -- doc/source/guide/intro/web-dev-experience.md | 36 - doc/source/guide/intro/write-once.md | 23 - doc/source/guide/set-up-env.md | 99 -- doc/source/guide/tools/index.md | 11 - doc/source/guide/tools/plugin.md | 68 -- doc/source/guide/tools/toolkit.md | 197 ---- doc/source/index.md | 4 - doc/source/playground.ejs | 3 - doc/source/references/advanced/extend-jsfm.md | 167 ---- .../references/advanced/extend-to-android.md | 219 ----- .../references/advanced/extend-to-html5.md | 96 -- doc/source/references/advanced/extend-to-ios.md | 341 ------- doc/source/references/advanced/index.md | 15 - .../advanced/integrate-devtool-to-android.md | 146 --- .../advanced/integrate-devtool-to-ios.md | 192 ---- doc/source/references/android-apis.md | 219 ----- doc/source/references/bubble.md | 146 --- doc/source/references/color-names.md | 182 ---- doc/source/references/common-event.md | 129 --- doc/source/references/common-style.md | 522 ----------- doc/source/references/components/a.md | 71 -- doc/source/references/components/cell.md | 44 - doc/source/references/components/div.md | 64 -- doc/source/references/components/image.md | 126 --- doc/source/references/components/index.md | 24 - doc/source/references/components/indicator.md | 121 --- doc/source/references/components/input.md | 322 ------- doc/source/references/components/list.md | 175 ---- doc/source/references/components/refresh.md | 221 ----- doc/source/references/components/scroller.md | 163 ---- doc/source/references/components/slider.md | 93 -- doc/source/references/components/switch.md | 115 --- doc/source/references/components/text.md | 131 --- doc/source/references/components/textarea.md | 140 --- doc/source/references/components/video.md | 87 -- doc/source/references/components/waterfall.md | 55 -- doc/source/references/components/web.md | 148 --- doc/source/references/downgrade.md | 11 - doc/source/references/gesture.md | 56 -- doc/source/references/html5-apis.md | 10 - doc/source/references/images/css-boxmodel.png | Bin 12581 -> 0 bytes .../references/images/css-flexbox-align.jpg | Bin 35005 -> 0 bytes .../references/images/css-flexbox-justify.svg | 59 -- .../references/images/css-flexbox-sample.png | Bin 3210 -> 0 bytes doc/source/references/images/nav.png | Bin 83497 -> 0 bytes doc/source/references/index.md | 19 - doc/source/references/ios-apis.md | 76 -- doc/source/references/js-service/index.md | 114 --- doc/source/references/jsfm-apis.md | 66 -- doc/source/references/migration/difference.md | 10 - doc/source/references/migration/index.md | 11 - .../references/migration/migration-from-weex.md | 10 - doc/source/references/modules/animation.md | 107 --- doc/source/references/modules/clipboard.md | 98 -- doc/source/references/modules/dom.md | 276 ------ doc/source/references/modules/globalevent.md | 89 -- doc/source/references/modules/index.md | 20 - doc/source/references/modules/meta.md | 97 -- doc/source/references/modules/modal.md | 146 --- doc/source/references/modules/navigator.md | 89 -- doc/source/references/modules/picker.md | 129 --- doc/source/references/modules/storage.md | 172 ---- doc/source/references/modules/stream.md | 131 --- doc/source/references/modules/timer.md | 58 -- doc/source/references/modules/websocket.md | 218 ----- doc/source/references/modules/webview.md | 156 ---- doc/source/references/native-dom-api.md | 212 ----- doc/source/references/path.md | 37 - doc/source/references/platform-difference.md | 11 - doc/source/references/text-style.md | 50 - doc/source/references/unit.md | 11 - doc/source/references/vue/difference-of-vuex.md | 89 -- .../references/vue/difference-with-web.md | 149 --- doc/source/references/vue/index.md | 11 - doc/source/references/web-standards.md | 584 ------------ doc/source/references/weex-variable.md | 96 -- doc/source/releasenote.md | 354 ------- doc/source/v-0.10/advanced/extend-to-android.md | 189 ---- doc/source/v-0.10/advanced/extend-to-html5.md | 258 ------ doc/source/v-0.10/advanced/extend-to-ios.md | 311 ------- .../v-0.10/advanced/how-data-binding-works.md | 39 - doc/source/v-0.10/advanced/images/how-arch.png | Bin 62303 -> 0 bytes .../v-0.10/advanced/images/how-render.png | Bin 42957 -> 0 bytes doc/source/v-0.10/advanced/index.md | 148 --- .../v-0.10/advanced/integrate-to-android.md | 204 ---- .../v-0.10/advanced/integrate-to-html5.md | 77 -- doc/source/v-0.10/advanced/integrate-to-ios.md | 118 --- doc/source/v-0.10/guide/.gitkeep | 0 .../how-to/customize-a-native-component.md | 58 -- .../guide/how-to/cuszomize-native-apis.md | 80 -- .../v-0.10/guide/how-to/debug-with-html5.md | 47 - doc/source/v-0.10/guide/how-to/index.md | 40 - .../guide/how-to/preview-in-playground-app.md | 20 - .../guide/how-to/require-3rd-party-libs.md | 56 -- .../how-to/transform-code-into-js-bundle.md | 110 --- .../v-0.10/guide/images/tut-cli-qrcode.png | Bin 45480 -> 0 bytes doc/source/v-0.10/guide/images/tut-first.png | Bin 51434 -> 0 bytes doc/source/v-0.10/guide/images/tut-second.png | Bin 78519 -> 0 bytes doc/source/v-0.10/guide/images/tut1.jpg | Bin 47442 -> 0 bytes doc/source/v-0.10/guide/images/tut2.jpg | Bin 52428 -> 0 bytes doc/source/v-0.10/guide/images/tut3.png | Bin 52198 -> 0 bytes doc/source/v-0.10/guide/images/tut4.gif | Bin 218245 -> 0 bytes doc/source/v-0.10/guide/index.md | 211 ----- doc/source/v-0.10/guide/syntax/comm.md | 228 ----- .../v-0.10/guide/syntax/composed-component.md | 114 --- doc/source/v-0.10/guide/syntax/config-n-data.md | 61 -- doc/source/v-0.10/guide/syntax/data-binding.md | 248 ----- doc/source/v-0.10/guide/syntax/display-logic.md | 173 ---- doc/source/v-0.10/guide/syntax/events.md | 59 -- doc/source/v-0.10/guide/syntax/id.md | 65 -- doc/source/v-0.10/guide/syntax/index.md | 122 --- doc/source/v-0.10/guide/syntax/render-logic.md | 35 - doc/source/v-0.10/guide/syntax/style-n-class.md | 118 --- doc/source/v-0.10/references/api.md | 84 -- doc/source/v-0.10/references/bubble.md | 150 --- doc/source/v-0.10/references/cheatsheet.md | 102 -- doc/source/v-0.10/references/color-names.md | 182 ---- doc/source/v-0.10/references/common-attrs.md | 78 -- doc/source/v-0.10/references/common-event.md | 120 --- doc/source/v-0.10/references/common-style.md | 208 ----- doc/source/v-0.10/references/component-defs.md | 131 --- doc/source/v-0.10/references/components/a.md | 50 - doc/source/v-0.10/references/components/cell.md | 42 - doc/source/v-0.10/references/components/div.md | 48 - .../v-0.10/references/components/image.md | 55 -- .../v-0.10/references/components/index.md | 24 - .../v-0.10/references/components/indicator.md | 98 -- .../v-0.10/references/components/input.md | 124 --- doc/source/v-0.10/references/components/list.md | 292 ------ .../references/components/refresh-loading.md | 297 ------ .../v-0.10/references/components/scroller.md | 136 --- .../v-0.10/references/components/slider.md | 107 --- .../v-0.10/references/components/switch.md | 81 -- doc/source/v-0.10/references/components/text.md | 94 -- .../v-0.10/references/components/textarea.md | 81 -- .../v-0.10/references/components/video.md | 75 -- doc/source/v-0.10/references/components/web.md | 152 --- .../v-0.10/references/components/wxc-navpage.md | 74 -- .../v-0.10/references/components/wxc-tabbar.md | 94 -- doc/source/v-0.10/references/gesture.md | 74 -- .../v-0.10/references/images/css-boxmodel.png | Bin 12581 -> 0 bytes .../references/images/css-flexbox-align.jpg | Bin 35005 -> 0 bytes .../references/images/css-flexbox-justify.svg | 59 -- .../references/images/css-flexbox-sample.png | Bin 3210 -> 0 bytes doc/source/v-0.10/references/images/nav.png | Bin 83497 -> 0 bytes doc/source/v-0.10/references/index.md | 49 - .../v-0.10/references/modules/animation.md | 63 -- .../v-0.10/references/modules/clipboard.md | 53 -- doc/source/v-0.10/references/modules/dom.md | 114 --- .../v-0.10/references/modules/globalevent.md | 89 -- doc/source/v-0.10/references/modules/index.md | 28 - doc/source/v-0.10/references/modules/modal.md | 192 ---- .../v-0.10/references/modules/navigator.md | 198 ---- doc/source/v-0.10/references/modules/storage.md | 111 --- doc/source/v-0.10/references/modules/stream.md | 86 -- doc/source/v-0.10/references/modules/timer.md | 60 -- doc/source/v-0.10/references/modules/webview.md | 160 ---- doc/source/v-0.10/references/special-element.md | 36 - doc/source/v-0.10/references/specs/index.md | 309 ------- .../v-0.10/references/specs/js-bundle-format.md | 307 ------ .../references/specs/js-framework-apis.md | 191 ---- .../v-0.10/references/specs/virtual-dom-apis.md | 147 --- doc/source/v-0.10/references/text-style.md | 43 - doc/source/v-0.10/tools/devtools-android.md | 123 --- doc/source/v-0.10/tools/devtools-ios.md | 76 -- doc/source/v-0.10/tools/devtools.md | 102 -- doc/source/v-0.10/tools/index.md | 97 -- doc/source/v-0.10/tools/playground.md | 24 - doc/source/v-0.10/tools/transformer.md | 38 - doc/themes/weex/_config.yml | 42 - doc/themes/weex/languages/cn.yml | 117 --- doc/themes/weex/languages/en.yml | 117 --- .../weex/layout/_partial/after-footer.ejs | 13 - .../weex/layout/_partial/archive-post.ejs | 11 - doc/themes/weex/layout/_partial/archive.ejs | 19 - doc/themes/weex/layout/_partial/article.ejs | 13 - doc/themes/weex/layout/_partial/footer.ejs | 30 - doc/themes/weex/layout/_partial/head.ejs | 39 - doc/themes/weex/layout/_partial/header.ejs | 77 -- .../weex/layout/_partial/post/category.ejs | 10 - doc/themes/weex/layout/_partial/post/nav.ejs | 8 - .../weex/layout/_partial/post/summary.ejs | 55 -- doc/themes/weex/layout/_partial/post/title.ejs | 18 - doc/themes/weex/layout/_partial/search-form.ejs | 8 - doc/themes/weex/layout/_partial/sidebar.ejs | 58 -- doc/themes/weex/layout/_partial/slider.ejs | 17 - doc/themes/weex/layout/archive.ejs | 3 - doc/themes/weex/layout/blog.ejs | 3 - doc/themes/weex/layout/category.ejs | 1 - doc/themes/weex/layout/download.ejs | 20 - doc/themes/weex/layout/example.ejs | 40 - doc/themes/weex/layout/index.ejs | 269 ------ doc/themes/weex/layout/layout.ejs | 30 - doc/themes/weex/layout/page.ejs | 7 - doc/themes/weex/layout/playground.ejs | 30 - doc/themes/weex/layout/post.ejs | 3 - doc/themes/weex/layout/tag.ejs | 1 - doc/themes/weex/scripts/helper.js | 56 -- doc/themes/weex/source/css/animation.scss | 250 ----- doc/themes/weex/source/css/atom-one-dark.scss | 96 -- doc/themes/weex/source/css/blog.scss | 39 - doc/themes/weex/source/css/common.scss | 256 ----- doc/themes/weex/source/css/docsearch.min.css | 2 - doc/themes/weex/source/css/example.scss | 103 --- doc/themes/weex/source/css/index.scss | 581 ------------ doc/themes/weex/source/css/media-queries.scss | 194 ---- .../weex/source/css/partial/article-title.scss | 28 - doc/themes/weex/source/css/partial/article.scss | 72 -- doc/themes/weex/source/css/partial/footer.scss | 74 -- doc/themes/weex/source/css/partial/header.scss | 128 --- .../weex/source/css/partial/highlight.scss | 109 --- .../weex/source/css/partial/search-form.scss | 113 --- doc/themes/weex/source/css/partial/sidebar.scss | 75 -- doc/themes/weex/source/css/partial/summary.scss | 54 -- doc/themes/weex/source/css/playground.scss | 50 - doc/themes/weex/source/css/post.scss | 95 -- doc/themes/weex/source/css/style.scss | 28 - doc/themes/weex/source/css/swiper.min.css | 15 - doc/themes/weex/source/css/variable.scss | 40 - doc/themes/weex/source/images/_slide1.png | Bin 381001 -> 0 bytes .../weex/source/images/ali-open-source.png | Bin 2193 -> 0 bytes doc/themes/weex/source/images/alibaba.png | Bin 2107 -> 0 bytes doc/themes/weex/source/images/aliyun.png | Bin 1292 -> 0 bytes doc/themes/weex/source/images/android.png | Bin 5973 -> 0 bytes doc/themes/weex/source/images/avatar.png | Bin 32736 -> 0 bytes doc/themes/weex/source/images/cainiao.png | Bin 3353 -> 0 bytes doc/themes/weex/source/images/ding.png | Bin 5929 -> 0 bytes doc/themes/weex/source/images/extendable.svg | 51 - doc/themes/weex/source/images/feature.png | Bin 1090905 -> 0 bytes doc/themes/weex/source/images/feizhu.jpg | Bin 5988 -> 0 bytes doc/themes/weex/source/images/fliggy.png | Bin 19329 -> 0 bytes doc/themes/weex/source/images/flow.png | Bin 14440 -> 0 bytes doc/themes/weex/source/images/galaxy_1.svg | 53 -- doc/themes/weex/source/images/galaxy_2.svg | 53 -- doc/themes/weex/source/images/ios.png | Bin 6272 -> 0 bytes doc/themes/weex/source/images/juhuasuan.png | Bin 46340 -> 0 bytes doc/themes/weex/source/images/level1.png | Bin 14951 -> 0 bytes doc/themes/weex/source/images/level2.png | Bin 101449 -> 0 bytes doc/themes/weex/source/images/level3.png | Bin 101212 -> 0 bytes doc/themes/weex/source/images/level4.png | Bin 339831 -> 0 bytes doc/themes/weex/source/images/lightweight.svg | 31 - doc/themes/weex/source/images/logo.png | Bin 5398 -> 0 bytes doc/themes/weex/source/images/logo.svg | 29 - doc/themes/weex/source/images/performance.svg | 29 - doc/themes/weex/source/images/playground.png | Bin 12659 -> 0 bytes doc/themes/weex/source/images/qianniu.png | Bin 19852 -> 0 bytes doc/themes/weex/source/images/qr.png | Bin 1801 -> 0 bytes doc/themes/weex/source/images/slide1.png | Bin 226303 -> 0 bytes doc/themes/weex/source/images/taobao.png | Bin 3074 -> 0 bytes doc/themes/weex/source/images/taopiaopiao.png | Bin 12460 -> 0 bytes doc/themes/weex/source/images/tmall.png | Bin 8562 -> 0 bytes doc/themes/weex/source/images/vue-logo.png | Bin 5346 -> 0 bytes doc/themes/weex/source/images/vue.png | Bin 16582 -> 0 bytes doc/themes/weex/source/images/web.png | Bin 9297 -> 0 bytes doc/themes/weex/source/images/xiami.png | Bin 2615 -> 0 bytes doc/themes/weex/source/images/youku.png | Bin 2178 -> 0 bytes doc/themes/weex/source/js/common.js | 643 ------------- doc/themes/weex/source/js/docsearch.min.js | 7 - doc/themes/weex/source/js/example.js | 37 - doc/themes/weex/source/js/examples/a.web.js | 528 ----------- doc/themes/weex/source/js/examples/a.weex.js | 198 ---- .../weex/source/js/examples/animation.web.js | 569 ------------ .../weex/source/js/examples/animation.weex.js | 224 ----- .../weex/source/js/examples/clipboard.web.js | 583 ------------ .../weex/source/js/examples/clipboard.weex.js | 249 ----- doc/themes/weex/source/js/examples/div.web.js | 523 ----------- doc/themes/weex/source/js/examples/div.weex.js | 183 ---- .../weex/source/js/examples/dom-rect.web.js | 589 ------------ .../weex/source/js/examples/dom-rect.weex.js | 254 ----- .../weex/source/js/examples/dom-scroll.web.js | 598 ------------ .../weex/source/js/examples/dom-scroll.weex.js | 288 ------ doc/themes/weex/source/js/examples/image.web.js | 542 ----------- .../weex/source/js/examples/image.weex.js | 225 ----- .../weex/source/js/examples/indicator.web.js | 618 ------------- .../weex/source/js/examples/indicator.weex.js | 307 ------ doc/themes/weex/source/js/examples/input.web.js | 586 ------------ .../weex/source/js/examples/input.weex.js | 251 ----- doc/themes/weex/source/js/examples/list.web.js | 584 ------------ doc/themes/weex/source/js/examples/list.weex.js | 252 ----- doc/themes/weex/source/js/examples/modal.web.js | 604 ------------ .../weex/source/js/examples/modal.weex.js | 272 ------ .../weex/source/js/examples/navigator.web.js | 562 ----------- .../weex/source/js/examples/navigator.weex.js | 230 ----- .../weex/source/js/examples/refresh.web.js | 594 ------------ .../weex/source/js/examples/refresh.weex.js | 267 ------ .../weex/source/js/examples/scroller.web.js | 598 ------------ .../weex/source/js/examples/scroller.weex.js | 288 ------ .../weex/source/js/examples/slider.web.js | 587 ------------ .../weex/source/js/examples/slider.weex.js | 255 ----- .../weex/source/js/examples/storage.web.js | 634 ------------- .../weex/source/js/examples/storage.weex.js | 317 ------- .../weex/source/js/examples/stream.web.js | 590 ------------ .../weex/source/js/examples/stream.weex.js | 259 ------ .../weex/source/js/examples/switch.web.js | 605 ------------ .../weex/source/js/examples/switch.weex.js | 280 ------ doc/themes/weex/source/js/examples/text.web.js | 535 ----------- doc/themes/weex/source/js/examples/text.weex.js | 208 ----- .../weex/source/js/examples/textarea.web.js | 582 ------------ .../weex/source/js/examples/textarea.weex.js | 247 ----- doc/themes/weex/source/js/examples/video.web.js | 593 ------------ .../weex/source/js/examples/video.weex.js | 254 ----- doc/themes/weex/source/js/examples/web.web.js | 923 ------------------- doc/themes/weex/source/js/examples/web.weex.js | 600 ------------ doc/themes/weex/source/js/highlight.pack.js | 2 - doc/themes/weex/source/js/mobile-detect.js | 3 - doc/themes/weex/source/js/qrcode.min.js | 1 - doc/themes/weex/source/js/reqwest.js | 7 - doc/themes/weex/source/js/swiper.min.js | 18 - doc/themes/weex/source/js/velocity.js | 5 - 581 files changed, 2 insertions(+), 67940 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8162f8c2/.gitignore ---------------------------------------------------------------------- diff --git a/.gitignore b/.gitignore index f97c1da..e841c31 100644 --- a/.gitignore +++ b/.gitignore @@ -48,12 +48,5 @@ android/playground/app/gradle/wrapper/gradle-wrapper.jar android/playground/app/gradle/wrapper/gradle-wrapper.properties android/sdk/.externalNativeBuild/ndkBuild/ -# doc -doc/Thumbs.db -doc/db.json -doc/node_modules/ -doc/public/ -doc/.deploy*/ - # release apache_release_temp http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8162f8c2/dangerfile-android.js ---------------------------------------------------------------------- diff --git a/dangerfile-android.js b/dangerfile-android.js index 51ca400..01161a7 100644 --- a/dangerfile-android.js +++ b/dangerfile-android.js @@ -30,7 +30,6 @@ const type_ios_test = 3; const type_android_test = 4; const type_jsfm = 5; const type_jsfm_test = 6; -const type_doc = 7; const type_ui_test = 8; const getFileType = file => { @@ -48,8 +47,6 @@ const getFileType = file => { return type_jsfm; } else if (file.match(/html5\/test\/.+\.js/)) { return type_jsfm_test; - } else if (file.match(/doc\/\.+\.md/)) { - return type_doc; } else if(file.match(/test\/scripts\/.+\.js/) || file.match(/test\/pages\/.+\.vue/)){ return type_ui_test }else{ http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8162f8c2/dangerfile-ios.js ---------------------------------------------------------------------- diff --git a/dangerfile-ios.js b/dangerfile-ios.js index 93c5a1e..7fb8ccc 100644 --- a/dangerfile-ios.js +++ b/dangerfile-ios.js @@ -30,7 +30,6 @@ const type_ios_test = 3; const type_android_test = 4; const type_jsfm = 5; const type_jsfm_test = 6; -const type_doc = 7; const type_ui_test = 8; const getFileType = file => { @@ -48,8 +47,6 @@ const getFileType = file => { return type_jsfm; } else if (file.match(/html5\/test\/.+\.js/)) { return type_jsfm_test; - } else if (file.match(/doc\/\.+\.md/)) { - return type_doc; } else if(file.match(/test\/scripts\/.+\.js/) || file.match(/test\/pages\/.+\.vue/)){ return type_ui_test }else{ http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8162f8c2/dangerfile-jsfm.js ---------------------------------------------------------------------- diff --git a/dangerfile-jsfm.js b/dangerfile-jsfm.js index 2f663bd..36c4b46 100644 --- a/dangerfile-jsfm.js +++ b/dangerfile-jsfm.js @@ -30,7 +30,6 @@ const type_ios_test = 3; const type_android_test = 4; const type_jsfm = 5; const type_jsfm_test = 6; -const type_doc = 7; const type_ui_test = 8; const getFileType = file => { @@ -48,11 +47,9 @@ const getFileType = file => { return type_jsfm; } else if (file.match(/html5\/test\/.+\.js/)) { return type_jsfm_test; - } else if (file.match(/doc\/\.+\.md/)) { - return type_doc; - } else if(file.match(/test\/scripts\/.+\.js/) || file.match(/test\/pages\/.+\.vue/)){ + } else if (file.match(/test\/scripts\/.+\.js/) || file.match(/test\/pages\/.+\.vue/)){ return type_ui_test - }else{ + } else { return type_unknown } } http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8162f8c2/dangerfile.js ---------------------------------------------------------------------- diff --git a/dangerfile.js b/dangerfile.js index 660c4af..8376cfa 100644 --- a/dangerfile.js +++ b/dangerfile.js @@ -37,7 +37,6 @@ const flowIgnorePaths = [ 'test', 'build', 'examples', - 'doc', 'android', 'ios', 'bin', @@ -122,7 +121,6 @@ async function checkBreakChange(file){ var has_sdk_changes = false; var has_test_changes = false; -var has_doc_changes = false; var filesToVerifySrcHeader = []; var fileCount = 0; @@ -133,7 +131,6 @@ const type_ios_test = 3; const type_android_test = 4; const type_jsfm = 5; const type_jsfm_test = 6; -const type_doc = 7; const type_ui_test = 8; const getFileType = file => { @@ -151,8 +148,6 @@ const getFileType = file => { return type_jsfm; } else if (file.match(/test\/js-framework\/.+\.js/)) { return type_jsfm_test; - } else if (file.match(/doc\/\.+\.md/)) { - return type_doc; } else if(file.match(/test\/scripts\/.+\.js/) || file.match(/test\/pages\/.+\.vue/)){ return type_ui_test }else{ @@ -176,7 +171,6 @@ const checkChangedFile = file => { fileType == type_ios_test || fileType == type_jsfm_test || fileType == type_ui_test - has_doc_changes = has_doc_changes || fileType == type_doc; }; @@ -228,11 +222,6 @@ if (has_sdk_changes && !has_test_changes) { // else fail("This PR modify SDK code. Please add/modify corresponding testcases. If it is ok, please comment about it. Or put '@notdanger' in you commit message."); } -if (has_sdk_changes && !has_doc_changes) { - warn("This PR should update related documents as well. "); -} - - //check ios copyright //see scripts/rh/header.template const copyright_header_components = [ http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8162f8c2/doc/_config.yml ---------------------------------------------------------------------- diff --git a/doc/_config.yml b/doc/_config.yml deleted file mode 100644 index ff70324..0000000 --- a/doc/_config.yml +++ /dev/null @@ -1,339 +0,0 @@ -# Hexo Configuration -## Docs: https://hexo.io/docs/configuration.html -## Source: https://github.com/hexojs/hexo/ - -# Site -title: Weex -subtitle: -description: A framework for building Mobile cross-platform UIs. Different from a "web app", "HTML5 app", or "hybrid app", you can use Weex to build a real mobile app. The code that you write is relatively simple, because you can build native applications just using HTML, CSS, Javascript. But underneath, the core of the application is Objective-C or Java. At the same time, Weex will provide a lot of native components or modules for developers to use. -author: Jinjiang -language: - - en - - cn - -timezone: - -jsonContent: - meta: true - keywords: false # language name option - dateFormat: undefined # format string - root: true - lang: - - default - - cn - ignore: - - index.html - - faq.html - - releasenote.html - - download.html - - playground.html - - cn/index.html - - cn/faq.html - - cn/download.html - - cn/playground.html - - examples/ - - doc/ - pages: - title: true - path: true - link: true - permalink: true - text: true - content: false - type: true - posts: - title: true - path: true - link: true - permalink: true - text: true - content: false - type: true - - -# Deployment -## Docs: https://hexo.io/docs/deployment.html -deploy: - type: git - repo: http://git-wip-us.apache.org/repos/asf/incubator-weex-site.git - branch: asf-site - target_dir: content - -# URL -## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/' -url: https://weex.apache.org -root: / -permalink_defaults: - lang: en -permalink: :lang/:title/ -new_post_name: :lang/:title.md - -# Directory -source_dir: source -public_dir: public -tag_dir: tags -archive_dir: archives -category_dir: categories -code_dir: downloads/code -i18n_dir: :lang -skip_render: - -# Writing -default_layout: post -# auto_spacing: false # Add spaces between asian characters and western characters -titlecase: false # Transform title into titlecase -external_link: true # Open external links in new tab -filename_case: 0 -render_drafts: false -post_asset_folder: false -relative_link: false -future: true -highlight: - enable: true - line_number: false - auto_detect: false - tab_replace: 2 - -# Category & Tag -default_category: uncategorized -category_map: -tag_map: - -# Date / Time format -## Hexo uses Moment.js to parse and display date -## You can customize the date format as defined in -## http://momentjs.com/docs/#/displaying/format/ -date_format: YYYY-MM-DD -time_format: HH:mm:ss - -# Pagination -## Set per_page to 0 to disable pagination -per_page: 10 -pagination_dir: page - -# Extensions -## Plugins: https://hexo.io/plugins/ -## Themes: https://hexo.io/themes/ -theme: weex - -# css autoprefixer -autoprefixer: - exclude: - browsers: - - 'last 5 versions' - -# docsearch -docsearch: - enable: true - index_name_en: weex - index_name_cn: weex_cn - api_key_en: a6896fe3619315a7f04e9a76bbbbbfcb - api_key_cn: db5b2379e5ffbc33509585c35ccabba8 - -alias: - doc/index.html: index.html - doc/guide.html: guide/index.html - doc/tutorial.html: guide/index.html - doc/syntax/main.html: guide/index.html - doc/syntax/data-binding.html: guide/index.html - doc/syntax/style-n-class.html: guide/index.html - doc/syntax/events.html: guide/index.html - doc/syntax/display-logic.html: guide/index.html - doc/syntax/render-logic.html: guide/index.html - doc/syntax/composed-component.html: guide/index.html - doc/syntax/id.html: guide/index.html - doc/syntax/comm.html: guide/index.html - doc/syntax/config-n-data.html: guide/index.html - doc/syntax/path.html: guide/index.html - doc/how-to/main.html: guide/index.html - doc/how-to/preview-in-browser.html: guide/index.html - doc/how-to/preview-in-playground-app.html: guide/index.html - doc/how-to/customize-a-native-component.html: guide/index.html - doc/how-to/cuszomize-native-apis.html: guide/index.html - doc/how-to/debug-with-html5.html: guide/index.html - doc/how-to/require-3rd-party-libs.html: guide/index.html - doc/how-to/transform-code-into-js-bundle.html: guide/index.html - doc/advanced/main.html: references/advanced/index.html - doc/advanced/how-it-works.html: guide/intro/index.html - doc/advanced/how-data-binding-works.html: references/advanced/index.html - doc/advanced/integrate-to-android.html: references/advanced/index.html - doc/advanced/integrate-to-ios.html: references/advanced/index.html - doc/advanced/integrate-to-html5.html: references/advanced/index.html - doc/advanced/extend-to-android.html: references/advanced/extend-to-android.html - doc/advanced/extend-to-ios.html: references/advanced/extend-to-ios.html - doc/advanced/extend-to-html5.html: references/advanced/extend-to-html5.html - doc/references/main.html: references/index.html - doc/references/bootstrap.html: references/index.html - doc/references/component-defs.html: references/index.html - doc/references/api.html: references/index.html - doc/references/gesture.html: references/gesture.html - doc/components/main.html: references/components/index.html - doc/references/common-attrs.html: references/index.html - doc/references/common-style.html: references/common-style.html - doc/references/text-style.html: references/text-style.html - doc/references/color-names.html: references/color-names.html - doc/references/common-event.html: references/common-event.html - doc/components/special-element.html: references/components/index.html - doc/components/div.html: references/components/div.html - doc/components/scroller.html: references/components/scroller.html - doc/components/list.html: references/components/list.html - doc/components/cell.html: references/components/cell.html - doc/components/refresh-loading.html: references/components/refresh.html - doc/components/text.html: references/components/text.html - doc/components/image.html: references/components/image.html - doc/components/input.html: references/components/input.html - doc/components/textarea.html: references/components/textarea.html - doc/components/switch.html: references/components/switch.html - doc/components/slider.html: references/components/slider.html - doc/components/indicator.html: references/components/indicator.html - doc/components/video.html: references/components/video.html - doc/components/a.html: references/components/index.html - doc/components/web.html: references/components/web.html - doc/components/wxc-tabbar.html: references/components/index.html - doc/components/wxc-navpage.html: references/components/index.html - doc/modules/main.html: references/modules/index.html - doc/modules/dom.html: references/modules/dom.html - doc/modules/stream.html: references/modules/stream.html - doc/modules/picker.html: references/modules/picker.html - doc/modules/modal.html: references/modules/modal.html - doc/modules/animation.html: references/modules/animation.html - doc/modules/webview.html: references/modules/webview.html - doc/modules/navigator.html: references/modules/navigator.html - doc/modules/storage.html: references/modules/storage.html - doc/modules/timer.html: references/modules/index.html - doc/modules/clipboard.html: references/modules/clipboard.html - doc/modules/globalevent.html: references/modules/globalevent.html - doc/specs/js-bundle-format.html: references/index.html - doc/specs/js-framework-apis.html: references/index.html - doc/specs/virtual-dom-apis.html: references/index.html - doc/demo/hello-world.html: index.html - doc/demo/modal.html: index.html - doc/demo/clipboard.html: index.html - doc/demo/list.html: index.html - doc/demo/slider.html: index.html - doc/demo/animation.html: index.html - doc/tools/cli.html: index.html - doc/tools/devtools.html: index.html - doc/tools/devtools-android.html: index.html - doc/tools/devtools-ios.html: index.html - doc/tools/transformer.html: index.html - doc/tools/playground-app.html: playground.html - doc/faq.html: faq.html - cn/doc/index.html: cn/index.html - cn/doc/develop-on-your-local-machine.html: cn/guide/index.html - cn/doc/get-started.html: cn/guide/index.html - cn/doc/guide.html: cn/guide/index.html - cn/doc/tutorial.html: cn/guide/index.html - cn/doc/syntax/main.html: cn/guide/index.html - cn/doc/syntax/data-binding.html: cn/guide/index.html - cn/doc/syntax/style-n-class.html: cn/guide/index.html - cn/doc/syntax/events.html: cn/guide/index.html - cn/doc/syntax/display-logic.html: cn/guide/index.html - cn/doc/syntax/render-logic.html: cn/guide/index.html - cn/doc/syntax/composed-component.html: cn/guide/index.html - cn/doc/syntax/id.html: cn/guide/index.html - cn/doc/syntax/comm.html: cn/guide/index.html - cn/doc/syntax/config-n-data.html: cn/guide/index.html - cn/doc/syntax/path.html: cn/guide/index.html - cn/doc/how-to/main.html: cn/guide/index.html - cn/doc/how-to/preview-in-browser.html: cn/guide/index.html - cn/doc/how-to/preview-in-playground-app.html: cn/guide/index.html - cn/doc/how-to/customize-a-native-component.html: cn/guide/index.html - cn/doc/how-to/cuszomize-native-apis.html: cn/guide/index.html - cn/doc/how-to/debug-with-html5.html: cn/guide/index.html - cn/doc/how-to/debug-with-devtools.html: cn/guide/index.html - cn/doc/how-to/require-3rd-party-libs.html: cn/guide/index.html - cn/doc/how-to/transform-code-into-js-bundle.html: cn/guide/index.html - cn/doc/advanced/main.html: cn/references/advanced/index.html - cn/doc/advanced/how-it-works.html: cn/guide/intro/index.html - cn/doc/advanced/how-data-binding-works.html: cn/references/advanced/index.html - cn/doc/advanced/integrate-to-android.html: cn/references/advanced/index.html - cn/doc/advanced/integrate-to-ios.html: cn/references/advanced/index.html - cn/doc/advanced/integrate-to-html5.html: cn/references/advanced/index.html - cn/doc/advanced/extend-to-android.html: cn/references/advanced/extend-to-android.html - cn/doc/advanced/extend-to-ios.html: cn/references/advanced/extend-to-ios.html - cn/doc/advanced/extend-to-html5.html: cn/references/advanced/extend-to-html5.html - cn/doc/references/main.html: cn/references/index.html - cn/doc/references/bootstrap.html: cn/references/index.html - cn/doc/references/component-defs.html: cn/references/index.html - cn/doc/references/api.html: cn/references/index.html - cn/doc/references/gesture.html: cn/references/gesture.html - cn/doc/components/main.html: cn/references/components/index.html - cn/doc/references/common-attrs.html: cn/references/index.html - cn/doc/references/common-style.html: cn/references/common-style.html - cn/doc/references/text-style.html: cn/references/text-style.html - cn/doc/references/color-names.html: cn/references/color-names.html - cn/doc/references/common-event.html: cn/references/common-event.html - cn/doc/references/styles/units.html: cn/references/unit.html - cn/doc/components/special-element.html: cn/references/components/index.html - cn/doc/components/div.html: cn/references/components/div.html - cn/doc/components/scroller.html: cn/references/components/scroller.html - cn/doc/components/list.html: cn/references/components/list.html - cn/doc/components/cell.html: cn/references/components/cell.html - cn/doc/components/refresh.html: cn/references/components/refresh.html - cn/doc/components/loading.html: cn/references/components/loading.html - cn/doc/components/text.html: cn/references/components/text.html - cn/doc/components/image.html: cn/references/components/image.html - cn/doc/components/input.html: cn/references/components/input.html - cn/doc/components/textarea.html: cn/references/components/textarea.html - cn/doc/components/switch.html: cn/references/components/switch.html - cn/doc/components/slider.html: cn/references/components/slider.html - cn/doc/components/indicator.html: cn/references/components/indicator.html - cn/doc/components/video.html: cn/references/components/video.html - cn/doc/components/a.html: cn/references/components/index.html - cn/doc/components/web.html: cn/references/components/web.html - cn/doc/components/wxc-tabbar.html: cn/references/components/index.html - cn/doc/components/wxc-navpage.html: cn/references/components/index.html - cn/doc/modules/main.html: cn/references/modules/index.html - cn/doc/modules/dom.html: cn/references/modules/dom.html - cn/doc/modules/stream.html: cn/references/modules/stream.html - cn/doc/modules/picker.html: cn/references/modules/picker.html - cn/doc/modules/modal.html: cn/references/modules/modal.html - cn/doc/modules/animation.html: cn/references/modules/animation.html - cn/doc/modules/webview.html: cn/references/modules/webview.html - cn/doc/modules/navigator.html: cn/references/modules/navigator.html - cn/doc/modules/storage.html: cn/references/modules/storage.html - cn/doc/modules/timer.html: cn/references/modules/index.html - cn/doc/modules/clipboard.html: cn/references/modules/clipboard.html - cn/doc/modules/globalevent.html: cn/references/modules/globalevent.html - cn/doc/specs/js-bundle-format.html: cn/references/index.html - cn/doc/specs/js-framework-apis.html: cn/references/index.html - cn/doc/specs/virtual-dom-apis.html: cn/references/index.html - cn/doc/demo/hello-world.html: cn/index.html - cn/doc/demo/modal.html: cn/index.html - cn/doc/demo/clipboard.html: cn/index.html - cn/doc/demo/list.html: cn/index.html - cn/doc/demo/slider.html: cn/index.html - cn/doc/demo/animation.html: cn/index.html - cn/doc/tools/cli.html: cn/index.html - cn/doc/tools/devtools.html: cn/index.html - cn/doc/tools/devtools-android.html: cn/index.html - cn/doc/tools/devtools-ios.html: cn/index.html - cn/doc/tools/transformer.html: cn/index.html - cn/doc/tools/playground-app.html: cn/playground.html - cn/doc/faq.html: cn/faq.html - cn/doc/references/cheatsheet.html: cn/references/index.html - cn/doc/references/styles/background-color.html: cn/references/index.html - cn/doc/references/styles/color.html: cn/references/index.html - cn/doc/references/styles/font-family.html: cn/references/index.html - cn/doc/references/styles/font-size.html: cn/references/index.html - cn/doc/references/styles/font-style.html: cn/references/index.html - cn/doc/references/styles/font-weight.html: cn/references/index.html - cn/doc/references/styles/line-height.html: cn/references/index.html - cn/doc/references/styles/lines.html: cn/references/index.html - cn/doc/references/styles/opacity.html: cn/references/index.html - cn/doc/references/styles/position.html: cn/references/index.html - cn/doc/references/styles/text-align.html: cn/references/index.html - cn/doc/references/styles/text-decoration.html: cn/references/index.html - cn/doc/references/styles/text-overflow.html: cn/references/index.html - cn/doc/references/events/appear.html: cn/references/index.html - cn/doc/references/events/change.html: cn/references/index.html - cn/doc/references/events/blur.html: cn/references/index.html - cn/doc/references/events/input.html: cn/references/index.html - cn/doc/references/events/focus.html: cn/references/index.html - cn/guide/tools/devtools.html: cn/guide/tools/toolkit.html - cn/guide/tools/weexpack.html: cn/guide/tools/toolkit.html - guide/tools/devtools.html: guide/tools/toolkit.html - guide/tools/weexpack.html: guide/tools/toolkit.html - cn/guide/tools/plugin.html: cn/giude/tools/plugin.html - guide/tools/plugin.html: guide/tools/plugin.html http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8162f8c2/doc/_config_cn.yml ---------------------------------------------------------------------- diff --git a/doc/_config_cn.yml b/doc/_config_cn.yml deleted file mode 100644 index 93eff7d..0000000 --- a/doc/_config_cn.yml +++ /dev/null @@ -1,337 +0,0 @@ -# Hexo Configuration -## Docs: https://hexo.io/docs/configuration.html -## Source: https://github.com/hexojs/hexo/ - -# Site -title: Weex -subtitle: -description: A framework for building Mobile cross-platform UIs. Different from a "web app", "HTML5 app", or "hybrid app", you can use Weex to build a real mobile app. The code that you write is relatively simple, because you can build native applications just using HTML, CSS, Javascript. But underneath, the core of the application is Objective-C or Java. At the same time, Weex will provide a lot of native components or modules for developers to use. -author: Jinjiang -language: - - en - - cn - -timezone: - -jsonContent: - meta: true - keywords: false # language name option - dateFormat: undefined # format string - root: true - lang: - - default - - cn - ignore: - - index.html - - faq.html - - releasenote.html - - download.html - - playground.html - - cn/index.html - - cn/faq.html - - cn/download.html - - cn/playground.html - - examples/ - - doc/ - pages: - title: true - path: true - link: true - permalink: true - text: true - content: false - type: true - posts: - title: true - path: true - link: true - permalink: true - text: true - content: false - type: true - -# Deployment -## Docs: https://hexo.io/docs/deployment.html -deploy: - type: git - repo: g...@github.com:weexteam/incubator-weex.git - branch: [gh-pages] - -# URL -## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/' -url: https://weex-project.io -root: / -permalink_defaults: - lang: en -permalink: :lang/:title/ -new_post_name: :lang/:title.md - -# Directory -source_dir: source -public_dir: public -tag_dir: tags -archive_dir: archives -category_dir: categories -code_dir: downloads/code -i18n_dir: :lang -skip_render: - -# Writing -default_layout: post -# auto_spacing: false # Add spaces between asian characters and western characters -titlecase: false # Transform title into titlecase -external_link: true # Open external links in new tab -filename_case: 0 -render_drafts: false -post_asset_folder: false -relative_link: false -future: true -highlight: - enable: true - line_number: false - auto_detect: false - tab_replace: 2 - -# Category & Tag -default_category: uncategorized -category_map: -tag_map: - -# Date / Time format -## Hexo uses Moment.js to parse and display date -## You can customize the date format as defined in -## http://momentjs.com/docs/#/displaying/format/ -date_format: YYYY-MM-DD -time_format: HH:mm:ss - -# Pagination -## Set per_page to 0 to disable pagination -per_page: 10 -pagination_dir: page - -# Extensions -## Plugins: https://hexo.io/plugins/ -## Themes: https://hexo.io/themes/ -theme: weex - -# css autoprefixer -autoprefixer: - exclude: - browsers: - - 'last 5 versions' - -# docsearch -docsearch: - enable: true - index_name_en: weex_io - index_name_cn: weex_io_cn - api_key_en: e487bb3d17e4fa1787db9976b086792c - api_key_cn: ce50ba9d18b3295d568b305a7171ceef - -alias: - doc/index.html: index.html - doc/guide.html: guide/index.html - doc/tutorial.html: guide/index.html - doc/syntax/main.html: guide/index.html - doc/syntax/data-binding.html: guide/index.html - doc/syntax/style-n-class.html: guide/index.html - doc/syntax/events.html: guide/index.html - doc/syntax/display-logic.html: guide/index.html - doc/syntax/render-logic.html: guide/index.html - doc/syntax/composed-component.html: guide/index.html - doc/syntax/id.html: guide/index.html - doc/syntax/comm.html: guide/index.html - doc/syntax/config-n-data.html: guide/index.html - doc/syntax/path.html: guide/index.html - doc/how-to/main.html: guide/index.html - doc/how-to/preview-in-browser.html: guide/index.html - doc/how-to/preview-in-playground-app.html: guide/index.html - doc/how-to/customize-a-native-component.html: guide/index.html - doc/how-to/cuszomize-native-apis.html: guide/index.html - doc/how-to/debug-with-html5.html: guide/index.html - doc/how-to/require-3rd-party-libs.html: guide/index.html - doc/how-to/transform-code-into-js-bundle.html: guide/index.html - doc/advanced/main.html: references/advanced/index.html - doc/advanced/how-it-works.html: guide/intro/index.html - doc/advanced/how-data-binding-works.html: references/advanced/index.html - doc/advanced/integrate-to-android.html: references/advanced/index.html - doc/advanced/integrate-to-ios.html: references/advanced/index.html - doc/advanced/integrate-to-html5.html: references/advanced/index.html - doc/advanced/extend-to-android.html: references/advanced/extend-to-android.html - doc/advanced/extend-to-ios.html: references/advanced/extend-to-ios.html - doc/advanced/extend-to-html5.html: references/advanced/extend-to-html5.html - doc/references/main.html: references/index.html - doc/references/bootstrap.html: references/index.html - doc/references/component-defs.html: references/index.html - doc/references/api.html: references/index.html - doc/references/gesture.html: references/gesture.html - doc/components/main.html: references/components/index.html - doc/references/common-attrs.html: references/index.html - doc/references/common-style.html: references/common-style.html - doc/references/text-style.html: references/text-style.html - doc/references/color-names.html: references/color-names.html - doc/references/common-event.html: references/common-event.html - doc/components/special-element.html: references/components/index.html - doc/components/div.html: references/components/div.html - doc/components/scroller.html: references/components/scroller.html - doc/components/list.html: references/components/list.html - doc/components/cell.html: references/components/cell.html - doc/components/refresh-loading.html: references/components/refresh.html - doc/components/text.html: references/components/text.html - doc/components/image.html: references/components/image.html - doc/components/input.html: references/components/input.html - doc/components/textarea.html: references/components/textarea.html - doc/components/switch.html: references/components/switch.html - doc/components/slider.html: references/components/slider.html - doc/components/indicator.html: references/components/indicator.html - doc/components/video.html: references/components/video.html - doc/components/a.html: references/components/index.html - doc/components/web.html: references/components/web.html - doc/components/wxc-tabbar.html: references/components/index.html - doc/components/wxc-navpage.html: references/components/index.html - doc/modules/main.html: references/modules/index.html - doc/modules/dom.html: references/modules/dom.html - doc/modules/stream.html: references/modules/stream.html - doc/modules/picker.html: references/modules/picker.html - doc/modules/modal.html: references/modules/modal.html - doc/modules/animation.html: references/modules/animation.html - doc/modules/webview.html: references/modules/webview.html - doc/modules/navigator.html: references/modules/navigator.html - doc/modules/storage.html: references/modules/storage.html - doc/modules/timer.html: references/modules/index.html - doc/modules/clipboard.html: references/modules/clipboard.html - doc/modules/globalevent.html: references/modules/globalevent.html - doc/specs/js-bundle-format.html: references/index.html - doc/specs/js-framework-apis.html: references/index.html - doc/specs/virtual-dom-apis.html: references/index.html - doc/demo/hello-world.html: index.html - doc/demo/modal.html: index.html - doc/demo/clipboard.html: index.html - doc/demo/list.html: index.html - doc/demo/slider.html: index.html - doc/demo/animation.html: index.html - doc/tools/cli.html: index.html - doc/tools/devtools.html: index.html - doc/tools/devtools-android.html: index.html - doc/tools/devtools-ios.html: index.html - doc/tools/transformer.html: index.html - doc/tools/playground-app.html: playground.html - doc/faq.html: faq.html - cn/doc/index.html: cn/index.html - cn/doc/develop-on-your-local-machine.html: cn/guide/index.html - cn/doc/get-started.html: cn/guide/index.html - cn/doc/guide.html: cn/guide/index.html - cn/doc/tutorial.html: cn/guide/index.html - cn/doc/syntax/main.html: cn/guide/index.html - cn/doc/syntax/data-binding.html: cn/guide/index.html - cn/doc/syntax/style-n-class.html: cn/guide/index.html - cn/doc/syntax/events.html: cn/guide/index.html - cn/doc/syntax/display-logic.html: cn/guide/index.html - cn/doc/syntax/render-logic.html: cn/guide/index.html - cn/doc/syntax/composed-component.html: cn/guide/index.html - cn/doc/syntax/id.html: cn/guide/index.html - cn/doc/syntax/comm.html: cn/guide/index.html - cn/doc/syntax/config-n-data.html: cn/guide/index.html - cn/doc/syntax/path.html: cn/guide/index.html - cn/doc/how-to/main.html: cn/guide/index.html - cn/doc/how-to/preview-in-browser.html: cn/guide/index.html - cn/doc/how-to/preview-in-playground-app.html: cn/guide/index.html - cn/doc/how-to/customize-a-native-component.html: cn/guide/index.html - cn/doc/how-to/cuszomize-native-apis.html: cn/guide/index.html - cn/doc/how-to/debug-with-html5.html: cn/guide/index.html - cn/doc/how-to/debug-with-devtools.html: cn/guide/index.html - cn/doc/how-to/require-3rd-party-libs.html: cn/guide/index.html - cn/doc/how-to/transform-code-into-js-bundle.html: cn/guide/index.html - cn/doc/advanced/main.html: cn/references/advanced/index.html - cn/doc/advanced/how-it-works.html: cn/guide/intro/index.html - cn/doc/advanced/how-data-binding-works.html: cn/references/advanced/index.html - cn/doc/advanced/integrate-to-android.html: cn/references/advanced/index.html - cn/doc/advanced/integrate-to-ios.html: cn/references/advanced/index.html - cn/doc/advanced/integrate-to-html5.html: cn/references/advanced/index.html - cn/doc/advanced/extend-to-android.html: cn/references/advanced/extend-to-android.html - cn/doc/advanced/extend-to-ios.html: cn/references/advanced/extend-to-ios.html - cn/doc/advanced/extend-to-html5.html: cn/references/advanced/extend-to-html5.html - cn/doc/references/main.html: cn/references/index.html - cn/doc/references/bootstrap.html: cn/references/index.html - cn/doc/references/component-defs.html: cn/references/index.html - cn/doc/references/api.html: cn/references/index.html - cn/doc/references/gesture.html: cn/references/gesture.html - cn/doc/components/main.html: cn/references/components/index.html - cn/doc/references/common-attrs.html: cn/references/index.html - cn/doc/references/common-style.html: cn/references/common-style.html - cn/doc/references/text-style.html: cn/references/text-style.html - cn/doc/references/color-names.html: cn/references/color-names.html - cn/doc/references/common-event.html: cn/references/common-event.html - cn/doc/references/styles/units.html: cn/references/unit.html - cn/doc/components/special-element.html: cn/references/components/index.html - cn/doc/components/div.html: cn/references/components/div.html - cn/doc/components/scroller.html: cn/references/components/scroller.html - cn/doc/components/list.html: cn/references/components/list.html - cn/doc/components/cell.html: cn/references/components/cell.html - cn/doc/components/refresh.html: cn/references/components/refresh.html - cn/doc/components/loading.html: cn/references/components/loading.html - cn/doc/components/text.html: cn/references/components/text.html - cn/doc/components/image.html: cn/references/components/image.html - cn/doc/components/input.html: cn/references/components/input.html - cn/doc/components/textarea.html: cn/references/components/textarea.html - cn/doc/components/switch.html: cn/references/components/switch.html - cn/doc/components/slider.html: cn/references/components/slider.html - cn/doc/components/indicator.html: cn/references/components/indicator.html - cn/doc/components/video.html: cn/references/components/video.html - cn/doc/components/a.html: cn/references/components/index.html - cn/doc/components/web.html: cn/references/components/web.html - cn/doc/components/wxc-tabbar.html: cn/references/components/index.html - cn/doc/components/wxc-navpage.html: cn/references/components/index.html - cn/doc/modules/main.html: cn/references/modules/index.html - cn/doc/modules/dom.html: cn/references/modules/dom.html - cn/doc/modules/stream.html: cn/references/modules/stream.html - cn/doc/modules/picker.html: cn/references/modules/picker.html - cn/doc/modules/modal.html: cn/references/modules/modal.html - cn/doc/modules/animation.html: cn/references/modules/animation.html - cn/doc/modules/webview.html: cn/references/modules/webview.html - cn/doc/modules/navigator.html: cn/references/modules/navigator.html - cn/doc/modules/storage.html: cn/references/modules/storage.html - cn/doc/modules/timer.html: cn/references/modules/index.html - cn/doc/modules/clipboard.html: cn/references/modules/clipboard.html - cn/doc/modules/globalevent.html: cn/references/modules/globalevent.html - cn/doc/specs/js-bundle-format.html: cn/references/index.html - cn/doc/specs/js-framework-apis.html: cn/references/index.html - cn/doc/specs/virtual-dom-apis.html: cn/references/index.html - cn/doc/demo/hello-world.html: cn/index.html - cn/doc/demo/modal.html: cn/index.html - cn/doc/demo/clipboard.html: cn/index.html - cn/doc/demo/list.html: cn/index.html - cn/doc/demo/slider.html: cn/index.html - cn/doc/demo/animation.html: cn/index.html - cn/doc/tools/cli.html: cn/index.html - cn/doc/tools/devtools.html: cn/index.html - cn/doc/tools/devtools-android.html: cn/index.html - cn/doc/tools/devtools-ios.html: cn/index.html - cn/doc/tools/transformer.html: cn/index.html - cn/doc/tools/playground-app.html: cn/playground.html - cn/doc/faq.html: cn/faq.html - cn/doc/references/cheatsheet.html: cn/references/index.html - cn/doc/references/styles/background-color.html: cn/references/index.html - cn/doc/references/styles/color.html: cn/references/index.html - cn/doc/references/styles/font-family.html: cn/references/index.html - cn/doc/references/styles/font-size.html: cn/references/index.html - cn/doc/references/styles/font-style.html: cn/references/index.html - cn/doc/references/styles/font-weight.html: cn/references/index.html - cn/doc/references/styles/line-height.html: cn/references/index.html - cn/doc/references/styles/lines.html: cn/references/index.html - cn/doc/references/styles/opacity.html: cn/references/index.html - cn/doc/references/styles/position.html: cn/references/index.html - cn/doc/references/styles/text-align.html: cn/references/index.html - cn/doc/references/styles/text-decoration.html: cn/references/index.html - cn/doc/references/styles/text-overflow.html: cn/references/index.html - cn/doc/references/events/appear.html: cn/references/index.html - cn/doc/references/events/change.html: cn/references/index.html - cn/doc/references/events/blur.html: cn/references/index.html - cn/doc/references/events/input.html: cn/references/index.html - cn/doc/references/events/focus.html: cn/references/index.html - cn/guide/tools/devtools.html: cn/guide/tools/toolkit.html - cn/guide/tools/weexpack.html: cn/guide/tools/toolkit.html - guide/tools/devtools.html: guide/tools/toolkit.html - guide/tools/weexpack.html: guide/tools/toolkit.html - cn/guide/tools/plugin.html: cn/giude/tools/plugin.html - guide/tools/plugin.html: guide/tools/plugin.html http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8162f8c2/doc/advanced/extend-to-android.md ---------------------------------------------------------------------- diff --git a/doc/advanced/extend-to-android.md b/doc/advanced/extend-to-android.md deleted file mode 100644 index 336f5df..0000000 --- a/doc/advanced/extend-to-android.md +++ /dev/null @@ -1,175 +0,0 @@ -##Extend to Android -<span class="weex-version">0.4</span> - -### Module extend -weex sdk support Module extend, -Weex SDK provides only rendering capabilities, rather than have other capabilities, such as network, picture, and URL redirection. If you want the these features, you need to implement it. - -For example: If you want to implement an address jumping function, you can achieve a Module Follow the steps below. -#### Step to customize a module -1. Customize module must extend WXModule -2. @WXModuleAnno annotation must be added, as it is the only the way to recognized by Weex -3. The access levels of mehtod must be **public** -4. The module class also can not be an inner class -5. Customize can not be obfuscated by tools like ProGuard -6. Module methods will be invoked in UI thread, do not put time consuming operation there -7. Weex params can be int, double, float, String, Map, List - -Refer to the following example: - -```java - public class WXEventModule extends WXModule{ - - private static final String WEEX_CATEGORY="com.taobao.android.intent.category.WEEX"; - - @WXModuleAnno - public void openURL(String url){ - //implement your module logic here - } - } - -``` -#### Support synchronous/asynchronous callback -you can add `` @JSMethod (uiThread = false or true ) `` annotation to choose the callback mode of moudle . see the follow example. -```java - // as sync-callback mode - @JSMethod (uiThread = false) - public void testSyncCall(){ - WXLogUtils.d("WXComponentSyncTest :"+ Thread.currentThread().getName()); - } - - // as async-callback mode - @JSMethod (uiThread = true) - public void testAsyncCall(){ - WXLogUtils.e("WXComponentASynTest :"+ Thread.currentThread().getName() ); - } - -``` -#### Register the moulde - -```java - - WXSDKEngine.registerModule("event", WXEventModule.class); - -``` - -### Use this module in weex DSL -Now `event` moudle is avaiable in weex, use the module like this: -```javascript - -var event = weex.requireModule('event'); -event.openURL("http://www.github.com"); - -``` - -### Javascript callback -If the module need implement a callback to javascript, you just add `JSCallback` argument to the method you want expose to javascript: -```java - - @WXModuleAnno - public void openURL(String url,JSCallback callback){ - //implement your module logic here - Map<String,Object> resp = new HashMap(); - resp.put("result","ok"); - callback.invoke(resp); - } - -``` -At the javascript side, call the module with javascript function to receive callback data: -```javascript - -event.openURL("http://www.github.com",function(resp){ console.log(resp.result); }); - -``` - -### Component extend -<font color="gray"> -There are label, image, div, scroll, ect. components in weex, you can also customize your own components. - -#### Step to customize a component - -1. Customize components must extend WXComponent or WXContainer -2. @WXComponentProp(name=value(value is attr or style of dsl)) for it be recognized by weex SDK. -3. The access levels of mehtod must be **public** -4. The component class can not be an inner class -5. Customize can not be obfuscated by tools like ProGuard -6. Component methods will be invoked in UI thread, do not put time consuming operation there. -7. Weex params can be int, double, float, String, Map, List, Array - - -Refer to the following example - -```java - - public class MyViewComponent extends WXComponent{ - public MyViewComponent(WXSDKInstance instance, WXDomObject dom, - WXVContainer parent, String instanceId, boolean isLazy) - { - public MyViewComponent(WXSDKInstance instance, WXDomObject dom, - WXVContainer parent, String instanceId, boolean isLazy) { - super(instance, dom, parent, instanceId, isLazy); - } - - @Override - protected void initView() { - mHost = new TextView(mContext); - } - @WXComponentProp(name=WXDomPropConstant.WX_ATTR_VALUE) - public void setMyViewValue(String value) { - ((TextView)mHost).setText(value); - } - } - -``` - -#### Register the Component - - -```java - WXSDKEngine.registerComponent("MyView", MyViewComponent.class); -``` - -### Adapter extend - -#### ImagedownloadAdapter -<font color="gray"> -Weex SDK has no image download capability, you need to implement `IWXImgLoaderAdapter`. Refer to the following examples. - -```java - -public class ImageAdapter implements IWXImgLoaderAdapter { - - private Activity mContext; - - public ImageAdapter(Activity activity) { - mContext = activity; - } - - @Override - public void setImage(final String url, final ImageView view, - WXImageQuality quality, WXImageStrategy strategy) { - mContext.runOnUiThread(new Runnable() { - - @Override - public void run() { - if (TextUtils.isEmpty(url)) { - view.setImageBitmap(null); - return; - } - String temp = url; - if (url.startsWith("//")){ - temp = "http:" + url; - } - if (view.getLayoutParams().width<=0 || view.getLayoutParams().height<=0) { - return; - } - Picasso.with(WXEnvironment.getApplication()) - .load(temp) - .resize(view.getLayoutParams().width, - view.getLayoutParams().height).into(view); - } - }); - } -} - -``` http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8162f8c2/doc/package.json ---------------------------------------------------------------------- diff --git a/doc/package.json b/doc/package.json deleted file mode 100644 index 83ffb8c..0000000 --- a/doc/package.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "name": "weex-site", - "version": "0.0.0", - "private": true, - "hexo": { - "version": "3.3.1" - }, - "scripts": { - "server": "hexo server" - }, - "dependencies": { - "cheerio": "^0.20.0", - "hexo": "3.3.1", - "hexo-autoprefixer": "^1.0.0", - "hexo-deployer-git": "g...@github.com:Jinjiang/hexo-deployer-git.git", - "hexo-generator-alias": "git+https://github.com/hexojs/hexo-generator-alias.git", - "hexo-generator-archive": "^0.1.4", - "hexo-generator-category": "^0.1.3", - "hexo-generator-index": "^0.2.0", - "hexo-generator-json-content": "^3.0.1", - "hexo-generator-tag": "^0.2.0", - "hexo-renderer-ejs": "^0.2.0", - "hexo-renderer-marked": "^0.2.10", - "hexo-renderer-scss": "^1.0.2", - "hexo-renderer-stylus": "^0.3.1", - "hexo-server": "^0.2.0" - } -} http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8162f8c2/doc/scaffolds/draft.md ---------------------------------------------------------------------- diff --git a/doc/scaffolds/draft.md b/doc/scaffolds/draft.md deleted file mode 100644 index 498e95b..0000000 --- a/doc/scaffolds/draft.md +++ /dev/null @@ -1,4 +0,0 @@ ---- -title: {{ title }} -tags: ---- http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8162f8c2/doc/scaffolds/page.md ---------------------------------------------------------------------- diff --git a/doc/scaffolds/page.md b/doc/scaffolds/page.md deleted file mode 100644 index f01ba3c..0000000 --- a/doc/scaffolds/page.md +++ /dev/null @@ -1,4 +0,0 @@ ---- -title: {{ title }} -date: {{ date }} ---- http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8162f8c2/doc/scaffolds/post.md ---------------------------------------------------------------------- diff --git a/doc/scaffolds/post.md b/doc/scaffolds/post.md deleted file mode 100644 index 1f9b9a4..0000000 --- a/doc/scaffolds/post.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -title: {{ title }} -date: {{ date }} -tags: ---- http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8162f8c2/doc/source/_posts/arkit.md ---------------------------------------------------------------------- diff --git a/doc/source/_posts/arkit.md b/doc/source/_posts/arkit.md deleted file mode 100644 index 5da0e92..0000000 --- a/doc/source/_posts/arkit.md +++ /dev/null @@ -1,112 +0,0 @@ -title: Weex â¤ï¸ iOS 11 ç³»åä¹äºï¼ARKitåæ¢ -type: blog -date: 2017-06-27 14:32:10 - ---- - -## ARKit -è¹æå¨wwdc 2017å ¬å¸äºç¬¬ä¸æ¬¾å ·æARåè½çæä½ç³»ç»iOS11ï¼å¹¶æä¾äºARçSDKï¼ARKitï¼åæ¶å®£ç§°è¹ææ¯ä¸çä¸æ大çARå¹³å°ï¼Weexä¹ç§¯ææ¥æ±ARï¼è®©Weexç¨æ·ä¹å¯ä»¥æ¹ä¾¿å¼åARåè½ - -ARä½éªå°±æ¯å建å追踪ç¨æ·æå¨çç°å®ä¸çåå¯å»ºç«æ¨¡åç空é´ç对åºå ³ç³»çè½åï¼è®©ç¨æ·æè§äº§çèæå 容å¨ç°å®ä¸ççéè§ï¼è¿å°±æ¯æè°çå¢å¼ºç°å®ãARKitéè¿è¯å«å¾ååºæ¯ä¸çæ¾èç¹å¾ï¼è¿½è¸ªè¿äºç¹å¾çå·®å¼ä½ç½®ï¼æåä¸ä¼ æå¨æ°æ®æ¯è¾ï¼å¾å°è®¾å¤ä½ç½®åè¿å¨ç¶æçé«ç²¾åº¦æ¨¡å - -## åç -ARkit å¨ARSCNViewï¼ARSession,ARFrameçåºç¡ä¸å®ç° - -### ARSCNViewåARSession -![x](http://upload-images.jianshu.io/upload_images/6271687-d5b0e534ef0d7aaa.png?imageMogr2/auto-orient/strip%7CimageView2/2) -ARKitæä¾äºä¸¤ç§å¢å¼ºç°å®çè§å¾ï¼ä»ä»¬åå«æ¯ARSCNView(3D)åARSKView(2D),è¿ä¸¤ç§è§å¾é½éç¨ARCameraä½ä¸ºè§å¾èæ¯çï¼èARSCNViewçè§å¾åç¸æºæ²¡æç´æ¥å ³ç³»ï¼ä»ä»¬æ¯éè¿ARSessionè¿ä¸ªæ¡¥æ¢åcamera交äºçï¼è¿è¡ä¸ä¸ªsessionï¼éè¦æå®ä¼è¯è¿½è¸ªé ç½®ç对象ï¼ARSessionConfigurationï¼ARSessionConfigurationè´è´£è¿½è¸ªç¸æºå¨3Dä¸çä¸çä½ç½®åå¹³é¢æ¢æµ - -### ARWorldTrackingSessionConfigurationä¸ARFrame -![x](https://github.com/kfeagle/firstdemo/blob/master/arkit.png?raw=true) -ARWorldTrackingSessionConfigurationéè¿ä¸ç³»åçå¤æ计ç®åè°ç¨ä¼ æå¨æ¥è·è¸ªè®¾å¤çæ¹ååä½ç½®ï¼å½ARWorldTrackingSessionConfiguration计ç®åºä½ç½®ï¼ä¼äº¤ç»ARSession管ç,ARSessionå°±ä¼ç»´æ¤ä¸ä¸ªç¸æºçä½ç½®ARFameï¼ç¨æ·å¯ä»¥éè¿è¿ä¸ªframeå°4x4ç©éµä¸çåæ 转æ¢ä¸º3Dç³»ç»ç¸æºåæ - -## weex-ar -ARKitå¨wwdcä¸å¸¦æ¥çéæ¼ææï¼æéè¿weexæ件çæ¹å¼å°ARKitè½åéä¼ å°Weexï¼è®©ç¨æ·å¨weexä¸ä¹ç¬¬ä¸æ¶é´ä½éªå°NativeçARææ -ææçdemo以åæºç æå·²ç»å¼æºï¼åæ¥å°[github](https://github.com/kfeagle/weex-ar)ï¼ç¨æ·å¨èªå·±å·¥ç¨ä¾èµå³å¯ä½¿ç¨ - -### å¨ç°å®ä¸ç渲æä¸ä¸ª3Dçèæç©ä½ -``` -this.$refs['scene'].addNode({ - name:'color', - width:0.1, - height:0.1, - length:0.1, - chamferRadius:0, - vector:{ - x:0.1, - y:0.1, - z:-0.5 - }, - contents:{ - type:'color', - name:'red' - } - }); -``` -Weexå¨compnonentä¸å¢å addNodeæ¹æ³ï¼ç¨æ·å¯ä»¥è®¾ç½®å¥½èç¹çåæ°ï¼ç¶åå°±ä¼æ建ä¸ä¸ªèæç©ä½ -- ææ - - ![x](http://gitlab.alibaba-inc.com/Jerry/amapdemo/raw/master/ar/1.gif) - -### 交äºæ¯æ -å½native触åäºç¹å»äºä»¶ï¼ä¼åjsfmåéç¹å»ä½ç½®ä¿¡æ¯ - -``` --(void)tapped:(UITapGestureRecognizer *)recognizer -{ - SCNView *sceneView = (SCNView *)recognizer.view ; - CGPoint touchLocation = [recognizer locationInView:sceneView]; - [self fireEvent:@"tap" params:@{@"touchLocation":@{@"x":@(touchLocation.x),@"y":@(touchLocation.y)}}]; -} -``` -å½VUEæ¥æ¶å°ç¸å ³ä¿¡æ¯ï¼ä¼å¤çä½ç½®ä¿¡æ¯ï¼ç¶åæ´æ°èç¹ -``` -tap:function (event) { - this.index = this.index+1; - if(this.index>3){ - this.index = 0; - } - var color = 'red'; - if(this.index == 1){ - color = 'blue'; - } - if(this.index == 2){ - color = 'green'; - } - if(this.index == 3){ - color = 'yellow'; - } - this.$refs['scene'].updateNode({ - name:'color', - x:event.touchLocation.x, - y:event.touchLocation.y, - color:color - }) - } -``` -- ææ - - ![x](http://gitlab.alibaba-inc.com/Jerry/amapdemo/raw/master/ar/tap.gif) - -### 碰æ游æ -设置èç¹çmaskï¼éè¿arkitç代çå°±å¯ä»¥æ£æµç¢°æäº -``` -node.physicsBody.categoryBitMask= [self getMask:[WXConvert NSInteger:[options objectForKey:@"categoryBitMask"]]]; - node.physicsBody.contactTestBitMask= [self getMask:[WXConvert NSInteger:[options objectForKey:@"contactTestBitMask"]]]; -``` -å½ç¢°æåçæ¶åï¼ä¼éè¿physicsWorld:(SCNPhysicsWorld *)world didBeginContact:(SCNPhysicsContact *)contact代çè·åå°èç¹çä¿¡æ¯ï¼weexå°ç¸å ³ä¿¡æ¯åéå°jsfm -vueè·åå å ³èç¹å¯ä»¥å é¤èç¹ï¼å¢åèç¹ï¼ä»èå®æ碰æçå¤ç -``` -contact:function (event) { - if(event.nodes.nodeA.mask == 0 || event.nodes.nodeB.mask == 0 ){ - - this.isAdd = false; - this.$refs['scene'].removeNode(event.nodes.nodeA.name); - this.$refs['scene'].removeNode(event.nodes.nodeB.name); - - } - - } -``` - -- ææ - - - ![x](http://gitlab.alibaba-inc.com/Jerry/amapdemo/raw/master/ar/game.gif) \ No newline at end of file