Add Pagefind integration
This commit is contained in:
parent
21282c83ac
commit
b9ffff1791
2 changed files with 6 additions and 3 deletions
|
@ -5,6 +5,7 @@ import { SiteSettings } from './config.json'
|
||||||
|
|
||||||
// Integrations
|
// Integrations
|
||||||
import mdx from '@astrojs/mdx'
|
import mdx from '@astrojs/mdx'
|
||||||
|
import pagefind from "astro-pagefind"
|
||||||
|
|
||||||
// Astro Configuration
|
// Astro Configuration
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
@ -13,7 +14,8 @@ export default defineConfig({
|
||||||
base: SiteSettings.SiteBase,
|
base: SiteSettings.SiteBase,
|
||||||
// Integrations
|
// Integrations
|
||||||
integrations: [
|
integrations: [
|
||||||
mdx()
|
mdx(),
|
||||||
|
pagefind()
|
||||||
],
|
],
|
||||||
// Server Output
|
// Server Output
|
||||||
output: "static",
|
output: "static",
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "butterflyvu",
|
"name": "butterflyvu",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "0.1.2",
|
"version": "0.1.3",
|
||||||
"license": "GPL-3.0-only",
|
"license": "GPL-3.0-only",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "SudoVanilla"
|
"name": "SudoVanilla"
|
||||||
|
@ -22,9 +22,9 @@
|
||||||
"email": "support@sudovanilla.org"
|
"email": "support@sudovanilla.org"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "astro dev",
|
|
||||||
"start": "astro dev",
|
"start": "astro dev",
|
||||||
"build": "astro build",
|
"build": "astro build",
|
||||||
|
"postbuild": "pagefind --root-selector article --site dist/",
|
||||||
"preview": "astro preview",
|
"preview": "astro preview",
|
||||||
"docker:start": "docker compose up -d",
|
"docker:start": "docker compose up -d",
|
||||||
"docker:stop": "docker compose down",
|
"docker:stop": "docker compose down",
|
||||||
|
@ -39,6 +39,7 @@
|
||||||
"astro-breadcrumbs": "^3.2.0",
|
"astro-breadcrumbs": "^3.2.0",
|
||||||
"astro-bun-adapter": "^1.0.2",
|
"astro-bun-adapter": "^1.0.2",
|
||||||
"astro-feelback": "^0.3.4",
|
"astro-feelback": "^0.3.4",
|
||||||
|
"astro-pagefind": "^1.6.0",
|
||||||
"astro-seo": "^0.8.4",
|
"astro-seo": "^0.8.4",
|
||||||
"markdoc": "^0.1.3"
|
"markdoc": "^0.1.3"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue