From fd9c3bd19d99ba17f0cbb8e987746cbc9d8a33a1 Mon Sep 17 00:00:00 2001 From: "qingwei.li" Date: Sat, 18 Feb 2017 19:36:28 +0800 Subject: [PATCH] docs: update --- docs/_sidebar.md | 2 +- docs/cover.md | 2 +- docs/vue.md | 4 ++-- docs/zh-cn/_sidebar.md | 2 +- docs/zh-cn/vue.md | 4 ++-- src/core/render/index.js | 6 +++--- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/_sidebar.md b/docs/_sidebar.md index 76261f0de..37534268e 100644 --- a/docs/_sidebar.md +++ b/docs/_sidebar.md @@ -4,7 +4,7 @@ - [Custom navbar](/custom-navbar) - [Cover page](/cover) -- Configuration +- Customization - [Configuration](/configuration) - [Themes](/themes) - [Using plugins](/plugins) diff --git a/docs/cover.md b/docs/cover.md index 7054a06b2..2a538e75d 100644 --- a/docs/cover.md +++ b/docs/cover.md @@ -1,6 +1,6 @@ # Cover -Activate the cover feature by setting `coverpage`. The detail in [Configuration#coverpage](zh-cn/configuration#coverpage). +Activate the cover feature by setting `coverpage`. The detail in [Configuration#coverpage](configuration#coverpage). ## Basic usage diff --git a/docs/vue.md b/docs/vue.md index 40b98fd47..27c420412 100644 --- a/docs/vue.md +++ b/docs/vue.md @@ -13,7 +13,7 @@ Load the Vue in `index.html`. ``` Then you can immediately write Vue code at Markdown file. -`new Vue({ el: 'main' })` script is executed by default to create instance. +`new Vue({ el: '#main' })` script is executed by default to create instance. *README.md* @@ -44,7 +44,7 @@ You can manually initialize a Vue instance. diff --git a/docs/zh-cn/_sidebar.md b/docs/zh-cn/_sidebar.md index e911c388c..952a6fdc6 100644 --- a/docs/zh-cn/_sidebar.md +++ b/docs/zh-cn/_sidebar.md @@ -4,7 +4,7 @@ - [定制导航栏](zh-cn/custom-navbar) - [封面](zh-cn/cover) -- 配置 +- 定制化 - [配置项](zh-cn/configuration) - [主题](zh-cn/themes) - [使用插件](zh-cn/plugins) diff --git a/docs/zh-cn/vue.md b/docs/zh-cn/vue.md index 37dd8079b..3c811c427 100644 --- a/docs/zh-cn/vue.md +++ b/docs/zh-cn/vue.md @@ -12,7 +12,7 @@ ``` -接着就可以愉快地在 Markdown 里写 Vue 了。默认会执行 `new Vue({ el: 'main' })` 创建示例。 +接着就可以愉快地在 Markdown 里写 Vue 了。默认会执行 `new Vue({ el: '#main' })` 创建示例。 *README.md* @@ -43,7 +43,7 @@ diff --git a/src/core/render/index.js b/src/core/render/index.js index 5fcaf1d4f..4a744bd63 100644 --- a/src/core/render/index.js +++ b/src/core/render/index.js @@ -28,9 +28,9 @@ function renderMain (html) { // execute script this.config.executeScript && executeScript() - if (!this.config.executeScript - && typeof window.Vue !== 'undefined' - && !executeScript()) { + if (!this.config.executeScript && + typeof window.Vue !== 'undefined' && + !executeScript()) { window.__EXECUTE_RESULT__ = new window.Vue().$mount('#main') }