chore: upgrade docusaurus

This commit is contained in:
cqh963852 committed 2025-07-16 23:49:50 +08:00
1 parent 0a9ec71b14
commit 5450fee61f
7 files changed
+13813 -8021

No files matched your search

+7 -5
View File
@@ -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 = {
@@ -16,7 +17,7 @@ const config = {
organizationName: "idealjs",
projectName: "full-stack-tutorial",
trailingSlash: false,
presets: [
[
"classic",
@@ -66,8 +67,9 @@ const config = {
copyright: `Copyright © ${new Date().getFullYear()} idealjs.com. Built with Docusaurus.`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
theme: lightTheme,
darkTheme: darkTheme,
additionalLanguages: ["bash", "diff", "json"],
},
}),
};