summaryrefslogtreecommitdiffstats
path: root/docusaurus
diff options
context:
space:
mode:
Diffstat (limited to 'docusaurus')
-rw-r--r--docusaurus/docusaurus.config.js5
-rw-r--r--docusaurus/package.json21
2 files changed, 14 insertions, 12 deletions
diff --git a/docusaurus/docusaurus.config.js b/docusaurus/docusaurus.config.js
index 0c1833c..12deb33 100644
--- a/docusaurus/docusaurus.config.js
+++ b/docusaurus/docusaurus.config.js
@@ -4,8 +4,9 @@
/** @type { { config: { libredirect: false } } } */
const wolfree = require("./wolfree.config.js");
-const lightCodeTheme = require("prism-react-renderer/themes/github");
-const darkCodeTheme = require("prism-react-renderer/themes/dracula");
+const {themes} = require('prism-react-renderer');
+const lightCodeTheme = themes.github;
+const darkCodeTheme = themes.dracula;
/** @type {import('@docusaurus/types').Config} */
module.exports = {
diff --git a/docusaurus/package.json b/docusaurus/package.json
index a27490d..8b982ca 100644
--- a/docusaurus/package.json
+++ b/docusaurus/package.json
@@ -15,21 +15,22 @@
"typecheck": "tsc"
},
"dependencies": {
- "@docusaurus/core": "2.4.3",
- "@docusaurus/preset-classic": "2.4.3",
+ "@docusaurus/core": "3.1.1",
+ "@docusaurus/preset-classic": "3.1.1",
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
- "@mdx-js/react": "^1.6.22",
+ "@mdx-js/react": "^3.0.0",
"@mui/material": "^5.14.10",
"clsx": "^1.2.1",
- "prism-react-renderer": "^1.3.5",
- "react": "^17.0.2",
- "react-dom": "^17.0.2"
+ "prism-react-renderer": "^2.1.0",
+ "react": "^18.2.0",
+ "react-dom": "^18.2.0"
},
"devDependencies": {
- "@docusaurus/module-type-aliases": "2.4.3",
- "@tsconfig/docusaurus": "^1.0.5",
- "typescript": "^4.7.4"
+ "@docusaurus/module-type-aliases": "3.1.1",
+ "@docusaurus/tsconfig": "3.1.1",
+ "@types/react": "^18.2.29",
+ "typescript": "~5.2.2"
},
"browserslist": {
"production": [
@@ -44,6 +45,6 @@
]
},
"engines": {
- "node": ">=16.14"
+ "node": ">=18"
}
}