1
1
// @ts -check
2
2
// Note: type annotations allow type checking and IDEs autocompletion
3
3
4
- const codeTheme = require ( "prism-react-renderer/themes/dracula" ) ;
4
+ const { themes } = require ( "prism-react-renderer" ) ;
5
+ const codeTheme = themes . dracula ;
5
6
const remarkCodesandbox = require ( "remark-codesandbox" ) ;
6
7
const isProd = process . env . NODE_ENV === "production" ;
7
8
@@ -11,7 +12,7 @@ const config = {
11
12
// tagline: '',
12
13
url : "https://docs.metamask.io" ,
13
14
baseUrl : process . env . DEST || "/" , // overwritten in github action for staging / latest
14
- onBrokenLinks : "throw " ,
15
+ onBrokenLinks : "warn " ,
15
16
onBrokenMarkdownLinks : "warn" ,
16
17
favicon : "img/metamask-fox.svg" ,
17
18
@@ -86,7 +87,6 @@ const config = {
86
87
require ( "remark-docusaurus-tabs" ) ,
87
88
] ,
88
89
admonitions : {
89
- tag : ":::" ,
90
90
keywords : [
91
91
"info" ,
92
92
"success" ,
@@ -536,7 +536,7 @@ const config = {
536
536
} ,
537
537
prism : {
538
538
theme : codeTheme ,
539
- additionalLanguages : [ "csharp" , "swift " , "gradle " , "kotlin " ] ,
539
+ additionalLanguages : [ "csharp" , "gradle " , "bash " , "json " ] ,
540
540
} ,
541
541
algolia : {
542
542
// The application ID provided by Algolia
0 commit comments