Skip to content

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
pnpm add -D @docfuse/plugins pagefind

Then configure the search provider:

docfuse.config.ts
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:

yaml
---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.