mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-01 10:22:30 +02:00
feat(v2): add support another Prism theme for dark mode (#1984)
* feat(v2): add support another Prism theme for dark mode * add dynamically change Prism theme * Prepare for review * PR review changes * feat(v2): useThemeContext Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
This commit is contained in:
parent
dad50823b6
commit
92c68ed742
9 changed files with 84 additions and 9 deletions
|
@ -59,6 +59,10 @@ module.exports = {
|
|||
],
|
||||
],
|
||||
themeConfig: {
|
||||
prism: {
|
||||
theme: require('prism-react-renderer/themes/github'),
|
||||
darkTheme: require('prism-react-renderer/themes/dracula'),
|
||||
},
|
||||
image: 'img/docusaurus.png',
|
||||
gtag: {
|
||||
trackingID: 'UA-141789564-1',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue