docs: update
This commit is contained in:
parent
e2b7b976cf
commit
fd9c3bd19d
6 changed files with 10 additions and 10 deletions
|
|
@ -4,7 +4,7 @@
|
||||||
- [Custom navbar](/custom-navbar)
|
- [Custom navbar](/custom-navbar)
|
||||||
- [Cover page](/cover)
|
- [Cover page](/cover)
|
||||||
|
|
||||||
- Configuration
|
- Customization
|
||||||
- [Configuration](/configuration)
|
- [Configuration](/configuration)
|
||||||
- [Themes](/themes)
|
- [Themes](/themes)
|
||||||
- [Using plugins](/plugins)
|
- [Using plugins](/plugins)
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# Cover
|
# 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
|
## Basic usage
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ Load the Vue in `index.html`.
|
||||||
```
|
```
|
||||||
|
|
||||||
Then you can immediately write Vue code at Markdown file.
|
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*
|
*README.md*
|
||||||
|
|
||||||
|
|
@ -44,7 +44,7 @@ You can manually initialize a Vue instance.
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
new Vue({
|
new Vue({
|
||||||
el: 'main',
|
el: '#main',
|
||||||
data: { msg: 'Vue' }
|
data: { msg: 'Vue' }
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
- [定制导航栏](zh-cn/custom-navbar)
|
- [定制导航栏](zh-cn/custom-navbar)
|
||||||
- [封面](zh-cn/cover)
|
- [封面](zh-cn/cover)
|
||||||
|
|
||||||
- 配置
|
- 定制化
|
||||||
- [配置项](zh-cn/configuration)
|
- [配置项](zh-cn/configuration)
|
||||||
- [主题](zh-cn/themes)
|
- [主题](zh-cn/themes)
|
||||||
- [使用插件](zh-cn/plugins)
|
- [使用插件](zh-cn/plugins)
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
<script src="//unpkg.com/docsify"></script>
|
<script src="//unpkg.com/docsify"></script>
|
||||||
```
|
```
|
||||||
|
|
||||||
接着就可以愉快地在 Markdown 里写 Vue 了。默认会执行 `new Vue({ el: 'main' })` 创建示例。
|
接着就可以愉快地在 Markdown 里写 Vue 了。默认会执行 `new Vue({ el: '#main' })` 创建示例。
|
||||||
|
|
||||||
*README.md*
|
*README.md*
|
||||||
|
|
||||||
|
|
@ -43,7 +43,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
new Vue({
|
new Vue({
|
||||||
el: 'main',
|
el: '#main',
|
||||||
data: { msg: 'Vue' }
|
data: { msg: 'Vue' }
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -28,9 +28,9 @@ function renderMain (html) {
|
||||||
// execute script
|
// execute script
|
||||||
this.config.executeScript && executeScript()
|
this.config.executeScript && executeScript()
|
||||||
|
|
||||||
if (!this.config.executeScript
|
if (!this.config.executeScript &&
|
||||||
&& typeof window.Vue !== 'undefined'
|
typeof window.Vue !== 'undefined' &&
|
||||||
&& !executeScript()) {
|
!executeScript()) {
|
||||||
window.__EXECUTE_RESULT__ = new window.Vue().$mount('#main')
|
window.__EXECUTE_RESULT__ = new window.Vue().$mount('#main')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue