@@ -88,6 +88,24 @@ const config: Config = {
8888 } ,
8989 ] ,
9090
91+ themes : [
92+ [
93+ require . resolve ( "@easyops-cn/docusaurus-search-local" ) ,
94+ /** @type {import("@easyops-cn/docusaurus-search-local").PluginOptions } */
95+ {
96+ // ... Your options.
97+ // `hashed` is recommended as long-term-cache of index file is possible.
98+ hashed : true ,
99+
100+ // For Docs using Chinese, it is recomended to set:
101+ // language: ["en", "zh"],
102+
103+ // If you're using `noIndex: true`, set `forceIgnoreNoIndex` to enable local index:
104+ // forceIgnoreNoIndex: true,
105+ } ,
106+ ] ,
107+ ] ,
108+
91109 presets : [
92110 [
93111 "classic" ,
@@ -299,24 +317,6 @@ const config: Config = {
299317 theme : prismThemes . github ,
300318 darkTheme : prismThemes . dracula ,
301319 } ,
302- algolia : {
303- // The application ID provided by Algolia
304- appId : "AOKXGK39Z7" ,
305-
306- // Public API key: it is safe to commit it
307- apiKey : "54204f37e5c8fc2871052d595ee0505e" ,
308-
309- indexName : "open" ,
310-
311- // Optional: see doc section below
312- contextualSearch : true ,
313-
314- // Optional: path for search page that enabled by default (`false` to disable it)
315- searchPagePath : "search" ,
316-
317- // Optional: whether the insights feature is enabled or not on Docsearch (`false` by default)
318- insights : false ,
319- } ,
320320 } satisfies Preset . ThemeConfig ,
321321} ;
322322
0 commit comments