fix(docs): resolve documentation search in documentation header (#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 <romitgabani1.work@gmail.com>
This commit is contained in:
@@ -114,3 +114,6 @@ specs/**/_drafts/
|
|||||||
# trigger.dev
|
# trigger.dev
|
||||||
.trigger
|
.trigger
|
||||||
agents/devin-knowledge.json
|
agents/devin-knowledge.json
|
||||||
|
|
||||||
|
# pagefind
|
||||||
|
_pagefind/
|
||||||
|
|||||||
@@ -4,13 +4,14 @@
|
|||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next --turbopack",
|
"dev": "next --turbopack",
|
||||||
"build": "next build",
|
"build": "next build && pagefind --site .next/server/app --output-path public/_pagefind",
|
||||||
"start": "next start"
|
"start": "next start"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"next": "^15.1.0",
|
"next": "^15.1.0",
|
||||||
"nextra": "^4.2.0",
|
"nextra": "^4.2.0",
|
||||||
"nextra-theme-docs": "^4.2.0",
|
"nextra-theme-docs": "^4.2.0",
|
||||||
|
"pagefind": "^1.5.2",
|
||||||
"react": "^19.0.0",
|
"react": "^19.0.0",
|
||||||
"react-dom": "^19.0.0"
|
"react-dom": "^19.0.0"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -2277,6 +2277,7 @@ __metadata:
|
|||||||
next: "npm:^15.1.0"
|
next: "npm:^15.1.0"
|
||||||
nextra: "npm:^4.2.0"
|
nextra: "npm:^4.2.0"
|
||||||
nextra-theme-docs: "npm:^4.2.0"
|
nextra-theme-docs: "npm:^4.2.0"
|
||||||
|
pagefind: "npm:^1.5.2"
|
||||||
react: "npm:^19.0.0"
|
react: "npm:^19.0.0"
|
||||||
react-dom: "npm:^19.0.0"
|
react-dom: "npm:^19.0.0"
|
||||||
typescript: "npm:^5.0.0"
|
typescript: "npm:^5.0.0"
|
||||||
@@ -10373,6 +10374,55 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
"@pagefind/darwin-arm64@npm:1.5.2":
|
||||||
|
version: 1.5.2
|
||||||
|
resolution: "@pagefind/darwin-arm64@npm:1.5.2"
|
||||||
|
conditions: os=darwin & cpu=arm64
|
||||||
|
languageName: node
|
||||||
|
linkType: hard
|
||||||
|
|
||||||
|
"@pagefind/darwin-x64@npm:1.5.2":
|
||||||
|
version: 1.5.2
|
||||||
|
resolution: "@pagefind/darwin-x64@npm:1.5.2"
|
||||||
|
conditions: os=darwin & cpu=x64
|
||||||
|
languageName: node
|
||||||
|
linkType: hard
|
||||||
|
|
||||||
|
"@pagefind/freebsd-x64@npm:1.5.2":
|
||||||
|
version: 1.5.2
|
||||||
|
resolution: "@pagefind/freebsd-x64@npm:1.5.2"
|
||||||
|
conditions: os=freebsd & cpu=x64
|
||||||
|
languageName: node
|
||||||
|
linkType: hard
|
||||||
|
|
||||||
|
"@pagefind/linux-arm64@npm:1.5.2":
|
||||||
|
version: 1.5.2
|
||||||
|
resolution: "@pagefind/linux-arm64@npm:1.5.2"
|
||||||
|
conditions: os=linux & cpu=arm64
|
||||||
|
languageName: node
|
||||||
|
linkType: hard
|
||||||
|
|
||||||
|
"@pagefind/linux-x64@npm:1.5.2":
|
||||||
|
version: 1.5.2
|
||||||
|
resolution: "@pagefind/linux-x64@npm:1.5.2"
|
||||||
|
conditions: os=linux & cpu=x64
|
||||||
|
languageName: node
|
||||||
|
linkType: hard
|
||||||
|
|
||||||
|
"@pagefind/windows-arm64@npm:1.5.2":
|
||||||
|
version: 1.5.2
|
||||||
|
resolution: "@pagefind/windows-arm64@npm:1.5.2"
|
||||||
|
conditions: os=win32 & cpu=arm64
|
||||||
|
languageName: node
|
||||||
|
linkType: hard
|
||||||
|
|
||||||
|
"@pagefind/windows-x64@npm:1.5.2":
|
||||||
|
version: 1.5.2
|
||||||
|
resolution: "@pagefind/windows-x64@npm:1.5.2"
|
||||||
|
conditions: os=win32 & cpu=x64
|
||||||
|
languageName: node
|
||||||
|
linkType: hard
|
||||||
|
|
||||||
"@panva/hkdf@npm:^1.0.2":
|
"@panva/hkdf@npm:^1.0.2":
|
||||||
version: 1.0.4
|
version: 1.0.4
|
||||||
resolution: "@panva/hkdf@npm:1.0.4"
|
resolution: "@panva/hkdf@npm:1.0.4"
|
||||||
@@ -32977,6 +33027,38 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
"pagefind@npm:^1.5.2":
|
||||||
|
version: 1.5.2
|
||||||
|
resolution: "pagefind@npm:1.5.2"
|
||||||
|
dependencies:
|
||||||
|
"@pagefind/darwin-arm64": "npm:1.5.2"
|
||||||
|
"@pagefind/darwin-x64": "npm:1.5.2"
|
||||||
|
"@pagefind/freebsd-x64": "npm:1.5.2"
|
||||||
|
"@pagefind/linux-arm64": "npm:1.5.2"
|
||||||
|
"@pagefind/linux-x64": "npm:1.5.2"
|
||||||
|
"@pagefind/windows-arm64": "npm:1.5.2"
|
||||||
|
"@pagefind/windows-x64": "npm:1.5.2"
|
||||||
|
dependenciesMeta:
|
||||||
|
"@pagefind/darwin-arm64":
|
||||||
|
optional: true
|
||||||
|
"@pagefind/darwin-x64":
|
||||||
|
optional: true
|
||||||
|
"@pagefind/freebsd-x64":
|
||||||
|
optional: true
|
||||||
|
"@pagefind/linux-arm64":
|
||||||
|
optional: true
|
||||||
|
"@pagefind/linux-x64":
|
||||||
|
optional: true
|
||||||
|
"@pagefind/windows-arm64":
|
||||||
|
optional: true
|
||||||
|
"@pagefind/windows-x64":
|
||||||
|
optional: true
|
||||||
|
bin:
|
||||||
|
pagefind: lib/runner/bin.cjs
|
||||||
|
checksum: 10/8e5c261be809facefefe162864ac3a9eb20377c791029c301a123c72e884ce1e3df111b48e46136ca814b25ddb2eaceb70f0086580dc34fd3035379397170279
|
||||||
|
languageName: node
|
||||||
|
linkType: hard
|
||||||
|
|
||||||
"pako@npm:^0.2.5":
|
"pako@npm:^0.2.5":
|
||||||
version: 0.2.9
|
version: 0.2.9
|
||||||
resolution: "pako@npm:0.2.9"
|
resolution: "pako@npm:0.2.9"
|
||||||
|
|||||||
Reference in New Issue
Block a user