Skip to content

Commit

Permalink
fix: fix the content search function
Browse files Browse the repository at this point in the history
  • Loading branch information
sun0225SUN committed Feb 1, 2025
1 parent 6d706ec commit 5ab3176
Show file tree
Hide file tree
Showing 22 changed files with 8,016 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lefthook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ pre-commit:
check:
glob: "*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc,css}"
run: npx @biomejs/biome check --write --no-errors-on-unmatched --files-ignore-unknown=true --colors=off {staged_files}
stage_fixed: true
exclude:
- "public/_pagefind/**"
stage_fixed: true
1 change: 1 addition & 0 deletions next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const withNextra = nextra({
search: {
codeblocks: false,
},
contentDirBasePath: '/',
})

export default withNextra({
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"private": true,
"scripts": {
"dev": "next dev --turbopack",
"postbuild": "pagefind --site .next/server/app --output-path public/_pagefind",
"build": "next build",
"start": "next start",
"lint": "biome check ./src",
Expand Down
Binary file added public/_pagefind/fragment/en_3bb8934.pf_fragment
Binary file not shown.
Binary file added public/_pagefind/fragment/en_7aac920.pf_fragment
Binary file not shown.
Binary file added public/_pagefind/fragment/en_f979a02.pf_fragment
Binary file not shown.
Binary file added public/_pagefind/fragment/zh_5477cfb.pf_fragment
Binary file not shown.
Binary file added public/_pagefind/fragment/zh_aa827de.pf_fragment
Binary file not shown.
Binary file added public/_pagefind/fragment/zh_ee57c9c.pf_fragment
Binary file not shown.
Binary file added public/_pagefind/index/en_c4a9d6c.pf_index
Binary file not shown.
Binary file added public/_pagefind/index/zh_4eb472b.pf_index
Binary file not shown.
7 changes: 7 additions & 0 deletions public/_pagefind/pagefind-entry.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"version": "1.3.0",
"languages": {
"en": { "hash": "en_1c3851e579", "wasm": "en", "page_count": 3 },
"zh": { "hash": "zh_18ecf02276", "wasm": null, "page_count": 3 }
}
}
Loading

0 comments on commit 5ab3176

Please sign in to comment.