File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed
Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -161,8 +161,9 @@ const onAfterDataTransformation = (data) => {
161161// @ts -check
162162// Note: type annotations allow type checking and IDEs autocompletion
163163
164- //const lightCodeTheme = require('prism-react-renderer/themes/github');
165- //const darkCodeTheme = require('prism-react-renderer/themes/dracula');
164+ const { themes : prismThemes } = require ( 'prism-react-renderer' ) ;
165+ const lightCodeTheme = prismThemes . github ;
166+ const darkCodeTheme = prismThemes . vsDark ; //vsDark
166167
167168/** @type {import('@docusaurus/types').Config } */
168169const config = {
@@ -356,8 +357,9 @@ const config = {
356357 ]
357358 } ,
358359 prism : {
359- //theme: lightCodeTheme,
360- //darkTheme: darkCodeTheme,
360+ additionalLanguages : [ 'csharp' , 'php' ] ,
361+ theme : lightCodeTheme ,
362+ darkTheme : darkCodeTheme ,
361363 }
362364 } )
363365} ;
Original file line number Diff line number Diff line change 2525 --ifm-list-item-margin : 0.7rem ;
2626}
2727
28- /* deprecated from v3.1
28+
2929html [data-theme = dark ] {
3030 --ifm-color-primary : # 26adf7 ;
31+ --ifm-background-color : # 111111 ;
3132}
32-
33+ /* deprecated from v3.1
3334.docusaurus-highlight-code-line {
3435 background-color: rgb(210, 213, 214);
3536 display: block;
You can’t perform that action at this time.
0 commit comments