refactor: 移除pagefind搜索功能及相关配置

删除pagefind.yml配置文件,移除package.json中的pagefind依赖
清理Navbar.astro和global.d.ts中与pagefind相关的代码
更新构建脚本不再包含pagefind命令
This commit is contained in:
afoim
2025-07-31 11:29:38 +08:00
parent 467d35a812
commit 4edb87ad08
6 changed files with 12 additions and 56 deletions

View File

@@ -5,7 +5,7 @@
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"build": "astro build && pagefind --site dist",
"build": "astro build",
"preview": "astro preview",
"astro": "astro",
"type-check": "tsc --noEmit --isolatedDeclarations",
@@ -37,7 +37,7 @@
"markdown-it": "^14.1.0",
"mdast-util-to-string": "^4.0.0",
"overlayscrollbars": "^2.11.1",
"pagefind": "^1.3.0",
"photoswipe": "^5.4.4",
"reading-time": "^1.5.0",
"rehype-autolink-headings": "^7.1.0",