Skip to content

Commit fd9c3bd

Browse files
committed
docs: update
1 parent e2b7b97 commit fd9c3bd

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

docs/_sidebar.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
- [Custom navbar](/custom-navbar)
55
- [Cover page](/cover)
66

7-
- Configuration
7+
- Customization
88
- [Configuration](/configuration)
99
- [Themes](/themes)
1010
- [Using plugins](/plugins)

docs/cover.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Cover
22

3-
Activate the cover feature by setting `coverpage`. The detail in [Configuration#coverpage](zh-cn/configuration#coverpage).
3+
Activate the cover feature by setting `coverpage`. The detail in [Configuration#coverpage](configuration#coverpage).
44

55
## Basic usage
66

docs/vue.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Load the Vue in `index.html`.
1313
```
1414

1515
Then you can immediately write Vue code at Markdown file.
16-
`new Vue({ el: 'main' })` script is executed by default to create instance.
16+
`new Vue({ el: '#main' })` script is executed by default to create instance.
1717

1818
*README.md*
1919

@@ -44,7 +44,7 @@ You can manually initialize a Vue instance.
4444

4545
<script>
4646
new Vue({
47-
el: 'main',
47+
el: '#main',
4848
data: { msg: 'Vue' }
4949
})
5050
</script>

docs/zh-cn/_sidebar.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
- [定制导航栏](zh-cn/custom-navbar)
55
- [封面](zh-cn/cover)
66

7-
- 配置
7+
- 定制化
88
- [配置项](zh-cn/configuration)
99
- [主题](zh-cn/themes)
1010
- [使用插件](zh-cn/plugins)

docs/zh-cn/vue.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<script src="//unpkg.com/docsify"></script>
1313
```
1414

15-
接着就可以愉快地在 Markdown 里写 Vue 了。默认会执行 `new Vue({ el: 'main' })` 创建示例。
15+
接着就可以愉快地在 Markdown 里写 Vue 了。默认会执行 `new Vue({ el: '#main' })` 创建示例。
1616

1717
*README.md*
1818

@@ -43,7 +43,7 @@
4343

4444
<script>
4545
new Vue({
46-
el: 'main',
46+
el: '#main',
4747
data: { msg: 'Vue' }
4848
})
4949
</script>

src/core/render/index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ function renderMain (html) {
2828
// execute script
2929
this.config.executeScript && executeScript()
3030

31-
if (!this.config.executeScript
32-
&& typeof window.Vue !== 'undefined'
33-
&& !executeScript()) {
31+
if (!this.config.executeScript &&
32+
typeof window.Vue !== 'undefined' &&
33+
!executeScript()) {
3434
window.__EXECUTE_RESULT__ = new window.Vue().$mount('#main')
3535
}
3636

0 commit comments

Comments
 (0)