生成海报3
# 在aurora主题中,加入看板娘教程
最终效果
TIP
如果你还不会使用插件,请先看一下这篇文章
# 下载依赖
因为这个需要使用到插件,所以需要先下载依赖,请在命令行窗口中,执行下面命令
npm install -D vuepress-plugin-live2d-plus
1
# 使用
当下载好之后,请到docs/.vuepress/config.js
文件中,加入此插件
没有这个
docs/.vuepress/config.js
文件?这是一个路径...
进入到config.js
文件内,将下面内容,添加到对应位置
plugins: [
['vuepress-plugin-live2d-plus', {
enable: true,
model: {
url: 'https://cdn.jsdelivr.net/gh/qsyyke/vscode-live2d-models/model-library/haru02/haru02.model.json'
},
display: {
position: 'left',
width: '135px',
height: '300px',
xOffset: '5%',
yOffset: '5%'
},
mobile: {
show: true
},
react: {
opacity: 0.8
}
}
],
]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
什么是对应位置?
最终
const { themeConfig } = require("./themeConfig");
module.exports = {
plugins: [
['vuepress-plugin-live2d-plus', {
enable: true,
model: {
url: 'https://cdn.jsdelivr.net/gh/qsyyke/vscode-live2d-models/model-library/haru02/haru02.model.json'
},
display: {
position: 'left',
width: '135px',
height: '300px',
xOffset: '5%',
yOffset: '5%'
},
mobile: {
show: true
},
react: {
opacity: 0.8
}
}
],
],
theme: 'aurora',
title: '一款简洁.美观.功能强大的vuepress主题',
themeConfig: {
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# 选择模型
进入这里选择自己喜欢的模型
设置好之后,重新运行npm run dev
即可
TIP
如果你需要修改显示的位置,请修改一下下面配置,这个根据你自己的需要,自己修改,都是css样式
display: {
position: 'left',
width: '135px',
height: '300px',
xOffset: '5%',
yOffset: '5%'
},
1
2
3
4
5
6
7
2
3
4
5
6
7



古茗
¥ 10

烧奶珍珠奶茶
¥ 9

酸奶
¥ 4

其他
¥ 自定义
冰糖指蜂蜜
¥ 10
推荐阅读
点击评论
文章目录
最新文章
公告
