Skip to content

Commit 4eed072

Browse files
author
Ahkshaey Ravi
committed
CO-622-initial-commit-changeset
1 parent 9a99420 commit 4eed072

File tree

5 files changed

+13
-7
lines changed

5 files changed

+13
-7
lines changed

.github/workflows/validate.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- uses: actions/setup-node@v3
1919
with:
2020
node-version: "18"
21-
- uses: actions/cache@v2
21+
- uses: actions/cache@v3
2222
with:
2323
path: |
2424
node_modules
@@ -37,7 +37,7 @@ jobs:
3737
- uses: actions/setup-node@v3
3838
with:
3939
node-version: "18"
40-
- uses: actions/cache@v2
40+
- uses: actions/cache@v3
4141
with:
4242
path: |
4343
node_modules
@@ -59,7 +59,7 @@ jobs:
5959
- uses: actions/setup-node@v3
6060
with:
6161
node-version: "18"
62-
- uses: actions/cache@v2
62+
- uses: actions/cache@v3
6363
with:
6464
path: |
6565
node_modules
@@ -79,7 +79,7 @@ jobs:
7979
- uses: actions/setup-node@v3
8080
with:
8181
node-version: "18"
82-
- uses: actions/cache@v2
82+
- uses: actions/cache@v3
8383
with:
8484
path: |
8585
node_modules

demo/.env.sample

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ALGOLIA_API_KEY=xxxxxxxx
2+
ALGOLIA_APP_ID=yyyyyyyy
3+
ALGOLIA_INDEX_NAME=zzzzzzzz

demo/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
.env.development.local
1515
.env.test.local
1616
.env.production.local
17+
.env
1718

1819
npm-debug.log*
1920
yarn-debug.log*

demo/docusaurus.config.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Note: type annotations allow type checking and IDEs autocompletion
33

44
const { DOCUSAURUS_VERSION } = require("@docusaurus/utils");
5+
require("dotenv").config();
56

67
/** @type {import('@docusaurus/types').Config} */
78
const config = {
@@ -190,9 +191,9 @@ const config = {
190191
},
191192
],
192193
algolia: {
193-
apiKey: "441074cace987cbf4640c039ebed303c",
194-
appId: "J0EABTYI1A",
195-
indexName: "docusaurus-openapi",
194+
apiKey: process.env.ALGOLIA_API_KEY,
195+
appId: process.env.ALGOLIA_APP_ID,
196+
indexName: process.env.ALGOLIA_INDEX_NAME,
196197
},
197198
announcementBar: {
198199
id: "announcementBar_1",

demo/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"@mxenabled/docusaurus-plugin-openapi-docs": "^2.0.3",
2929
"@mxenabled/docusaurus-theme-openapi-docs": "^2.0.3",
3030
"clsx": "^1.1.1",
31+
"dotenv": "^17.3.1",
3132
"prism-react-renderer": "^2.1.0",
3233
"react": "^18.2.0",
3334
"react-dom": "^18.2.0"

0 commit comments

Comments
 (0)