@@ -4,19 +4,19 @@ const enSidebar = [
44 {
55 text : "Get Started" ,
66 items : [
7- { text : "Introduction" , link : "/en/ " } ,
8- { text : "Contributing" , link : "/en/ guide/contributing" } ,
9- { text : "Channel Configuration" , link : "/en/ guide/channels" } ,
10- { text : "Model Configuration" , link : "/en/ guide/models" } ,
11- { text : "Skill Installation" , link : "/en/ guide/skills" } ,
7+ { text : "Introduction" , link : "/" } ,
8+ { text : "Contributing" , link : "/guide/contributing" } ,
9+ { text : "Channel Configuration" , link : "/guide/channels" } ,
10+ { text : "Model Configuration" , link : "/guide/models" } ,
11+ { text : "Skill Installation" , link : "/guide/skills" } ,
1212 ] ,
1313 } ,
1414 {
1515 text : "Channel Guides" ,
1616 items : [
17- { text : "Feishu" , link : "/en/ guide/channels/feishu" } ,
18- { text : "Slack" , link : "/en/ guide/channels/slack" } ,
19- { text : "Discord" , link : "/en/ guide/channels/discord" } ,
17+ { text : "Feishu" , link : "/guide/channels/feishu" } ,
18+ { text : "Slack" , link : "/guide/channels/slack" } ,
19+ { text : "Discord" , link : "/guide/channels/discord" } ,
2020 ] ,
2121 } ,
2222] ;
@@ -47,13 +47,17 @@ export default defineConfig({
4747 description : "Nexu documentation for channels, models, and skills." ,
4848 cleanUrls : true ,
4949 lastUpdated : true ,
50+ rewrites : {
51+ "en/index.md" : "index.md" ,
52+ "en/:path*" : ":path*" ,
53+ } ,
5054 locales : {
51- en : {
55+ root : {
5256 label : "English" ,
5357 lang : "en-US" ,
5458 title : "Nexu Docs" ,
5559 description : "Nexu documentation for channels, models, and skills." ,
56- link : "/en/ " ,
60+ link : "/" ,
5761 } ,
5862 zh : {
5963 label : "简体中文" ,
@@ -146,18 +150,8 @@ export default defineConfig({
146150 next : "Next page" ,
147151 } ,
148152 sidebar : {
149- "/en/ " : enSidebar ,
153+ "/" : enSidebar ,
150154 "/zh/" : zhSidebar ,
151- "/" : [
152- {
153- text : "Docs" ,
154- items : [
155- { text : "Introduction" , link : "/" } ,
156- { text : "English" , link : "/en/" } ,
157- { text : "简体中文" , link : "/zh/" } ,
158- ] ,
159- } ,
160- ] ,
161155 } ,
162156 } ,
163157} ) ;
0 commit comments