mirror of
https://github.com/gibbok/typescript-book
synced 2024-11-16 19:47:27 +01:00
38 lines
1.1 KiB
JavaScript
38 lines
1.1 KiB
JavaScript
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' },
|
|
},
|
|
],
|
|
}),
|
|
],
|
|
});
|