Search
Search is enabled by default with the built-in compact provider. Small and medium sites need no additional configuration.
Use Pagefind
For larger sites, install the official plugin package and Pagefind:
pnpm add -D @docfuse/plugins pagefindnpm install --save-dev @docfuse/plugins pagefindyarn add --dev @docfuse/plugins pagefindThen configure the search provider:
import { pagefind } from '@docfuse/plugins'import { defineConfig } from 'docfuse'export default defineConfig({ search: { provider: pagefind() }})Pagefind indexes final HTML and filters results by the active locale and version.
Exclude content
Set search: false in page frontmatter to exclude one page:
---search: false---Use search: { enabled: false } to disable search for the entire site. Private sites should protect search indexes with the same access policy as page content.