Files
nixcn-web/astro.config.mjs
Noa Virellia 464f416f91 feat(astro-config): set site title to 'Nix CN'
- Per Sizhe 'prince213' Zhao:

> 祈園のあ | 天生骄傲, [2025/12/9 08:59]
> 提问 社群实体是叫Nix CN还是Nix/NixOS CN还是NixOS CN比较好(

> Eero Tang, [2025/12/9 08:59]
> Nix CN 吧(

Signed-off-by: Noa Virellia <noa@requiem.garden>
2025-12-09 09:42:27 +08:00

41 lines
1.1 KiB
JavaScript

// @ts-check
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import starlightThemeGalaxy from 'starlight-theme-galaxy';
import mdx from '@astrojs/mdx';
// https://astro.build/config
export default defineConfig({
integrations: [
starlight({
title: 'Nix CN',
defaultLocale: 'root',
logo: {
light: './src/assets/nix-cn.svg',
dark: './src/assets/nix-cn-dark.svg',
replacesTitle: true,
},
locales: {
root: {
label: '简体中文',
lang: 'zh-CN',
},
en: {
label: 'English',
},
},
social: [
{
icon: 'github',
label: 'GitHub',
href: 'https://github.com/withastro/starlight',
},
],
sidebar: [],
plugins: [starlightThemeGalaxy()],
}),
mdx(),
],
});