Skip to content

Commit 5f3cfbb

Browse files
feat(dependency): updated docusaurus to v3 (#1304)
* feat(dependency): updated docusaurus to v3 * feat(dependency): updated node to v.18 * feat(dependency): rollback node to v.16 * feat(dependency): added package-json * feat(dependency): updated yarn.lock * upgrade node and prism-react-renderer * update yarn.lock * feat: updated onbroken links --------- Co-authored-by: Alexandra Tran <[email protected]>
1 parent 2244deb commit 5f3cfbb

File tree

7 files changed

+15463
-12794
lines changed

7 files changed

+15463
-12794
lines changed

.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v16
1+
v18

docusaurus.config.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// @ts-check
22
// Note: type annotations allow type checking and IDEs autocompletion
33

4-
const codeTheme = require("prism-react-renderer/themes/dracula");
4+
const { themes } = require("prism-react-renderer");
5+
const codeTheme = themes.dracula;
56
const remarkCodesandbox = require("remark-codesandbox");
67
const isProd = process.env.NODE_ENV === "production";
78

@@ -11,7 +12,7 @@ const config = {
1112
// tagline: '',
1213
url: "https://docs.metamask.io",
1314
baseUrl: process.env.DEST || "/", // overwritten in github action for staging / latest
14-
onBrokenLinks: "throw",
15+
onBrokenLinks: "warn",
1516
onBrokenMarkdownLinks: "warn",
1617
favicon: "img/metamask-fox.svg",
1718

@@ -86,7 +87,6 @@ const config = {
8687
require("remark-docusaurus-tabs"),
8788
],
8889
admonitions: {
89-
tag: ":::",
9090
keywords: [
9191
"info",
9292
"success",
@@ -536,7 +536,7 @@ const config = {
536536
},
537537
prism: {
538538
theme: codeTheme,
539-
additionalLanguages: ["csharp","swift","gradle","kotlin"],
539+
additionalLanguages: ["csharp","gradle","bash","json"],
540540
},
541541
algolia: {
542542
// The application ID provided by Algolia

0 commit comments

Comments
 (0)