Impl prettier to project
- Add prettier json config - Format project with prettier config - Enable prettier in zed project settings Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
@@ -1,35 +1,35 @@
|
||||
// @ts-check
|
||||
import { defineConfig } from "astro/config";
|
||||
import starlight from "@astrojs/starlight";
|
||||
import starlightThemeGalaxy from "starlight-theme-galaxy";
|
||||
import { defineConfig } from 'astro/config';
|
||||
import starlight from '@astrojs/starlight';
|
||||
import starlightThemeGalaxy from 'starlight-theme-galaxy';
|
||||
|
||||
import mdx from "@astrojs/mdx";
|
||||
import mdx from '@astrojs/mdx';
|
||||
|
||||
// https://astro.build/config
|
||||
export default defineConfig({
|
||||
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(),
|
||||
],
|
||||
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(),
|
||||
],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user