-
Notifications
You must be signed in to change notification settings - Fork 531
/
Copy pathastro.config.mjs
38 lines (37 loc) · 1.05 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
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
// https://astro.build/config
export default defineConfig({
site: 'https://gibbok.github.io',
base: '/typescript-book',
build: {
assets: 'app_assets',
},
integrations: [
starlight({
title: 'TypeScript Book',
customCss: ['./src/styles/custom.css'],
social: {
github: 'https://github.com/gibbok/typescript-book',
'x.com': 'https://twitter.com/gibbok_coding',
},
defaultLocale: 'root',
locales: {
root: {
label: 'English',
lang: 'en',
},
'zh-cn': {
label: '简体中文',
lang: 'zh-CN',
},
},
sidebar: [
{
label: 'TypeScript Book',
autogenerate: { directory: 'book' },
},
],
}),
],
});