Skip to content

Commit 4f610d0

Browse files
committed
Website: add searchbar to docusaurus using Algolia
1 parent 543cd9d commit 4f610d0

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

website/docusaurus.config.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ const config: Config = {
2929
onBrokenMarkdownLinks: 'throw',
3030
onBrokenAnchors: 'warn',
3131

32+
// Markdown configuration
33+
markdown: {
34+
hooks: {
35+
onBrokenMarkdownLinks: 'throw',
36+
},
37+
},
38+
3239
// Static directories for assets
3340
staticDirectories: ['static'],
3441

@@ -94,6 +101,19 @@ const config: Config = {
94101
{property: 'twitter:description', content: 'The Mina Rust Node is a Rust implementation of the Mina Protocol (originally written in OCaml) - a lightweight blockchain using zero knowledge proofs.'},
95102
{property: 'twitter:image', content: 'https://o1-labs.github.io/mina-rust/img/rust-node-social-card.svg'},
96103
],
104+
105+
// Algolia search configuration
106+
// Note: These credentials are safe to commit publicly.
107+
// The apiKey is search-only with read permissions.
108+
algolia: {
109+
appId: '5PSH5CKRTB',
110+
apiKey: '7da6823405ea3b6e55b9d6d8fef3526a',
111+
indexName: 'mina-rust',
112+
contextualSearch: true,
113+
searchParameters: {},
114+
searchPagePath: 'search',
115+
},
116+
97117
navbar: {
98118
title: '',
99119
logo: {

0 commit comments

Comments
 (0)