forked from gvcgo/vmrdocs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
108 lines (107 loc) · 2.29 KB
/
astro.config.mjs
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
102
103
104
105
106
107
108
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import solidJs from "@astrojs/solid-js";
import robotsTxt from "astro-robots-txt";
import sitemap from "@astrojs/sitemap";
// https://astro.build/config
export default defineConfig({
site: 'https://vdocs.vmr.us.kg',
// base:"/vmrdocs",
integrations: [
starlight({
// site: 'https://vmrdocs.github.io',
title: 'Docs',
title: {
en: 'Docs',
'zh-CN': '文档',
},
favicon: './src/assets/favicon.svg',
logo: {
light: './src/assets/vmr_logo.png',
dark: './src/assets/vmr_logo_white.png',
},
social: {
github: 'https://github.com/gvcgo/version-manager',
},
sidebar: [
{
label: 'Start Here',
translations:{
"zh-CN":"这里开始",
"en":"Start Here",
},
items: [
// Each item here is one entry in the navigation menu.
{
label: 'Quick Start',
link: '/starts/quickstart/',
translations:{
"zh-CN":"快速开始",
"en":"Quick Start",
}
},
{
label: 'Core Concepts',
link: '/starts/concepts/',
translations:{
"zh-CN":"核心概念",
"en":"Core Concepts",
}
},
{
label: "What's Supported",
link: '/starts/sdklist/',
translations:{
"zh-CN":"支持哪些SDK?",
"en":"What's Supported?",
},
},
],
},
{
label:"Guides",
translations:{
"zh-CN":"指南",
"en":"Guides",
},
items:[
{
label:"Documents",
link:"/guides/tutorial/",
translations:{
"zh-CN":"文档",
"en":"Documents",
},
},
{
label:"FAQs",
link:"/guides/faq/",
translations:{
"zh-CN":"常见问题",
"en":"FAQs",
},
},
{
label:"For Contributors",
link:"/guides/developers/",
translations:{
"zh-CN":"贡献者指南",
"en":"For Contributors",
},
},
]
},
],
defaultLocale: 'root',
locales:{
root: { label: 'English', lang: 'en' },
"zh-cn": {
label:"简体中文",
lang:"zh-CN",
},
},
customCss: ['./src/assets/landing.css'],
}),
solidJs(), robotsTxt(), sitemap(),
],
});