Skip to content

Commit

Permalink
add algolia search
Browse files Browse the repository at this point in the history
  • Loading branch information
Rahat-ch committed Jul 22, 2024
1 parent bc57fb6 commit 13aa622
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
.env.development.local
.env.test.local
.env.production.local
.env

npm-debug.log*
yarn-debug.log*
Expand Down
17 changes: 17 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// See: https://docusaurus.io/docs/api/docusaurus-config

import { themes as prismThemes } from "prism-react-renderer";
import 'dotenv/config';

/** @type {import('@docusaurus/types').Config} */
const config = {
Expand Down Expand Up @@ -59,7 +60,23 @@ const config = {

themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */

({
algolia: {
// The application ID provided by Algolia
appId: process.env.ALGOLIA_APPID,

// Public API key: it is safe to commit it
apiKey: process.env.ALGOLIA_APIKEY,

indexName: 'movementnetwork',

// Optional: Algolia search parameters
searchParameters: {},

// Optional: path for search page that enabled by default (`false` to disable it)
searchPagePath: 'search',
},
// Replace with your project's social card
image: "img/movementlabs-social-card.png",
navbar: {
Expand Down
12 changes: 12 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"@docusaurus/preset-classic": "3.4.0",
"@mdx-js/react": "^3.0.0",
"clsx": "^2.0.0",
"dotenv": "^16.4.5",
"prism-react-renderer": "^2.3.0",
"react": "^18.0.0",
"react-dom": "^18.0.0"
Expand Down

0 comments on commit 13aa622

Please sign in to comment.