@@ -23,16 +23,16 @@ export enum Chapters {
2323 // api
2424 xrobot_api = "/xrobot/api/" ,
2525 xrobot_api_server = "/xrobot/api/server/" ,
26- xrobot_api_client = "/xrobot/api/client/" ,
26+ // xrobot_api_client = "/xrobot/api/client/",
2727 xrobot_api_protocol = "/xrobot/api/protocol/" ,
2828 // platform
2929 xrobot_platform = "/xrobot/platform/" ,
3030 xrobot_platform_esp32 = "/xrobot/platform/esp32/" ,
3131 xrobot_platform_others = "/xrobot/platform/others/" ,
3232 xrobot_platform_others_mp = "/xrobot/platform/others/mini-program/" ,
33- xrobot_platform_others_device = "/xrobot/platform/others/device/" ,
3433 xrobot_platform_others_console = "/xrobot/platform/others/console/" ,
35- xrobot_platform_others_net_config = "/xrobot/platform/others/net-config/" ,
34+ xrobot_platform_others_device = "/xrobot/platform/others/device/" ,
35+ xrobot_platform_others_device_net_config = "/xrobot/platform/others/net-config/" ,
3636 // faq
3737 xrobot_faq = "/xrobot/faq/" ,
3838}
@@ -79,7 +79,7 @@ export function apply_prefix(item: ChapterItem, prefix: Chapters) {
7979
8080export const items_xrobot_api_server = [
8181 {
82- text : "服务端API参考 " ,
82+ text : "平台接入API " ,
8383 collapsed : true ,
8484 link : Chapters . xrobot_api_server ,
8585 items : [
@@ -91,18 +91,18 @@ export const items_xrobot_api_server = [
9191 } ,
9292] ;
9393
94- export const items_xrobot_api_client = [
95- {
96- text : "客户端API参考 " ,
97- collapsed : true ,
98- link : Chapters . xrobot_api_client ,
99- items : [ ] . map ( ( item ) => apply_prefix ( item , Chapters . xrobot_api_client ) ) ,
100- } ,
101- ] ;
94+ // export const items_xrobot_api_client = [
95+ // {
96+ // text: "设备接入协议 ",
97+ // collapsed: true,
98+ // link: Chapters.xrobot_api_client,
99+ // items: [].map((item) => apply_prefix(item, Chapters.xrobot_api_client)),
100+ // },
101+ // ];
102102
103103export const items_xrobot_api_protocol = [
104104 {
105- text : "WebSocket API参考 " ,
105+ text : "设备接入协议 " ,
106106 collapsed : true ,
107107 link : Chapters . xrobot_api_protocol ,
108108 items : [
@@ -120,7 +120,7 @@ export const items_xrobot_api = [
120120 link : Chapters . xrobot_api ,
121121 items : [
122122 ...items_xrobot_api_server ,
123- ...items_xrobot_api_client ,
123+ // ...items_xrobot_api_client,
124124 ...items_xrobot_api_protocol ,
125125 ] ,
126126 } ,
@@ -140,14 +140,31 @@ export const items_xrobot_platform_mp = [
140140 } ,
141141] ;
142142
143+ const items_xrobot_platform_net_config = [
144+ {
145+ text : "配网" ,
146+ link : Chapters . xrobot_platform_others_device_net_config ,
147+ collapsed : true ,
148+ items : [
149+ { text : "通过微信小程序" , link : "mp" } ,
150+ { text : "通过浏览器" , link : "browser" } ,
151+ ] . map ( ( item ) =>
152+ apply_prefix ( item , Chapters . xrobot_platform_others_device_net_config )
153+ ) ,
154+ } ,
155+ ] ;
156+
143157export const items_xrobot_platform_device = [
144158 {
145159 text : "设备配置与使用" ,
146160 link : Chapters . xrobot_platform_others_device ,
147161 collapsed : true ,
148- items : [ { text : "使用指南" , link : "device-intro" } ] . map ( ( item ) =>
149- apply_prefix ( item , Chapters . xrobot_platform_others_device )
150- ) ,
162+ items : [
163+ ...[ { text : "设备基本配置流程说明" , link : "device-intro" } ] . map ( ( item ) =>
164+ apply_prefix ( item , Chapters . xrobot_platform_others_device )
165+ ) ,
166+ ...items_xrobot_platform_net_config ,
167+ ] ,
151168 } ,
152169] ;
153170
@@ -157,7 +174,7 @@ const items_xrobot_platform_console = [
157174 link : Chapters . xrobot_platform_others_console ,
158175 collapsed : true ,
159176 items : [
160- { text : "基本介绍" , link : "intro" } ,
177+ // { text: "基本介绍", link: "intro" },
161178 { text : "智能体连接指南" , link : "device-connection" } ,
162179 { text : "设备绑定" , link : "device-bind" } ,
163180 ] . map ( ( item ) =>
@@ -166,17 +183,6 @@ const items_xrobot_platform_console = [
166183 } ,
167184] ;
168185
169- const items_xrobot_platform_net_config = [
170- {
171- text : "配网" ,
172- link : Chapters . xrobot_platform_others_net_config ,
173- collapsed : true ,
174- items : [ { text : "通过微信小程序" , link : "mp" } ] . map ( ( item ) =>
175- apply_prefix ( item , Chapters . xrobot_platform_others_net_config )
176- ) ,
177- } ,
178- ] ;
179-
180186export const items_xrobot_guide = [ ] ;
181187
182188const items_xrobot_platform_esp32 = [
@@ -198,10 +204,9 @@ const items_xrobot_platform_others = [
198204 link : Chapters . xrobot_platform ,
199205 collapsed : true ,
200206 items : [
201- ...items_xrobot_platform_mp ,
202207 ...items_xrobot_platform_device ,
208+ ...items_xrobot_platform_mp ,
203209 ...items_xrobot_platform_console ,
204- ...items_xrobot_platform_net_config ,
205210 ] ,
206211 } ,
207212] ;
@@ -258,10 +263,10 @@ export const ChapterItems: Record<Chapters, ChapterItem[]> = {
258263 gobackItem ( Chapters . xrobot_api ) ,
259264 ...items_xrobot_api_server ,
260265 ] ,
261- [ Chapters . xrobot_api_client ] : [
262- gobackItem ( Chapters . xrobot_api ) ,
263- ...items_xrobot_api_client ,
264- ] ,
266+ // [Chapters.xrobot_api_client]: [
267+ // gobackItem(Chapters.xrobot_api),
268+ // ...items_xrobot_api_client,
269+ // ],
265270 [ Chapters . xrobot_api_protocol ] : [
266271 gobackItem ( Chapters . xrobot_api ) ,
267272 ...items_xrobot_api_protocol ,
@@ -295,7 +300,7 @@ export const ChapterItems: Record<Chapters, ChapterItem[]> = {
295300 gobackItem ( Chapters . xrobot_platform_others ) ,
296301 ...items_xrobot_platform_console ,
297302 ] ,
298- [ Chapters . xrobot_platform_others_net_config ] : [
303+ [ Chapters . xrobot_platform_others_device_net_config ] : [
299304 gobackItem ( Chapters . xrobot_platform_others ) ,
300305 ...items_xrobot_platform_net_config ,
301306 ] ,
0 commit comments