@@ -72,7 +72,8 @@ export default defineConfig({
7272 }
7373 } ,
7474 rewrites : {
75- 'tiny-robot/docs/src/:path*' : 'tiny-robot/:path*' ,
75+ 'tiny-robot/docs/src/:section(guide|components|tools)/:path*' : 'tiny-robot/guide/:path*' ,
76+ 'tiny-robot/docs/src/examples/:path*' : 'tiny-robot/examples/:path*' ,
7677 'next-sdk/docs/:path*' : 'next-sdk/:path*' ,
7778 'tiny-vue/examples/sites/demos/pc/webdoc/:path*' : 'tiny-vue/guide/:path*' ,
7879 'tiny-engine/docs/:section(getting-started|basic-features|advanced-features|tutorials)/:path*' :
@@ -87,28 +88,48 @@ export default defineConfig({
8788 logo : '/images/logo-mini.svg' ,
8889 siteTitle : 'OpenTiny NEXT' ,
8990 nav : [
90- { text : '指南' , link : '/tiny-robot/guide/quick-start' , activeMatch : '/guide/' } ,
91- { text : '组件' , link : '/tiny-robot/components/bubble' , activeMatch : '/components/' } ,
92- { text : '工具' , link : '/tiny-robot/tools/ai-client' , activeMatch : '/tools/' } ,
93- { text : '演示' , link : '/tiny-robot/examples/assistant' , activeMatch : '/examples/' }
91+ {
92+ text : '指南' ,
93+ link : '/tiny-robot/guide/quick-start' ,
94+ activeMatch : '/guide/' ,
95+ } ,
96+ {
97+ text : '演示' ,
98+ link : '/tiny-robot/examples/assistant' ,
99+ activeMatch : '/examples/' ,
100+ } ,
94101 ] ,
95102 engineNav : [
96- { text : '使用指南' , link : '/tiny-engine/engines/introduction' , activeMatch : '/engines/' } ,
97- { text : '平台开发指南' , link : '/tiny-engine/dev/dev-intro' , activeMatch : '/dev/' } ,
98- { text : '网站文档' , link : '/tiny-engine/portal/ecosystem-intro' , activeMatch : '/portal/' }
103+ {
104+ text : '使用指南' ,
105+ link : '/tiny-engine/engines/introduction' ,
106+ activeMatch : '/engines/' ,
107+ } ,
108+ {
109+ text : '平台开发指南' ,
110+ link : '/tiny-engine/dev/dev-intro' ,
111+ activeMatch : '/dev/' ,
112+ } ,
113+ {
114+ text : '网站文档' ,
115+ link : '/tiny-engine/portal/ecosystem-intro' ,
116+ activeMatch : '/portal/' ,
117+ } ,
99118 ] ,
100119 sidebar : {
101120 '/tiny-robot/guide/' : [
102121 {
103122 text : '指南' ,
104123 base : '/tiny-robot/guide/' ,
105- items : [ { text : '快速开始' , link : 'quick-start' } ]
106- }
107- ] ,
108- '/tiny-robot/components/' : [
124+ items : [
125+ { text : '快速开始' , link : 'quick-start' } ,
126+ { text : '主题配置' , link : 'theme-config' } ,
127+ { text : '更新日志' , link : 'update-log' } ,
128+ ] ,
129+ } ,
109130 {
110131 text : '组件' ,
111- base : '/tiny-robot/components /' ,
132+ base : '/tiny-robot/guide /' ,
112133 items : [
113134 { text : 'Container 容器' , link : 'container' } ,
114135 { text : 'Bubble 气泡' , link : 'bubble' } ,
@@ -118,19 +139,20 @@ export default defineConfig({
118139 { text : 'Feedback 气泡反馈' , link : 'feedback' } ,
119140 { text : 'History 历史' , link : 'history' } ,
120141 { text : 'DropdownMenu 下拉菜单' , link : 'dropdown-menu' } ,
121- { text : 'SuggestionPopover 建议弹出框' , link : 'suggestion-popover' } ,
142+ {
143+ text : 'SuggestionPopover 建议弹出框' ,
144+ link : 'suggestion-popover' ,
145+ } ,
122146 { text : 'SuggestionPills 建议按钮组' , link : 'suggestion-pills' } ,
123147 { text : 'DragOverlay 拖拽浮层' , link : 'drag-overlay' } ,
124148 { text : 'Attachments 附件卡片' , link : 'attachments' } ,
125149 { text : 'McpServerPicker 插件选择器' , link : 'mcp-server-picker' } ,
126- { text : 'Theme 主题' , link : 'theme' }
127- ]
128- }
129- ] ,
130- '/tiny-robot/tools/' : [
150+ { text : 'Theme 主题' , link : 'theme' } ,
151+ ] ,
152+ } ,
131153 {
132154 text : '工具' ,
133- base : '/tiny-robot/tools /' ,
155+ base : '/tiny-robot/guide /' ,
134156 items : [
135157 { text : 'AI模型交互工具类' , link : 'ai-client' } ,
136158 { text : '消息数据管理' , link : 'message' } ,
0 commit comments