You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ha...@apache.org on 2018/03/06 10:21:18 UTC
[3/3] incubator-weex-site git commit: integrate the browsersync plugin
integrate the browsersync plugin
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/commit/60fc3022
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/tree/60fc3022
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/diff/60fc3022
Branch: refs/heads/master
Commit: 60fc30223a19816abaf3b8ebac9ba7c1fd24c64d
Parents: 6f74ff0
Author: Hanks <zh...@gmail.com>
Authored: Tue Mar 6 18:20:57 2018 +0800
Committer: Hanks <zh...@gmail.com>
Committed: Tue Mar 6 18:20:57 2018 +0800
----------------------------------------------------------------------
README.md | 9 +-
_config.yml | 5 +
_config_cn.yml | 5 +
package-lock.json | 3367 +++++++++++++++++++++++++++++++++++++++++-------
package.json | 3 +-
5 files changed, 2898 insertions(+), 491 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/60fc3022/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index eef4d15..c99518d 100644
--- a/README.md
+++ b/README.md
@@ -7,14 +7,19 @@ This is the source code of Weex official website.
## Develop
-First you should install the [Node.js](https://nodejs.org/), then run:
+First you should install the [Node.js](https://nodejs.org/), and install dependencies:
```bash
npm install
+```
+
+After that, you can start a web server to preview the website on your local machine.
+
+```bash
npm run server
```
-It will start a server at `http://localhost:4000`.
+It will start a web server at `http://localhost:4000`. The pages will be updated automatically once you save the corresponding source file.
## Contribute
http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/60fc3022/_config.yml
----------------------------------------------------------------------
diff --git a/_config.yml b/_config.yml
index de23f5a..f4e5290 100644
--- a/_config.yml
+++ b/_config.yml
@@ -68,6 +68,11 @@ permalink_defaults:
permalink: :lang/:title/
new_post_name: :lang/:title.md
+browsersync:
+ logLevel: "warn"
+ ghostMode:
+ scroll: true
+
# Directory
source_dir: source
public_dir: public
http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/60fc3022/_config_cn.yml
----------------------------------------------------------------------
diff --git a/_config_cn.yml b/_config_cn.yml
index 5c430a6..82c8f13 100644
--- a/_config_cn.yml
+++ b/_config_cn.yml
@@ -66,6 +66,11 @@ permalink_defaults:
permalink: :lang/:title/
new_post_name: :lang/:title.md
+browsersync:
+ logLevel: "warn"
+ ghostMode:
+ scroll: true
+
# Directory
source_dir: source
public_dir: public