Skip to content

Commit

Permalink
Add Algolia doc search (#4830)
Browse files Browse the repository at this point in the history
* Add doc search

* Update dependencies

* Update docs dependencies
  • Loading branch information
lukastaegert authored Feb 1, 2023
1 parent ef25721 commit 669f597
Show file tree
Hide file tree
Showing 4 changed files with 587 additions and 433 deletions.
5 changes: 5 additions & 0 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ export default withMermaid(
}
},
themeConfig: {
algolia: {
apiKey: '233d24494bdf54811b5c3181883b5ee3',
appId: 'V5XQ4IDZSG',
indexName: 'rollupjs'
},
editLink: {
pattern: 'https://github.com/rollup/rollup/edit/master/docs/:path',
text: 'Edit this page on GitHub'
Expand Down
3 changes: 2 additions & 1 deletion docs/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import type { Example, Module } from './types';
const examplesDirectory = new URL('repl/examples', import.meta.url);

export default defineConfig({
optimizeDeps: { include: ['moment-mini', '@braintree/sanitize-url'] },
plugins: [
{
apply: 'serve',
Expand Down Expand Up @@ -95,7 +96,7 @@ export default defineConfig({
}
}
},
alias(moduleAliases) as any
alias(moduleAliases)
]
});

Expand Down
Loading

0 comments on commit 669f597

Please sign in to comment.