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 11// @ts -check
22// Note: type annotations allow type checking and IDEs autocompletion
33
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" ;
65
76/** @type {import('@docusaurus/types').Config } */
87const config = {
@@ -145,11 +144,11 @@ const config = {
145144 copyright : `Copyright © ${ new Date ( ) . getFullYear ( ) } Teclado Ltd. Built with Docusaurus.` ,
146145 } ,
147146 prism : {
148- theme : lightCodeTheme ,
149- darkTheme : darkCodeTheme ,
147+ theme : themes . okaidia ,
148+ darkTheme : themes . dracula ,
150149 additionalLanguages : [ "docker" ] ,
151150 } ,
152151 } ) ,
153152} ;
154153
155- module . exports = config ;
154+ export default config ;
You can’t perform that action at this time.
0 commit comments