mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-26 21:18:47 +02:00
chore: upgrade syntax highlighting dependencies, prism-react-renderer
to v2, react-live
to v4 (#9316)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
This commit is contained in:
parent
df42d891c2
commit
dceaae41d7
26 changed files with 124 additions and 137 deletions
|
@ -5,7 +5,9 @@
|
|||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
import darkTheme from 'prism-react-renderer/themes/vsDark/index.cjs.js';
|
||||
import {themes} from 'prism-react-renderer';
|
||||
|
||||
const darkTheme = themes.vsDark;
|
||||
|
||||
export default {
|
||||
plain: {
|
||||
|
|
|
@ -5,7 +5,9 @@
|
|||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
import lightTheme from 'prism-react-renderer/themes/github/index.cjs.js';
|
||||
import {themes} from 'prism-react-renderer';
|
||||
|
||||
const lightTheme = themes.github;
|
||||
|
||||
export default {
|
||||
...lightTheme,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue