File tree Expand file tree Collapse file tree 4 files changed +3
-4
lines changed Expand file tree Collapse file tree 4 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 4444
4545build :
4646 pnpm run astro build --mode $(MODE )
47+ pnpm pagefind
4748
4849preview : RELEASES_DIR = $(VPS_PREVIEW_PATH ) /$(SAFE_BRANCH ) /releases
4950preview : TARGET = $(RELEASES_DIR ) /$(TIMESTAMP )
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ import remarkToc from "remark-toc";
66import rehypeSlug from "rehype-slug" ;
77import rehypeAutolinkHeadings from "rehype-autolink-headings" ;
88import metaTags from "astro-meta-tags" ;
9- import pagefind from "astro-pagefind" ;
109import deleteUnusedImages from "astro-delete-unused-images" ;
1110import { execSync } from "node:child_process" ;
1211import svelte from "@astrojs/svelte" ;
@@ -116,7 +115,6 @@ export default defineConfig({
116115 mdx ( ) ,
117116 sitemap ( ) ,
118117 metaTags ( ) ,
119- pagefind ( ) ,
120118 deleteUnusedImages ( ) ,
121119 svelte ( ) ,
122120 compress ( {
Original file line number Diff line number Diff line change 55 "scripts" : {
66 "dev" : " astro dev" ,
77 "start" : " astro dev" ,
8- "build" : " astro check && astro build && pnpm pagefind --site dist " ,
8+ "build" : " astro check && astro build && pnpm pagefind" ,
99 "preview" : " astro preview" ,
1010 "astro" : " astro" ,
1111 "format" : " prettier --write --plugin=prettier-plugin-astro ."
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ const externalDomain = new URL(Astro.site || "").hostname;
3636 <Header />
3737 </header >
3838
39- <main class =" main pt-28" role =" main" >
39+ <main data-pagefind-body class =" main pt-28" role =" main" >
4040 <slot />
4141 </main >
4242
You can’t perform that action at this time.
0 commit comments