Skip to main content

One post tagged with "Search"

Search integration for documentation — Pagefind and more.

View All Tags

Pagefind Search for Docusaurus — Fast, Private, Free

· One min read
Axcora Technology
Sovereign Web Architect & AI Research Lab

Search is essential for documentation. But most search solutions require an external service.

Pagefind doesn't. It indexes your site at build time and serves search from static files.

Why Pagefind?​

FeatureAlgoliaPagefind
CostFree (with approval)Free
SetupManual applicationOne command
PrivacyThird-partySelf-hosted
SpeedFastFast
OfflineNoYes

Pagefind wins on privacy and simplicity.


Step 1 — Install​

npm install docusaurus-plugin-pagefind

Step 2 — Configure​

In docusaurus.config.ts:

plugins: [
[
'docusaurus-plugin-pagefind',
{
forceLanguage: 'en',
excludeSelectors: ['.navbar', 'footer'],
},
],
],

Step 3 — Build​

npm run build

Pagefind indexes your site during the build.


Step 4 — Test​

Search works only after a production build. Run:

npm run serve

Then test search in your browser.


Nocturne Includes Pagefind​

Nocturne ships with Pagefind pre-configured. No setup required.


Get Nocturne​

Get Nocturne on Gumroad — $145 →