forked from NAOSI-DLUT/dut-manual
-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
49 lines (48 loc) · 1.02 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
// @ts-check
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
// https://astro.build/config
export default defineConfig({
site: 'https://man.naosi.org',
integrations: [
starlight({
title: 'DUTManual',
logo: {
src: './src/assets/logo.svg',
replacesTitle: true,
},
locales: {
root: {
label: '简体中文',
lang: 'zh-CN',
}
},
components: {
Footer: './src/components/Footer.astro',
},
editLink: {
baseUrl: 'https://github.com/NAOSI-DLUT/dut-manual/edit/main/'
},
lastUpdated: true,
social: {
github: 'https://github.com/NAOSI-DLUT/dut-manual',
},
sidebar: [{
label: '引言',
slug: 'intro'
}, {
label: '新生入学',
autogenerate: { directory: 'freshman' },
}, {
label: "校园生活",
autogenerate: { directory: 'life' },
}, {
label: '课程指南',
autogenerate: { directory: 'course' },
}, {
label: '飞跃手册',
autogenerate: { directory: 'leap' },
}],
}),
],
});