Skip to content
Merged
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.exmaple
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ALGOLIA_APP_ID=your_algolia_app_id
ALGOLIA_API_KEY=your_algolia_api_key
ALGOLIA_INDEX_NAME=your_algolia_index_name
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

# Misc
.DS_Store
.env
.env.local
.env.development.local
.env.test.local
Expand Down
8 changes: 5 additions & 3 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// Note: type annotations allow type checking and IDEs autocompletion

const { themes } = require("prism-react-renderer");
require('dotenv').config();

const lightCodeTheme = themes.github;
const darkCodeTheme = themes.dracula;

Expand Down Expand Up @@ -136,12 +138,12 @@ const config = {
},
algolia: {
// The application ID provided by Algolia
appId: "0OMUMCQZVV",
appId: process.env.ALGOLIA_APP_ID,

// Public API key: it is safe to commit it
apiKey: "6795de0f612eebe17018f8061a9ef18e",
apiKey: process.env.ALGOLIA_API_KEY,

indexName: "pearai",
indexName: process.env.ALGOLIA_INDEX_NAME,

// Optional: see doc section below
contextualSearch: true,
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 @@ -21,6 +21,7 @@
"@mdx-js/react": "^3.0.0",
"clsx": "^2.1.0",
"docusaurus-json-schema-plugin": "^1.11.0",
"dotenv": "^16.4.5",
"prism-react-renderer": "^2.3.1",
"react": "^18.2.0",
"react-dom": "^18.2.0"
Expand Down