Skip to content

Commit

Permalink
fix: themes after upgrade to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
shamilsan committed Nov 28, 2023
1 parent 17ea194 commit f1727e3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import lightCodeTheme from 'prism-react-renderer';
import darkCodeTheme from 'prism-react-renderer';
import {themes as prismThemes} from 'prism-react-renderer';
import redirects from './redirects.json';

import remarkMath from 'remark-math';
Expand Down Expand Up @@ -66,8 +65,8 @@ export default {
],
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
additionalLanguages: ['rust', 'toml'],
},
algolia: {
Expand Down

0 comments on commit f1727e3

Please sign in to comment.