Files
nixcn-web/astro.config.mjs
Noa Virellia f31c29da84 feat(astro/config): add navigation link to Nix CN community
- Added starlight-ui-tweak plugin
- Added navigation link to Nix CN community

Signed-off-by: Noa Virellia <noa@requiem.garden>
2025-12-12 16:24:10 +08:00

54 lines
1.6 KiB
JavaScript

// @ts-check
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import mdx from '@astrojs/mdx';
import starlightUITweaks from 'starlight-ui-tweaks';
// https://astro.build/config
export default defineConfig({
site: 'https://meetup.nixos-cn.org',
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://github.com/NixOS-CN/nixcn-web',
},
],
sidebar: ['meetup-2-guide', 'badge-customization'],
plugins: [
starlightUITweaks({
navbarLinks: [
{ label: 'Nix CN 社区 ↗', href: 'https://nixos-cn.org/' },
],
locales: {
en: {
navbarLinks: [
{ label: "Nix CN Community ↗", href: "https://nixos-cn.org/" },
],
},
},
}),
],
}),
mdx(),
],
});