-
Notifications
You must be signed in to change notification settings - Fork 23
/
config.js
79 lines (68 loc) · 1.53 KB
/
config.js
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
const path = require('path')
module.exports = {
dest: 'docs-dist',
locales: {
'/': {
lang: 'en-US',
title: 'Vue Showdown',
description: 'Use showdown.js in Vue',
},
'/zh/': {
lang: 'zh-CN',
title: 'Vue Showdown',
description: '在 Vue 中快速使用 showdown.js',
},
},
head: [
['link', { rel: 'icon', href: `/logo.png` }],
],
plugins: {
'@vuepress/plugin-back-to-top': true,
'@vuepress/plugin-pwa': {
serviceWorker: true,
updatePopup: true
},
},
themeConfig: {
repo: 'meteorlxy/vue-showdown',
editLinks: true,
docsDir: 'docs',
locales: {
'/': {
label: 'English',
selectText: 'Languages',
editLinkText: 'Edit this page on GitHub',
lastUpdated: 'Last Updated',
nav: [
{
text: 'Guide',
link: '/guide/',
},
{
text: 'Playground',
link: '/playground/',
},
],
},
'/zh/': {
label: '简体中文',
selectText: '选择语言',
editLinkText: '在 GitHub 上编辑此页',
lastUpdated: '上次更新',
nav: [
{
text: '指南',
link: '/zh/guide/',
},
{
text: 'Playground',
link: '/zh/playground/',
},
],
},
},
},
chainWebpack (config) {
config.resolve.alias.set('vue-showdown$', path.resolve(__dirname, '../../dist/vue-showdown.esm.js'))
}
}