Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Algolia doc search #4830

Merged
merged 4 commits into from Feb 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/.vitepress/config.ts
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
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