@@ -25,9 +25,9 @@ import path from 'node:path'
2525export default defineUserConfig ( {
2626 base : '/' ,
2727 lang : 'zh-CN' ,
28- title : '环信 IM 文档 ' ,
28+ title : '即时通讯 ' ,
2929 head : [ [ 'link' , { rel : 'icon' , href : '/logo.png' } ] ] ,
30- description : '环信 IM 文档 ' ,
30+ description : '声网即时通讯文档 ' ,
3131 bundler : viteBundler ( {
3232 viteOptions : {
3333 resolve : {
@@ -56,79 +56,79 @@ export default defineUserConfig({
5656 } ,
5757 templateBuild : path . resolve ( __dirname , './templates/index.build.html' ) ,
5858 theme,
59- plugins : [
60- docsearchPlugin ( {
61- appId : '5K8UTB3JVE' ,
62- apiKey : 'df9e938d06f6531ce8dd8de71f907f0d' ,
63- indexName : 'im-beta-easemob' ,
64- searchParameters : {
65- attributesToSnippet : [
66- 'hierarchy.lvl1:20' ,
67- 'hierarchy.lvl2:20' ,
68- 'hierarchy.lvl3:20' ,
69- 'hierarchy.lvl4:20' ,
70- 'hierarchy.lvl5:20' ,
71- 'hierarchy.lvl6:20' ,
72- 'content:50'
73- ] ,
74- hitsPerPage : 50 ,
75- facetFilters : [
76- [
77- 'type:lvl0' ,
78- 'type:lvl1' ,
79- 'type:lvl2' ,
80- 'type:lvl3' ,
81- 'type:lvl4' ,
82- 'type:lvl5'
83- ]
84- ]
85- } ,
86- maxResultsPerGroup : 30 ,
87- // transformItems: (items) => {
88- // console.log(items)
89- // return items.map((items) => ({ ...items, content: 'xxxxxx' }))
90- // },
91- placeholder : '搜索文档' ,
92- translations : {
93- button : {
94- buttonText : '搜索' ,
95- buttonAriaLabel : '搜索文档'
96- } ,
97- modal : {
98- searchBox : {
99- resetButtonTitle : '清除查询条件' ,
100- resetButtonAriaLabel : '清除查询条件' ,
101- cancelButtonText : '取消' ,
102- cancelButtonAriaLabel : '取消'
103- } ,
104- startScreen : {
105- recentSearchesTitle : '搜索历史' ,
106- noRecentSearchesText : '没有搜索历史' ,
107- saveRecentSearchButtonTitle : '保存至搜索历史' ,
108- removeRecentSearchButtonTitle : '从搜索历史中移除' ,
109- favoriteSearchesTitle : '收藏' ,
110- removeFavoriteSearchButtonTitle : '从收藏中移除'
111- } ,
112- errorScreen : {
113- titleText : '无法获取结果' ,
114- helpText : '你可能需要检查你的网络连接'
115- } ,
116- footer : {
117- selectText : '选择' ,
118- navigateText : '切换' ,
119- closeText : '关闭' ,
120- searchByText : '搜索提供者'
121- } ,
122- noResultsScreen : {
123- noResultsText : '无法找到相关结果' ,
124- suggestedQueryText : '你可以尝试查询' ,
125- reportMissingResultsText : '你认为该查询应该有结果?' ,
126- reportMissingResultsLinkText : '点击反馈'
127- }
128- }
129- }
130- } )
131- ] ,
59+ // plugins: [
60+ // docsearchPlugin({
61+ // appId: '5K8UTB3JVE',
62+ // apiKey: 'df9e938d06f6531ce8dd8de71f907f0d',
63+ // indexName: 'im-beta-easemob',
64+ // searchParameters: {
65+ // attributesToSnippet: [
66+ // 'hierarchy.lvl1:20',
67+ // 'hierarchy.lvl2:20',
68+ // 'hierarchy.lvl3:20',
69+ // 'hierarchy.lvl4:20',
70+ // 'hierarchy.lvl5:20',
71+ // 'hierarchy.lvl6:20',
72+ // 'content:50'
73+ // ],
74+ // hitsPerPage: 50,
75+ // facetFilters: [
76+ // [
77+ // 'type:lvl0',
78+ // 'type:lvl1',
79+ // 'type:lvl2',
80+ // 'type:lvl3',
81+ // 'type:lvl4',
82+ // 'type:lvl5'
83+ // ]
84+ // ]
85+ // },
86+ // maxResultsPerGroup: 30,
87+ // // transformItems: (items) => {
88+ // // console.log(items)
89+ // // return items.map((items) => ({ ...items, content: 'xxxxxx' }))
90+ // // },
91+ // placeholder: '搜索文档',
92+ // translations: {
93+ // button: {
94+ // buttonText: '搜索',
95+ // buttonAriaLabel: '搜索文档'
96+ // },
97+ // modal: {
98+ // searchBox: {
99+ // resetButtonTitle: '清除查询条件',
100+ // resetButtonAriaLabel: '清除查询条件',
101+ // cancelButtonText: '取消',
102+ // cancelButtonAriaLabel: '取消'
103+ // },
104+ // startScreen: {
105+ // recentSearchesTitle: '搜索历史',
106+ // noRecentSearchesText: '没有搜索历史',
107+ // saveRecentSearchButtonTitle: '保存至搜索历史',
108+ // removeRecentSearchButtonTitle: '从搜索历史中移除',
109+ // favoriteSearchesTitle: '收藏',
110+ // removeFavoriteSearchButtonTitle: '从收藏中移除'
111+ // },
112+ // errorScreen: {
113+ // titleText: '无法获取结果',
114+ // helpText: '你可能需要检查你的网络连接'
115+ // },
116+ // footer: {
117+ // selectText: '选择',
118+ // navigateText: '切换',
119+ // closeText: '关闭',
120+ // searchByText: '搜索提供者'
121+ // },
122+ // noResultsScreen: {
123+ // noResultsText: '无法找到相关结果',
124+ // suggestedQueryText: '你可以尝试查询',
125+ // reportMissingResultsText: '你认为该查询应该有结果?',
126+ // reportMissingResultsLinkText: '点击反馈'
127+ // }
128+ // }
129+ // }
130+ // })
131+ // ],
132132 onPrepared : async ( app ) => {
133133 await app . writeTemp (
134134 'pages.js' ,
0 commit comments