summaryrefslogtreecommitdiff
path: root/astro.config.mjs
diff options
context:
space:
mode:
authorAsai Neko <sugar@sne.moe>2025-12-07 21:31:06 +0800
committerAsai Neko <sugar@sne.moe>2025-12-07 21:31:06 +0800
commit05f0552f424c9fe2c5d5d277fed2630fc9aa5405 (patch)
treea1313474d7931ceb680a1696fa82a778c13de562 /astro.config.mjs
parent7c79e5cee930baf484aacb07b8a7ca93127de63a (diff)
Modify basic settings, i18n, add docs
- Edit README for subspecific rules - Add meetup-2-guide for both root and en - Remove vscode folder - Remove default pages and docs - Gitignore add editor section - Setup i18n Signed-off-by: Asai Neko <sugar@sne.moe>
Diffstat (limited to 'astro.config.mjs')
-rw-r--r--astro.config.mjs51
1 files changed, 30 insertions, 21 deletions
diff --git a/astro.config.mjs b/astro.config.mjs
index 9a25601..9897629 100644
--- a/astro.config.mjs
+++ b/astro.config.mjs
@@ -1,26 +1,35 @@
// @ts-check
-import { defineConfig } from 'astro/config';
-import starlight from '@astrojs/starlight';
+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: 'My Docs',
- social: [{ icon: 'github', label: 'GitHub', href: 'https://github.com/withastro/starlight' }],
- sidebar: [
- {
- label: 'Guides',
- items: [
- // Each item here is one entry in the navigation menu.
- { label: 'Example Guide', slug: 'guides/example' },
- ],
- },
- {
- label: 'Reference',
- autogenerate: { directory: 'reference' },
- },
- ],
- }),
- ],
+ integrations: [
+ starlight({
+ title: "NixCN",
+ defaultLocale: "root",
+ locales: {
+ root: {
+ label: "简体中文",
+ lang: "zh-CN",
+ },
+ en: {
+ label: "English",
+ },
+ },
+ social: [
+ {
+ icon: "github",
+ label: "GitHub",
+ href: "https://github.com/withastro/starlight",
+ },
+ ],
+ sidebar: [],
+ plugins: [starlightThemeGalaxy()],
+ }),
+ mdx(),
+ ],
});