File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 1
1
// @ts -check
2
2
// Note: type annotations allow type checking and IDEs autocompletion
3
3
4
- const lightCodeTheme = require ( "prism-react-renderer/themes/okaidia" ) ;
5
- const darkCodeTheme = require ( "prism-react-renderer/themes/dracula" ) ;
4
+ import { Highlight , themes } from "prism-react-renderer" ;
6
5
7
6
/** @type {import('@docusaurus/types').Config } */
8
7
const config = {
@@ -145,11 +144,11 @@ const config = {
145
144
copyright : `Copyright © ${ new Date ( ) . getFullYear ( ) } Teclado Ltd. Built with Docusaurus.` ,
146
145
} ,
147
146
prism : {
148
- theme : lightCodeTheme ,
149
- darkTheme : darkCodeTheme ,
147
+ theme : themes . okaidia ,
148
+ darkTheme : themes . dracula ,
150
149
additionalLanguages : [ "docker" ] ,
151
150
} ,
152
151
} ) ,
153
152
} ;
154
153
155
- module . exports = config ;
154
+ export default config ;
You can’t perform that action at this time.
0 commit comments