-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvuepress.config.ts
64 lines (54 loc) · 1.22 KB
/
vuepress.config.ts
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
import { viteBundler } from '@vuepress/bundler-vite'
import { defineUserConfig } from 'vuepress'
import { searchProPlugin } from 'vuepress-plugin-search-pro'
import ESDNGuide from './plugins/guide'
import theme from './vuepress.theme'
const base = (() => {
const pagePath: Record<string, '/' | `/${string}/`> = {
default: '/',
gitlab: '/extreme-starry/document/esdn/',
}
return pagePath[process.argv[4]] ?? pagePath.default
})()
console.log(`Base is: ${base}`)
export default defineUserConfig({
base,
bundler: viteBundler(),
head: [
[
'link',
{
rel: 'icon',
href: '/logo.png',
},
],
],
locales: {
'/': {
lang: 'zh-CN',
title: '星辰之光文档网络',
description: '星辰之光文档网络',
},
'/en/': {
lang: 'en-US',
title: 'Extreme Starry Document Network',
description: 'Extreme Starry Document Network',
},
},
theme,
temp: '.temp',
cache: '.cache',
public: 'public',
dest: 'dist',
// Enable it with pwa
// shouldPrefetch: false,
plugins: [
searchProPlugin({
// 索引全部内容
indexContent: true,
}),
ESDNGuide({
includes: ['/FAQ/', '/QuickStart/'],
}),
],
})