-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.ts
101 lines (100 loc) · 3.08 KB
/
astro.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
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
import starlight from '@astrojs/starlight';
import {defineConfig} from 'astro/config';
// https://astro.build/config
export default defineConfig({
site: 'https://lyricify.app',
integrations: [
starlight({
title: 'Lyricify',
logo: {
src: '/public/Lyricify-icon.png',
},
favicon: 'favicon.ico',
social: {
github: 'https://github.com/WXRIW/Lyricify-App',
},
head: [
{
tag: 'meta',
attrs: {
name: 'keywords',
content:
'Lyricify, Spotify, lyrics, Apple Music, style, customization, ' +
'声破天, 歌词, 逐字, 滚动歌词, 苹果音乐, 动画, 自定义, 歌词软件',
},
},
{
tag: 'meta',
attrs: {
charset: 'UTF-8'
}
},
{
tag: 'meta',
attrs: {
name: 'viewport',
content: 'width=device-width, initial-scale=1.0',
},
},
],
sidebar: [
{
label: 'Get started',
autogenerate: {directory: 'get-started'},
translations: {
'zh-CN': '快速上手',
},
},
{
label: 'FAQ',
autogenerate: {directory: 'faq'},
translations: {
'zh-CN': '常见问题',
},
},
{
label: 'Lyricify Mobile',
items: [
// To be updated
],
},
{
label: 'i18n Guide',
translations: {
'zh-CN': '本站 i18n 指导',
},
link: '/i18n-instruction',
badge: {
text: 'NEW',
variant: 'default',
},
},
],
customCss: [
'./src/styles/custom.css',
'./src/fonts/fontface.css',
'./src/styles/theme.css',
],
components: {
Footer: './src/components/rewrite/Footer.astro',
Hero: './src/components/rewrite/Hero.astro',
},
defaultLocale: 'root',
locales: {
root: {
label: 'English',
lang: 'en',
},
'zh-cn': {
label: '简体中文',
lang: 'zh-CN',
},
},
plugins: [],
}),
],
trailingSlash: 'always',
build: {
assets: '_asset',
},
});