Skip to content

Commit

Permalink
Update docusaurus to v3 (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
inahga authored Dec 8, 2023
1 parent ab32233 commit d48b095
Show file tree
Hide file tree
Showing 3 changed files with 3,140 additions and 1,588 deletions.
9 changes: 5 additions & 4 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion

const lightCodeTheme = require("prism-react-renderer/themes/github");
const darkCodeTheme = require("prism-react-renderer/themes/dracula");
const { themes } = require("prism-react-renderer");
const lightTheme = themes.github;
const darkTheme = themes.dracula;

/** @type {import('@docusaurus/types').Config} */
const config = {
Expand Down Expand Up @@ -91,8 +92,8 @@ const config = {
copyright: `Copyright © ${new Date().getFullYear()} Internet Security Research Group. Built with Docusaurus.`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
theme: lightTheme,
darkTheme: darkTheme,
},
}),
};
Expand Down
17 changes: 9 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,19 @@
"typecheck": "tsc"
},
"dependencies": {
"@docusaurus/core": "2.4.3",
"@docusaurus/preset-classic": "2.4.3",
"@mdx-js/react": "^1.6.22",
"@docusaurus/core": "^3.0.1",
"@docusaurus/preset-classic": "^3.0.1",
"@mdx-js/react": "^3.0.0",
"clsx": "^2.0.0",
"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": "^3.0.1",
"@docusaurus/tsconfig": "^3.0.1",
"@types/react": "^18.2.29",
"prettier": "^3.1.0",
"@docusaurus/module-type-aliases": "3.0.1",
"@tsconfig/docusaurus": "^2.0.2",
"typescript": "^5.3.2"
},
"browserslist": {
Expand Down
Loading

0 comments on commit d48b095

Please sign in to comment.