diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e5a34a97..2e332f718 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -34,6 +34,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ([#1425](https://github.com/o1-labs/mina-rust/issues/1425)) - **Website**: add documentation guidelines ([#1493](https://github.com/o1-labs/mina-rust/pull/1493)) +- **Website**: add search bar with Algolia + ([#1493](https://github.com/o1-labs/mina-rust/pull/1509)) ### Changed diff --git a/website/docusaurus.config.ts b/website/docusaurus.config.ts index 0fa922769..f5d15606a 100644 --- a/website/docusaurus.config.ts +++ b/website/docusaurus.config.ts @@ -29,6 +29,13 @@ const config: Config = { onBrokenMarkdownLinks: 'throw', onBrokenAnchors: 'warn', + // Markdown configuration + markdown: { + hooks: { + onBrokenMarkdownLinks: 'throw', + }, + }, + // Static directories for assets staticDirectories: ['static'], @@ -94,6 +101,19 @@ const config: Config = { {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.'}, {property: 'twitter:image', content: 'https://o1-labs.github.io/mina-rust/img/rust-node-social-card.svg'}, ], + + // Algolia search configuration + // Note: These credentials are safe to commit publicly. + // The apiKey is search-only with read permissions. + algolia: { + appId: '5PSH5CKRTB', + apiKey: '7da6823405ea3b6e55b9d6d8fef3526a', + indexName: 'mina-rust', + contextualSearch: true, + searchParameters: {}, + searchPagePath: 'search', + }, + navbar: { title: '', logo: {