diff --git a/astro.config.mjs b/astro.config.mjs index 05219f2..3ac64ce 100755 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -5,6 +5,7 @@ import { SiteSettings } from './config.json' // Integrations import mdx from '@astrojs/mdx' +import pagefind from "astro-pagefind" // Astro Configuration export default defineConfig({ @@ -13,7 +14,8 @@ export default defineConfig({ base: SiteSettings.SiteBase, // Integrations integrations: [ - mdx() + mdx(), + pagefind() ], // Server Output output: "static", diff --git a/package.json b/package.json index 026fc6e..a43e67c 100755 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "butterflyvu", "type": "module", - "version": "0.1.2", + "version": "0.1.3", "license": "GPL-3.0-only", "author": { "name": "SudoVanilla" @@ -22,9 +22,9 @@ "email": "support@sudovanilla.org" }, "scripts": { - "dev": "astro dev", "start": "astro dev", "build": "astro build", + "postbuild": "pagefind --root-selector article --site dist/", "preview": "astro preview", "docker:start": "docker compose up -d", "docker:stop": "docker compose down", @@ -39,6 +39,7 @@ "astro-breadcrumbs": "^3.2.0", "astro-bun-adapter": "^1.0.2", "astro-feelback": "^0.3.4", + "astro-pagefind": "^1.6.0", "astro-seo": "^0.8.4", "markdoc": "^0.1.3" },