feat!: add pagefind for static search (#458)

Replace React with pagefind for static site search
This commit is contained in:
Sat Naing
2025-03-07 08:53:16 +07:00
parent 79c7df45e5
commit 9119125643
6 changed files with 191 additions and 4 deletions
+3 -1
View File
@@ -4,7 +4,7 @@
"version": "0.0.1",
"scripts": {
"dev": "astro dev",
"build": "astro check && astro build",
"build": "astro check && astro build && pagefind --site dist && cp -r dist/pagefind public/",
"preview": "astro preview",
"astro": "astro",
"format:check": "prettier --check .",
@@ -27,12 +27,14 @@
},
"devDependencies": {
"@astrojs/check": "^0.9.4",
"@pagefind/default-ui": "^1.3.0",
"@tailwindcss/typography": "^0.5.16",
"@types/lodash.kebabcase": "^4.1.9",
"@typescript-eslint/parser": "^8.25.0",
"eslint": "^9.21.0",
"eslint-plugin-astro": "^1.3.1",
"globals": "^16.0.0",
"pagefind": "^1.3.0",
"prettier": "^3.5.2",
"prettier-plugin-astro": "^0.14.1",
"prettier-plugin-tailwindcss": "^0.6.11",