Skip to content

Harness engineering beginner tutorial, from 0 to 1

Fix root locale: add root config for VitePress landing page

sanbuphyb68a098fc7b4
diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts
index 5981ba3..e27bc3f 100644
--- a/docs/.vitepress/config.mts
+++ b/docs/.vitepress/config.mts
@@ -77,6 +77,19 @@ export default defineConfig({
srcExclude: ["temp/**"],
ignoreDeadLinks: true,
locales: {
+ root: {
+ label: "简体中文",
+ lang: "zh-CN",
+ themeConfig: {
+ nav: [
+ { text: "首页", link: "/" },
+ { text: "中文", link: "/zh/" },
+ { text: "English", link: "/en/" }
+ ],
+ sidebar: [],
+ socialLinks: [{ icon: "github", link: "https://github.com/walkinglabs/learn-harness-engineering" }]
+ }
+ },
zh: {
label: "简体中文",
lang: "zh-CN",