mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -07:00
feat(search): add pagefind provider support
Add Pagefind indexing and browser search adapters behind a provider switch. This lets prebuild generate either Stork or Pagefind search artifacts and lets the existing search UI run against Pagefind while preserving scoped filters, excerpts, and result metadata.
This commit is contained in:
parent
727f84e4c2
commit
e1da6eb880
12 changed files with 690 additions and 65 deletions
|
|
@ -40,6 +40,8 @@
|
|||
"setup-stork": "pnpm run \"/^download-stork:.*/\" --parallel",
|
||||
"build-stork-index": "./$npm_package_config_stork_executable build --input $npm_package_config_stork_toml --output $npm_package_config_stork_index",
|
||||
"build-stork-index-js": "pnpm exec vite-node scripts/build-stork-index.js",
|
||||
"build-pagefind-index": "pnpm exec vite-node scripts/build-pagefind-index.js",
|
||||
"build-search-index": "pnpm exec vite-node scripts/build-search-index.js",
|
||||
"stork-search": "./$npm_package_config_stork_executable search --index $npm_package_config_stork_index --query $1",
|
||||
"stork-index": "pnpm setup-stork && pnpm build-stork-index",
|
||||
"stork-netlify": "chmod +x scripts/stork-netlify.sh && ./scripts/stork-netlify.sh",
|
||||
|
|
@ -57,7 +59,7 @@
|
|||
"vercel-build": "pnpm exec vite-node scripts/vercel-build.js",
|
||||
"netlify-prebuild:download-sitemaps": "pnpm exec vite-node scripts/download-sitemaps.js",
|
||||
"netlify-prebuild:test-prebuild-functions": "pnpm test-prebuild && pnpm test-api-client && pnpm test-listings",
|
||||
"netlify-prebuild": "pnpm run \"/^netlify-prebuild:.*/\" && pnpm stork-index",
|
||||
"netlify-prebuild": "pnpm run \"/^netlify-prebuild:.*/\" && pnpm build-search-index",
|
||||
"netlify-postbuild:test-postbuild-functions": "vitest test/main.test.ts",
|
||||
"netlify-postbuild:test-circular-deps": "madge --circular --extensions js,mjs,ts,vue,astro ./*",
|
||||
"netlify-build": "pnpm run netlify-prebuild && pnpm generate-astro && pnpm run \"/^netlify-postbuild:.*/\"",
|
||||
|
|
@ -107,6 +109,7 @@
|
|||
"node-html-parser": "^2.0.0",
|
||||
"observe-element-in-viewport": "0.0.15",
|
||||
"ofetch": "^1.0.0",
|
||||
"pagefind": "1.4.0",
|
||||
"plist": "^3.0.1",
|
||||
"pretty-bytes": "^5.5.0",
|
||||
"rollup-plugin-node-polyfills": "^0.2.1",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue