Skip to content

[WIP] Add Search Bar to Navbar to Improve User Experience #91

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ALGOLIA_APP_ID=75TADY3IK2
ALGOLIA_API_KEY=05b54936b63721c91805e55ec170ae6b
ALGOLIA_INDEX_NAME=pecanprojectio
7 changes: 7 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/** @type {import('@docusaurus/types').DocusaurusConfig} */
require('dotenv').config();
module.exports = {
title: "PEcAn Project",
tagline:
Expand Down Expand Up @@ -123,6 +124,12 @@ module.exports = {
hideable: true
},
},
algolia: {
appId: process.env.ALGOLIA_APP_ID,
apiKey: process.env.ALGOLIA_API_KEY,
indexName: process.env.ALGOLIA_INDEX_NAME,
contextualSearch: false,
},
},
presets: [
[
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"@mdx-js/react": "^3.0.1",
"@svgr/webpack": "^8.1.0",
"clsx": "^1.1.1",
"dotenv": "^16.5.0",
"file-loader": "^6.2.0",
"node": "^22.7.0",
"react": "^18.3.1",
Expand Down
Loading