Skip to content
Closed
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
8 changes: 4 additions & 4 deletions .github/workflows/validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: "18"
- uses: actions/cache@v2
- uses: actions/cache@v4
with:
path: |
node_modules
Expand All @@ -37,7 +37,7 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: "18"
- uses: actions/cache@v2
- uses: actions/cache@v4
with:
path: |
node_modules
Expand All @@ -59,7 +59,7 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: "18"
- uses: actions/cache@v2
- uses: actions/cache@v4
with:
path: |
node_modules
Expand All @@ -79,7 +79,7 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: "18"
- uses: actions/cache@v2
- uses: actions/cache@v4
with:
path: |
node_modules
Expand Down
3 changes: 3 additions & 0 deletions demo/.env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ALGOLIA_API_KEY=xxxxxxxx
ALGOLIA_APP_ID=yyyyyyyy
ALGOLIA_INDEX_NAME=zzzzzzzz
1 change: 1 addition & 0 deletions demo/.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
7 changes: 4 additions & 3 deletions demo/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Note: type annotations allow type checking and IDEs autocompletion

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

/** @type {import('@docusaurus/types').Config} */
const config = {
Expand Down Expand Up @@ -190,9 +191,9 @@ const config = {
},
],
algolia: {
apiKey: "441074cace987cbf4640c039ebed303c",
appId: "J0EABTYI1A",
indexName: "docusaurus-openapi",
apiKey: process.env.ALGOLIA_API_KEY,
appId: process.env.ALGOLIA_APP_ID,
indexName: process.env.ALGOLIA_INDEX_NAME,
},
announcementBar: {
id: "announcementBar_1",
Expand Down
3 changes: 2 additions & 1 deletion demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"@mxenabled/docusaurus-plugin-openapi-docs": "^2.0.3",
"@mxenabled/docusaurus-theme-openapi-docs": "^2.0.3",
"clsx": "^1.1.1",
"prism-react-renderer": "^2.1.0",
"dotenv": "^17.2.3",
"prism-react-renderer": "^2.3.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
2 changes: 1 addition & 1 deletion demo/src/utils/prismDark.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

import darkTheme from "prism-react-renderer/themes/vsDark/index.cjs.js";
import darkTheme from "prism-react-renderer/themes/vsDark";

export default {
plain: {
Expand Down
2 changes: 1 addition & 1 deletion demo/src/utils/prismLight.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

import lightTheme from "prism-react-renderer/themes/github/index.cjs.js";
import lightTheme from "prism-react-renderer/themes/github";

export default {
...lightTheme,
Expand Down
Loading
Loading