Skip to content

Commit e64de00

Browse files
PSNY-23romitg2
andauthored
fix(docs): resolve documentation search in documentation header (calcom#29245)
* fix(docs): resolve documentation search in documentation header * fix: move pagefind from devDependencies to dependencies * fix(docs): inline pagefind in build script for reliable CI execution Merge postbuild script into build command to ensure pagefind runs in all CI environments (Vercel, Turbo, yarn workspace). --------- Co-authored-by: Romit <[email protected]>
1 parent d278d6c commit e64de00

3 files changed

Lines changed: 87 additions & 1 deletion

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,3 +114,6 @@ specs/**/_drafts/
114114
# trigger.dev
115115
.trigger
116116
agents/devin-knowledge.json
117+
118+
# pagefind
119+
_pagefind/

apps/docs/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@
44
"private": true,
55
"scripts": {
66
"dev": "next --turbopack",
7-
"build": "next build",
7+
"build": "next build && pagefind --site .next/server/app --output-path public/_pagefind",
88
"start": "next start"
99
},
1010
"dependencies": {
1111
"next": "^15.1.0",
1212
"nextra": "^4.2.0",
1313
"nextra-theme-docs": "^4.2.0",
14+
"pagefind": "^1.5.2",
1415
"react": "^19.0.0",
1516
"react-dom": "^19.0.0"
1617
},

yarn.lock

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2277,6 +2277,7 @@ __metadata:
22772277
next: "npm:^15.1.0"
22782278
nextra: "npm:^4.2.0"
22792279
nextra-theme-docs: "npm:^4.2.0"
2280+
pagefind: "npm:^1.5.2"
22802281
react: "npm:^19.0.0"
22812282
react-dom: "npm:^19.0.0"
22822283
typescript: "npm:^5.0.0"
@@ -10373,6 +10374,55 @@ __metadata:
1037310374
languageName: node
1037410375
linkType: hard
1037510376

10377+
"@pagefind/darwin-arm64@npm:1.5.2":
10378+
version: 1.5.2
10379+
resolution: "@pagefind/darwin-arm64@npm:1.5.2"
10380+
conditions: os=darwin & cpu=arm64
10381+
languageName: node
10382+
linkType: hard
10383+
10384+
"@pagefind/darwin-x64@npm:1.5.2":
10385+
version: 1.5.2
10386+
resolution: "@pagefind/darwin-x64@npm:1.5.2"
10387+
conditions: os=darwin & cpu=x64
10388+
languageName: node
10389+
linkType: hard
10390+
10391+
"@pagefind/freebsd-x64@npm:1.5.2":
10392+
version: 1.5.2
10393+
resolution: "@pagefind/freebsd-x64@npm:1.5.2"
10394+
conditions: os=freebsd & cpu=x64
10395+
languageName: node
10396+
linkType: hard
10397+
10398+
"@pagefind/linux-arm64@npm:1.5.2":
10399+
version: 1.5.2
10400+
resolution: "@pagefind/linux-arm64@npm:1.5.2"
10401+
conditions: os=linux & cpu=arm64
10402+
languageName: node
10403+
linkType: hard
10404+
10405+
"@pagefind/linux-x64@npm:1.5.2":
10406+
version: 1.5.2
10407+
resolution: "@pagefind/linux-x64@npm:1.5.2"
10408+
conditions: os=linux & cpu=x64
10409+
languageName: node
10410+
linkType: hard
10411+
10412+
"@pagefind/windows-arm64@npm:1.5.2":
10413+
version: 1.5.2
10414+
resolution: "@pagefind/windows-arm64@npm:1.5.2"
10415+
conditions: os=win32 & cpu=arm64
10416+
languageName: node
10417+
linkType: hard
10418+
10419+
"@pagefind/windows-x64@npm:1.5.2":
10420+
version: 1.5.2
10421+
resolution: "@pagefind/windows-x64@npm:1.5.2"
10422+
conditions: os=win32 & cpu=x64
10423+
languageName: node
10424+
linkType: hard
10425+
1037610426
"@panva/hkdf@npm:^1.0.2":
1037710427
version: 1.0.4
1037810428
resolution: "@panva/hkdf@npm:1.0.4"
@@ -32977,6 +33027,38 @@ __metadata:
3297733027
languageName: node
3297833028
linkType: hard
3297933029

33030+
"pagefind@npm:^1.5.2":
33031+
version: 1.5.2
33032+
resolution: "pagefind@npm:1.5.2"
33033+
dependencies:
33034+
"@pagefind/darwin-arm64": "npm:1.5.2"
33035+
"@pagefind/darwin-x64": "npm:1.5.2"
33036+
"@pagefind/freebsd-x64": "npm:1.5.2"
33037+
"@pagefind/linux-arm64": "npm:1.5.2"
33038+
"@pagefind/linux-x64": "npm:1.5.2"
33039+
"@pagefind/windows-arm64": "npm:1.5.2"
33040+
"@pagefind/windows-x64": "npm:1.5.2"
33041+
dependenciesMeta:
33042+
"@pagefind/darwin-arm64":
33043+
optional: true
33044+
"@pagefind/darwin-x64":
33045+
optional: true
33046+
"@pagefind/freebsd-x64":
33047+
optional: true
33048+
"@pagefind/linux-arm64":
33049+
optional: true
33050+
"@pagefind/linux-x64":
33051+
optional: true
33052+
"@pagefind/windows-arm64":
33053+
optional: true
33054+
"@pagefind/windows-x64":
33055+
optional: true
33056+
bin:
33057+
pagefind: lib/runner/bin.cjs
33058+
checksum: 10/8e5c261be809facefefe162864ac3a9eb20377c791029c301a123c72e884ce1e3df111b48e46136ca814b25ddb2eaceb70f0086580dc34fd3035379397170279
33059+
languageName: node
33060+
linkType: hard
33061+
3298033062
"pako@npm:^0.2.5":
3298133063
version: 0.2.9
3298233064
resolution: "pako@npm:0.2.9"

0 commit comments

Comments
 (0)