-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.mjs
More file actions
82 lines (81 loc) · 2.14 KB
/
astro.config.mjs
File metadata and controls
82 lines (81 loc) · 2.14 KB
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
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
export default defineConfig({
site: 'https://flightng.com',
integrations: [
starlight({
title: 'FlightNG',
description: '下一代飞控固件 | Next-generation flight controller firmware',
logo: {
light: './src/assets/logo-light.svg',
dark: './src/assets/logo-dark.svg',
replacesTitle: false,
},
social: {
github: 'https://github.com/flightng',
},
defaultLocale: 'zh',
locales: {
zh: {
label: '简体中文',
},
en: {
label: 'English',
},
},
sidebar: [
{
label: 'Fidelity X 固件',
translations: { en: 'Fidelity X Firmware' },
items: [
{ slug: 'fydelix' },
{ slug: 'fydelix/getting-started' },
{ slug: 'fydelix/features' },
{ slug: 'fydelix/supported-boards' },
{ slug: 'fydelix/flashing' },
{
label: '配置指南',
translations: { en: 'Configuration' },
items: [
{ slug: 'fydelix/configuration' },
{ slug: 'fydelix/configuration/pid-tuning' },
{ slug: 'fydelix/configuration/rate-profiles' },
{ slug: 'fydelix/configuration/failsafe' },
],
},
{ slug: 'fydelix/cli-reference' },
],
},
{
label: '其他项目',
translations: { en: 'Other Projects' },
items: [
{ slug: 'atbetaflight' },
{ slug: 'atbetaflight/tutorial' },
],
},
{
label: '赞助',
translations: { en: 'Sponsor' },
slug: 'sponsor',
},
],
customCss: [
'./src/styles/custom.css',
],
head: [
{
tag: 'meta',
attrs: {
name: 'theme-color',
content: '#6366f1',
},
},
],
components: {
Hero: './src/components/Hero.astro',
},
credits: false,
}),
],
});