-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathastro.config.mjs
73 lines (72 loc) · 1.79 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
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import tailwind from '@astrojs/tailwind';
// https://astro.build/config
export default defineConfig({
site: 'https://twinnydotdev.github.io',
base: '/twinny-docs',
integrations: [
starlight({
title: 'twinny',
defaultLocale: 'root',
locales: {
root: { label: 'English', lang: 'en' },
'zh-cn': { label: '简体中文', lang: 'zh-CN' },
},
social: {
github: 'https://github.com/twinnydotdev/twinny',
'x.com': 'https://x.com/twinnydotdev',
},
sidebar: [
{
label: '/',
items: [
{
label: 'Quick start', link: '/general/quick-start',
translations: {
'zh-CN': '快速开始'
}
},
{ label: 'Inference providers', link: '/general/providers',
translations: {
'zh-CN': '推理提供者'
}
},
{ label: 'Supported models', link: '/general/supported-models',
translations: {
'zh-CN': '支持的模型'
}
},
{ label: 'Chat', link: '/general/chat',
translations: {
'zh-CN': '对话'
}
},
{ label: 'Fill in middle', link: '/general/fill-in-middle',
translations: {
'zh-CN': '自动补全'
}
},
{ label: 'Keyboard shortcuts', link: '/general/keyboard-shortcuts',
translations: {
'zh-CN': '键盘快捷键'
}
},
{ label: 'Symmetry Network', link: '/general/symmetry',
translations: {
'zh-CN': 'Symmetry网络'
}
},
{ label: 'Support twinny', link: '/general/support-twinny',
translations: {
'zh-CN': '支持twinny'
}
},
],
},
],
customCss: ['./src/tailwind.css'],
}),
tailwind({ applyBaseStyles: false }),
],
});