Skip to content

Commit 66f732c

Browse files
committed
switch to algolia from client-side search
modified: docusaurus.config.ts modified: package.json modified: pnpm-lock.yaml modified: src/css/custom.css
1 parent 1ea9479 commit 66f732c

4 files changed

Lines changed: 50 additions & 367 deletions

File tree

docusaurus.config.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ const config: Config = {
4444
locales: ["en"],
4545
},
4646

47-
plugins: ["docusaurus-lunr-search"],
48-
4947
presets: [
5048
[
5149
"classic",
@@ -171,7 +169,8 @@ const config: Config = {
171169
items: [
172170
{
173171
label: "Feedback",
174-
to: "https://docs.google.com/forms/d/e/1FAIpQLSeHnmkPdR_IvWnT6a7U_V3RpfmQrpS8hjxI11FNnsZMlrBa4g/viewform",
172+
to:
173+
"https://docs.google.com/forms/d/e/1FAIpQLSeHnmkPdR_IvWnT6a7U_V3RpfmQrpS8hjxI11FNnsZMlrBa4g/viewform",
175174
},
176175
{
177176
label: "Announcements",
@@ -198,6 +197,14 @@ const config: Config = {
198197
"r",
199198
],
200199
},
200+
201+
algolia: {
202+
appId: "5Y8Q0MVP6Y",
203+
apiKey: "765882f24d95c1462561a66b67f33fb8",
204+
indexName: "algolia-crawler",
205+
searchPagePath: "search",
206+
insights: true,
207+
},
201208
} satisfies Preset.ThemeConfig,
202209

203210
future: {

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@
2828
"@radix-ui/react-dialog": "^1.1.15",
2929
"@radix-ui/react-tooltip": "^1.2.8",
3030
"clsx": "^2.1.1",
31-
"docusaurus-lunr-search": "^3.6.0",
3231
"lucide-react": "^0.514.0",
33-
"lunr": "^2.3.9",
3432
"prism-react-renderer": "^2.4.1",
3533
"react": "^19.2.4",
3634
"react-dom": "^19.2.4",

0 commit comments

Comments
 (0)