Skip to content

Commit

Permalink
upgrade docusaurus v2 > v3
Browse files Browse the repository at this point in the history
  • Loading branch information
kfarr committed Nov 1, 2023
1 parent 75a452b commit d664989
Show file tree
Hide file tree
Showing 3 changed files with 12,257 additions and 8,906 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 @@ -127,8 +128,8 @@ const config = {
copyright: `Copyright © ${new Date().getFullYear()} 3DStreet LLC. 3DStreet is a trademark of 3DStreet LLC.`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
theme: lightTheme,
darkTheme: darkTheme,
},
}),
};
Expand Down
Loading

0 comments on commit d664989

Please sign in to comment.