-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathastro.config.mjs
132 lines (131 loc) · 2.82 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
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: "Commands AutoCompletions",
link: '/starts/completions/',
translations:{
"zh-CN":"命令行自动补全",
"en":"Commands AutoCompletions",
},
},
],
},
{
label:"Guides",
translations:{
"zh-CN":"指南",
"en":"Guides",
},
items:[
{
label:"TUIDocs",
link:"/guides/tutorial/",
translations:{
"zh-CN":"TUI文档",
"en":"Docs For TUI",
},
},
{
label:"CLIDocs",
link:"/guides/cli/",
translations:{
"zh-CN":"CLI文档",
"en":"Docs For CLI",
},
},
{
label:"CondaDocs",
link:"/guides/conda/",
translations:{
"zh-CN":"Conda相关",
"en":"Conda Related",
},
},
{
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(),
],
});