Skip to content

Commit ab6155d

Browse files
committed
Upgrade: Docusaurus 2.0.0-beta.18 → 3.9.2, React 17 → 18, and all dependencies to latest versions
- Upgraded @docusaurus/core and @docusaurus/preset-classic to 3.9.2 - Upgraded React and React-DOM to 18.3.1 - Upgraded @mdx-js/react to 3.1.1 - Upgraded prism-react-renderer to 2.4.1 (fixed import syntax) - Upgraded react-icons to 5.5.0 - Upgraded clsx to 2.1.1 - Fixed prism-react-renderer import for v2 API - Fixed onBrokenMarkdownLinks deprecation warning - Reduced vulnerabilities from 28 to 3 (only in dev dependency nodemon)
1 parent 26829bf commit ab6155d

3 files changed

Lines changed: 14749 additions & 19337 deletions

File tree

docusaurus.config.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
// @ts-check
22
// Note: type annotations allow type checking and IDEs autocompletion
33

4-
const lightCodeTheme = require("prism-react-renderer/themes/github");
5-
const darkCodeTheme = require("prism-react-renderer/themes/dracula");
4+
const {themes} = require('prism-react-renderer');
5+
const lightCodeTheme = themes.github;
6+
const darkCodeTheme = themes.dracula;
67

78
/** @type {import('@docusaurus/types').Config} */
89
const config = {
@@ -11,7 +12,11 @@ const config = {
1112
url: "https://kubesimplify.com",
1213
baseUrl: "/",
1314
onBrokenLinks: "ignore", // We will change this to "throw" when proper setup is done
14-
onBrokenMarkdownLinks: "warn",
15+
markdown: {
16+
hooks: {
17+
onBrokenMarkdownLinks: "warn",
18+
},
19+
},
1520
favicon: "img/favicon.ico",
1621
organizationName: "kubesimplify", // Usually your GitHub org/user name.
1722
projectName: "website", // Usually your repo name.

0 commit comments

Comments
 (0)