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 {  } from '@sveltepress/theme-default'
import {  } from '@sveltepress/vite'
import {  } from 'vite'

export default ({
  : [
    ({
      : ({
        : {
          : 'XXX',
          : 'XXX',
          : 'XXX',
        }
      })
    })
  ]
})
ts
Last update at: 2024/11/25 05:47:03