Files
moeka-project/docs/astro.config.ts
T
2025-03-05 15:44:52 +08:00

39 lines
1.2 KiB
TypeScript

import starlight from '@astrojs/starlight'
import { defineConfig } from 'astro/config'
// https://astro.build/config
export default defineConfig({
integrations: [
starlight({
title: 'Project Airi',
logo: {
light: './src/assets/logo.svg',
dark: './src/assets/logo-dark.svg',
},
social: {
github: 'https://github.com/moeru-ai/airi',
},
sidebar: [
{
label: 'Guides',
autogenerate: { directory: 'guides' },
},
{
label: 'References',
autogenerate: { directory: 'references' },
},
],
head: [
{ tag: 'link', attrs: { rel: 'icon', type: 'image/svg+xml', href: '/favicon.svg', sizes: 'any' } },
{ tag: 'link', attrs: { rel: 'shortcut icon', href: '/favicon.ico' } },
{ tag: 'link', attrs: { rel: 'apple-touch-icon', sizes: '180x180', href: '/apple-touch-icon.png' } },
{ tag: 'meta', attrs: { name: 'apple-mobile-web-app-title', content: 'Airi' } },
{ tag: 'link', attrs: { ref: 'manifest', href: '/site.webmanifest' } },
],
customCss: [
'./src/styles/custom.css',
],
}),
],
})