chore: upgrade docusaurus
This commit is contained in:
1 parent
0a9ec71b14
commit
5450fee61f
7 files changed
+13813
-8021
No files matched your search
@@ -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"],
|
||||
},
|
||||
}),
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user