Docsearch
Pass docsearch
to theme default to add a Docsearch on navbar
docsearch
contain these main props: appId
, apiKey
,indexName
Complete options can be found here
All provided by Docsearch.
vite.config.(js|ts)
import { defaultTheme } from '@sveltepress/theme-default'
import { sveltepress } from '@sveltepress/vite'
import { defineConfig } from 'vite'
export default defineConfig ({
plugins : [
sveltepress ({
theme : defaultTheme ({
docsearch : {
appId : 'XXX',
apiKey : 'XXX',
indexName : 'XXX',
}
})
})
]
})
ts