Skip to content

Commit

Permalink
Fix error with module 'prism-react-renderer/themes/github' not being …
Browse files Browse the repository at this point in the history
  • Loading branch information
rm3l committed Jul 3, 2023
1 parent 2bf3a62 commit 62b6f9d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions docs/website/docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/oceanicNext');
const prismReactRenderer = require('prism-react-renderer');
const path = require('path');

/** @type {import('@docusaurus/types').DocusaurusConfig} */
Expand Down Expand Up @@ -116,8 +115,8 @@ module.exports = {
copyright: `Copyright © ${new Date().getFullYear()} odo Authors -- All Rights Reserved <br> Apache License 2.0 open source project`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
theme: prismReactRenderer.themes.github,
darkTheme: prismReactRenderer.themes.oceanicNext,
},
algolia: {
appId: '7RBQSTPIA4',
Expand Down

0 comments on commit 62b6f9d

Please sign in to comment.