-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.js
101 lines (95 loc) · 2.25 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
const path = require('path');
const basePath = process.env.VUEPRESS_BASE || '/';
module.exports = {
theme: "cosmos",
title: "Vite: Zero-Fee Blockchain for the World's Decentralized Economy",
base: basePath,
locales: {
"/": {
lang: "en-US"
},
},
head: [
['link', { rel: 'icon', href: 'https://vite.org/icon.png' }]
],
plugins: [
["@vite/vuepress-plugin-mathjax"],
[
"sitemap",
{
hostname: "https://docs.vite.org"
}
],
[require('./plugins/code-group.js')]
],
themeConfig: {
repo: "vitelabs/vuilder-docs",
docsRepo: "vitelabs/vuilder-docs",
editLinks: true,
custom: true,
logo: {
src: path.join(basePath, '/logo.svg'),
},
algolia: {
id: "G2DPJ8OLAQ",
key: "27bf3768169db2b8b16ff4be4ebedf7e",
index: "docs-vite"
},
topbar: {
banner: false
},
sidebar: {
auto: true
},
footer: {
logo: path.join(basePath, "/logo.svg"),
textLink: {
text: "vite.org",
url: "https://vite.org"
},
services: [
{
service: "twitter",
url: "https://twitter.com/vitelabs"
},
{
service: "medium",
url: "https://medium.com/vitelabs"
},
{
service: "telegram",
url: "https://t.me/vite_ann"
},
{
service: "discord",
url: "https://discord.com/invite/CsVY76q"
},
{
service: "github",
url: "https://github.com/vitelabs"
}
],
smallprint: `© ${new Date().getFullYear()} Vite Labs.`,
links: [
{
title: "Community",
children: [
{
title: "Blog",
url: "https://medium.com/vitelabs"
},
]
},
{
title: "Community",
children: [
{
title: "Contributing to the docs",
url: "https://github.com/vitelabs/vite-docs/tree/master/DOCS_README.md"
},
]
}
]
}
},
};