Skip to content

Commit 1bc712c

Browse files
author
Barthelemy Ledoux
committed
docs: add custom-layout example
1 parent 4ce279c commit 1bc712c

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

docs/.vuepress/config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ module.exports = {
1111
sidebar: ["/", "/Install.md"]
1212
},
1313
plugins: [
14-
[require("../../index")],
14+
[
15+
require("../../index"),
16+
{
17+
layout: path.resolve(__dirname, "../custom-layout")
18+
}
19+
],
1520
[
1621
"@vuepress/register-components",
1722
{

docs/custom-layout.vue

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<template functional>
2+
<div class="preview-code">
3+
<div class="preview block">
4+
<slot name="preview"></slot>
5+
</div>
6+
<div class="editor block">
7+
<slot name="editor"></slot>
8+
</div>
9+
</div>
10+
</template>
11+
12+
<style>
13+
.preview-code {
14+
border: 3px dashed green;
15+
}
16+
</style>

0 commit comments

Comments
 (0)