Skip to content

Commit 5f45c4e

Browse files
committed
set default language to en
1 parent ad06519 commit 5f45c4e

File tree

3 files changed

+11
-324
lines changed

3 files changed

+11
-324
lines changed

docs/.vitepress/config.mts

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ export default defineConfig({
793793
// https://vitepress.dev/reference/default-theme-config
794794
nav: [
795795
{ text: 'Home', link: '/' },
796-
{ text: 'QuickStart', link: '/quick-start' }
796+
{ text: 'QuickStart', link: '/en/quickstart/index' }
797797
],
798798

799799
search: {
@@ -810,20 +810,15 @@ export default defineConfig({
810810
},
811811

812812
locales: {
813-
root: {
813+
zh: {
814814
label: '简体中文',
815815
lang: 'zh',
816816
link: '/zh/',
817817
themeConfig: {
818818
nav: [
819819
{ text: '主页', link: '/zh/' },
820-
{ text: '快速开始', link: '/zh/quickstart/index' },
821-
{ text: '文档', link: '/mcfppdocs/index.html' }
822-
],
823-
footer: {
824-
message: "<a href='https://mcicp.com' title='MCICP备2024000011号' target='_blank'>MCICP备2024000011号</a>",
825-
copyright: "GPL-3.0 Lisenced | Copyright©2024 ProjectMCFPP"
826-
}
820+
{ text: '快速开始', link: '/zh/quickstart/index' }
821+
]
827822
}
828823
},
829824
en : {
@@ -833,8 +828,7 @@ export default defineConfig({
833828
themeConfig: {
834829
nav: [
835830
{ text: 'Home', link: '/en/' },
836-
{ text: 'QuickStart', link: '/en/quickstart/index' },
837-
{ text: 'Docs', link: '/mcfppdocs/index.html' }
831+
{ text: 'QuickStart', link: '/en/quickstart/index' }
838832
]
839833
}
840834
}

docs/index.md

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,9 @@
11
---
2-
# https://vitepress.dev/reference/default-theme-home-page
32
layout: home
4-
lastUpdated: true
5-
6-
hero:
7-
name: "MCFPP"
8-
text: "Change the way you develop Minecraft Datapacks"
9-
actions:
10-
- theme: brand
11-
text: 快速开始
12-
link: /zh/quickstart/index
13-
- theme: alt
14-
text: GitHub
15-
link: https://github.com/MinecraftFunctionPlusPlus/MCFPP
16-
17-
features:
18-
- title: 极致体验
19-
details: 通过精心设计的语法,让数据包的开发体验更加流畅
20-
- title: 跨版本编译
21-
details: 一份代码,多版本支持,无需担心Mojang的一周一改
22-
- title: 无缝集成
23-
details: 强大的MNI框架,基于数据包编译期,提供更多的可能
24-
253
---
4+
5+
<script>
6+
if (typeof window !== 'undefined') {
7+
window.location.href = '/en/';
8+
}
9+
</script>

sidebar.ts

Lines changed: 0 additions & 291 deletions
This file was deleted.

0 commit comments

Comments
 (0)