Skip to content

Commit b972501

Browse files
WIP
1 parent bb8bf8f commit b972501

File tree

6 files changed

+1959
-726
lines changed

6 files changed

+1959
-726
lines changed

docusaurus.config.ts

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,14 @@ const config: Config = {
119119
'./node_modules/modern-normalize/modern-normalize.css',
120120
'./node_modules/@ionic-internal/ionic-ds/dist/tokens/tokens.css',
121121
'./src/styles/custom.scss',
122+
'./src/styles/docsearch.scss',
122123
],
123124
},
124125
} satisfies Preset.Options,
125126
],
126127
],
127128
plugins: [
129+
'@docsearch/docusaurus-adapter',
128130
'docusaurus-plugin-sass',
129131
tailwindPlugin,
130132
function cioPlugin() {
@@ -377,12 +379,33 @@ const config: Config = {
377379
},
378380
additionalLanguages: ['csharp', 'bash', 'shell-session', 'diff'],
379381
},
380-
algolia: {
382+
docsearch: {
381383
appId: 'V9UF6750GH',
382384
apiKey: '028e3dad834905a2a2c2a7ad9da9e666',
383385
indexName: 'avaloniaui_docs',
386+
contextualSearch: true,
387+
translations: {
388+
button: {
389+
buttonText: 'Search',
390+
buttonAriaLabel: 'Search',
391+
},
392+
modal: {
393+
startScreen: {
394+
recentSearchesTitle: 'Recent',
395+
noRecentSearchesText: 'No recent searches',
396+
saveRecentSearchButtonTitle: 'Save to recent',
397+
removeRecentSearchButtonTitle: 'Remove from recent',
398+
favoriteSearchesTitle: 'Favourites',
399+
removeFavoriteSearchButtonTitle: 'Remove from favourites',
400+
},
401+
},
402+
},
403+
askAi: {
404+
assistantId: 'ILptDNvSVJ1v',
405+
sidePanel: true,
406+
},
384407
},
385-
} satisfies Preset.ThemeConfig,
408+
},
386409
};
387410

388411
export default config;

0 commit comments

Comments
 (0)