How to implement custom code block prism color theme? #9340
Unanswered
digitalniakademie
asked this question in
Q&A
Replies: 1 comment
-
It's impossible to help you with a repro. You don't even share the compilation error you got. If you want help, help us help you by providing all the relevant infos and save us time by providing a repro. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have tried to create gdscript color theme for code blocks. I have duplicated prism theme into a new folder in \node_modules\prism-react-renderer\themes and created/edited the colors. Then I have added the code into docusaurus.config.js under Themeconfig:
prism: { theme: godotdarkCodeTheme, darkTheme: godotdarkCodeTheme, additionalLanguages: ['gdscript', 'glsl'], },I had this constant defined at the beginning:
const godotdarkCodeTheme = require('prism-react-renderer/themes/godotDark');Everything worked fine locally, but it does not compile on the server. What is the correct way to implement custom themes for code block? Where to put those files?
Beta Was this translation helpful? Give feedback.
All reactions