Skip to content

Commit 03d6511

Browse files
author
Bart Ledoux
committed
docs: layout option
1 parent 05627c4 commit 03d6511

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,26 @@ In your markdown file just add a `live` flag to your fenced code blocks.
3434

3535
## Options
3636

37+
### layout
38+
39+
Path to a custom layout for the vue-live instances
40+
41+
#### default
42+
43+
`vuepress-plugin-live/layout.vue`
44+
45+
#### example
46+
47+
```js
48+
//.vuepress/config.js
49+
module.exports = {
50+
//...
51+
plugins: [
52+
["live", { layout: path.resolve(__dirname, "../VueLiveLayout.vue") }],
53+
],
54+
};
55+
```
56+
3757
### noSsr
3858

3959
Avoid server side rendering the components in components if they are not ssr ready. Remember that vuepress build pre-compiles the html pages you need.

0 commit comments

Comments
 (0)