Skip to content

Commit 8f7eef7

Browse files
authored
Merge pull request #1509 from o1-labs/dw/searchbar-docusaurus
Website: add searchbar to docusaurus using Algolia
2 parents 173cfe2 + 21fab39 commit 8f7eef7

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3434
([#1425](https://github.com/o1-labs/mina-rust/issues/1425))
3535
- **Website**: add documentation guidelines
3636
([#1493](https://github.com/o1-labs/mina-rust/pull/1493))
37+
- **Website**: add search bar with Algolia
38+
([#1493](https://github.com/o1-labs/mina-rust/pull/1509))
3739

3840
### Changed
3941

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)