1
0
forked from nixcn/nixcn-web
Files
nixcn-web/astro.config.mjs
Noa Virellia d99b12bcbb feat(astro-config): set social link to the source code of the docs
- Pointed the social link to git.sne.moe:nixcn-web
- Changed the social link icon to distinguish from GitHub

Signed-off-by: Noa Virellia <noa@requiem.garden>
2025-12-09 09:44:21 +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: 'seti:git',
label: 'Source',
href: 'https://git.sne.moe/sugar/nixcn-web',
},
],
sidebar: [],
plugins: [starlightThemeGalaxy()],
}),
mdx(),
],
});