Skip to content

Commit 8722880

Browse files
committed
Change zh-cn to root
1 parent a38b0ec commit 8722880

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

astro.config.mjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ export default defineConfig({
99
integrations: [
1010
starlight({
1111
title: "Pixeval",
12-
defaultLocale: "zh-cn",
12+
defaultLocale: "root",
1313
locales: {
14-
"zh-cn": {
14+
root: {
1515
label: "简体中文",
1616
lang: "zh-CN",
1717
},
File renamed without changes.

src/content/docs/zh-cn/index.mdx src/content/docs/index.mdx

+14-14
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ hero:
1515
</span>
1616
tagline: Congrats on setting up a new Starlight project!
1717
image:
18-
file: ../../../assets/houston.webp
18+
file: ../../assets/houston.webp
1919
actions:
2020
- text: Example Guide
2121
link: /guides/example/
@@ -26,21 +26,21 @@ hero:
2626
variant: minimal
2727
---
2828

29-
import { Card, CardGrid } from '@astrojs/starlight/components';
29+
import { Card, CardGrid } from "@astrojs/starlight/components";
3030

3131
## Next steps
3232

3333
<CardGrid stagger>
34-
<Card title="Update content" icon="pencil">
35-
Edit `src/content/docs/index.mdx` to see this page change.
36-
</Card>
37-
<Card title="Add new content" icon="add-document">
38-
Add Markdown or MDX files to `src/content/docs` to create new pages.
39-
</Card>
40-
<Card title="Configure your site" icon="setting">
41-
Edit your `sidebar` and other config in `astro.config.mjs`.
42-
</Card>
43-
<Card title="Read the docs" icon="open-book">
44-
Learn more in [the Starlight Docs](https://starlight.astro.build/).
45-
</Card>
34+
<Card title="Update content" icon="pencil">
35+
Edit `src/content/docs/index.mdx` to see this page change.
36+
</Card>
37+
<Card title="Add new content" icon="add-document">
38+
Add Markdown or MDX files to `src/content/docs` to create new pages.
39+
</Card>
40+
<Card title="Configure your site" icon="setting">
41+
Edit your `sidebar` and other config in `astro.config.mjs`.
42+
</Card>
43+
<Card title="Read the docs" icon="open-book">
44+
Learn more in [the Starlight Docs](https://starlight.astro.build/).
45+
</Card>
4646
</CardGrid>

0 commit comments

Comments
 (0)