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>
This commit is contained in:
2025-12-11 18:13:32 +08:00
committed by Asai Neko
parent 829169191c
commit f31c29da84
3 changed files with 69 additions and 2 deletions

View File

@@ -2,6 +2,7 @@
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({
@@ -32,7 +33,20 @@ export default defineConfig({
},
],
sidebar: ['meetup-2-guide', 'badge-customization'],
plugins: [],
plugins: [
starlightUITweaks({
navbarLinks: [
{ label: 'Nix CN 社区 ↗', href: 'https://nixos-cn.org/' },
],
locales: {
en: {
navbarLinks: [
{ label: "Nix CN Community ↗", href: "https://nixos-cn.org/" },
],
},
},
}),
],
}),
mdx(),
],