@@ -83,12 +83,21 @@ const VITEPRESS_CONFIG: UserConfig<DefaultTheme.Config> = {
8383 } ,
8484
8585 search : {
86- provider : "local"
86+ provider : "algolia" ,
87+ options : {
88+ appId : "JI19E3KHGR" ,
89+ apiKey : "22fcfe9bbb67cc5b6ca5f34ed217e525" ,
90+ indexName : "betterdiscord"
91+ }
8792 } ,
88-
93+
8994 outline : "deep" ,
9095 } ,
9196
97+ sitemap : {
98+ hostname : "https://docs.betterdiscord.app"
99+ } ,
100+
92101 markdown : {
93102 codeTransformers : [
94103 {
@@ -100,7 +109,7 @@ const VITEPRESS_CONFIG: UserConfig<DefaultTheme.Config> = {
100109 while ( ( i = str . indexOf ( substr , i + 1 ) ) !== - 1 ) indexes . push ( i ) ;
101110 return indexes ;
102111 }
103-
112+
104113 const words = [ "BdApi" ] ;
105114 options . decorations ||= [ ] ;
106115 for ( const word of words ) {
@@ -172,7 +181,7 @@ const SIDEBARS: VitePressSidebarOptions[] = [
172181 basePath : "/api/" ,
173182 resolvePath : "/api/" ,
174183 useTitleFromFileHeading : true ,
175- includeRootIndexFile : true ,
184+ includeRootIndexFile : true ,
176185 sortFolderTo : "bottom" ,
177186 sortMenusByFrontmatterOrder : true ,
178187 frontmatterOrderDefaultValue : 1 ,
@@ -199,7 +208,7 @@ const SIDEBARS: VitePressSidebarOptions[] = [
199208 basePath : "/users/" ,
200209 resolvePath : "/users/" ,
201210 useTitleFromFileHeading : true ,
202- includeRootIndexFile : true ,
211+ includeRootIndexFile : true ,
203212 capitalizeEachWords : true ,
204213 collapsed : false ,
205214 sortFolderTo : "bottom" ,
@@ -213,7 +222,7 @@ const SIDEBARS: VitePressSidebarOptions[] = [
213222 basePath : "/developers/" ,
214223 resolvePath : "/developers/" ,
215224 useTitleFromFileHeading : true ,
216- includeRootIndexFile : true ,
225+ includeRootIndexFile : true ,
217226 sortFolderTo : "bottom" ,
218227 sortMenusByFrontmatterOrder : true ,
219228 frontmatterOrderDefaultValue : 1 ,
@@ -224,7 +233,7 @@ const SIDEBARS: VitePressSidebarOptions[] = [
224233 basePath : "/plugins/" ,
225234 resolvePath : "/plugins/" ,
226235 useTitleFromFileHeading : true ,
227- includeRootIndexFile : true ,
236+ includeRootIndexFile : true ,
228237 capitalizeEachWords : true ,
229238 collapsed : false ,
230239 sortFolderTo : "bottom" ,
@@ -238,7 +247,7 @@ const SIDEBARS: VitePressSidebarOptions[] = [
238247 basePath : "/themes/" ,
239248 resolvePath : "/themes/" ,
240249 useTitleFromFileHeading : true ,
241- includeRootIndexFile : true ,
250+ includeRootIndexFile : true ,
242251 capitalizeEachWords : true ,
243252 collapsed : false ,
244253 sortFolderTo : "bottom" ,
0 commit comments