Skip to content

Commit e26e583

Browse files
committed
added algolia
1 parent 454a4f9 commit e26e583

File tree

3 files changed

+359
-21
lines changed

3 files changed

+359
-21
lines changed

astro.config.mjs

Lines changed: 14 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import netlify from '@astrojs/netlify';
66

77
import tailwindcss from '@tailwindcss/vite';
88
import starlightFullViewMode from "starlight-fullview-mode";
9+
import starlightDocSearch from '@astrojs/starlight-docsearch';
910

1011
export default defineConfig({
1112
site: 'https://exhibits.judaicadhpenn.org',
@@ -17,34 +18,26 @@ export default defineConfig({
1718

1819
],
1920
plugins: [
20-
starlightImageZoom({ showCaptions: true }),
21+
starlightImageZoom({showCaptions: true}),
2122
starlightFullViewMode({}),
23+
starlightDocSearch({
24+
appId: '5JABJKRLAV',
25+
apiKey: 'b8ddb53a3b807b350826f3ad0d1d67ee',
26+
indexName: 'Judaica DH Penn Website',
27+
}),
2228
],
2329
title: 'Judaica Exhibitions',
2430
description: 'Online exhibitions from Judaica at Penn Libraries',
25-
tableOfContents: { minHeadingLevel: 2, maxHeadingLevel: 6 },
31+
tableOfContents: {minHeadingLevel: 2, maxHeadingLevel: 6},
2632
lastUpdated: true,
27-
logo: { src: './src/assets/pomegranate.svg' },
28-
29-
30-
// ✅ FIX: pagefind must be an object, not an array
31-
pagefind: {
32-
// optional global tuning
33-
ranking: { pageLength: 0.7, termFrequency: 1.0, termSaturation: 0.9, termSimilarity: 1.0 },
34-
35-
// pull the main site index into this site’s search
36-
mergeIndex: [
37-
{
38-
bundlePath: 'https://judaicadhpenn.org/pagefind/',
39-
baseUrl: 'https://judaicadhpenn.org',
40-
indexWeight: 1.0,
41-
mergeFilter: { site: 'Main' },
42-
language: 'en',
43-
},
44-
],
45-
},
33+
logo: {src: './src/assets/pomegranate.svg'},
34+
4635
}),
4736

37+
38+
39+
40+
4841
],
4942

5043
adapter: netlify(),

0 commit comments

Comments
 (0)