Skip to content

Commit

Permalink
Add algolia search
Browse files Browse the repository at this point in the history
  • Loading branch information
r-kujawa committed Mar 15, 2024
1 parent 1b4a4c5 commit be84e65
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
node_modules
**/.vitepress/dist
**/.vitepress/cache
.env
11 changes: 11 additions & 0 deletions orchestration/.vitepress/config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { defineConfig } from 'vitepress'
import { config } from '../../resources/js/config.mjs'
import dotenv from 'dotenv';
dotenv.config();

// https://vitepress.dev/reference/site-config
export default defineConfig({
Expand All @@ -19,6 +21,15 @@ export default defineConfig({
{ text: 'Guide', link: '/guide/what-is-orchestration' }
],

search: {
provider: 'algolia',
options: {
appId: process.env.ALGOLIA_APP_ID,
apiKey: process.env.ALGOLIA_API_KEY,
indexName: process.env.ALGOLIA_ORCHESTRATION_INDEX
}
},

sidebar: [
{
text: 'Introduction',
Expand Down
13 changes: 13 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
@@ -1,5 +1,6 @@
{
"devDependencies": {
"dotenv": "^16.4.5",
"vitepress": "^1.0.0-rc.44"
},
"scripts": {
Expand Down

0 comments on commit be84e65

Please sign in to comment.