Skip to content

Commit

Permalink
feat(dependency): updated docusaurus to v3 (#1304)
Browse files Browse the repository at this point in the history
* 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 <alexandratran@protonmail.com>
  • Loading branch information
TrofimovAnton85 and alexandratran authored May 23, 2024
1 parent 2244deb commit 5f3cfbb
Show file tree
Hide file tree
Showing 7 changed files with 15,463 additions and 12,794 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16
v18
8 changes: 4 additions & 4 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion

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

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

Expand Down Expand Up @@ -86,7 +87,6 @@ const config = {
require("remark-docusaurus-tabs"),
],
admonitions: {
tag: ":::",
keywords: [
"info",
"success",
Expand Down Expand Up @@ -536,7 +536,7 @@ const config = {
},
prism: {
theme: codeTheme,
additionalLanguages: ["csharp","swift","gradle","kotlin"],
additionalLanguages: ["csharp","gradle","bash","json"],
},
algolia: {
// The application ID provided by Algolia
Expand Down
Loading

0 comments on commit 5f3cfbb

Please sign in to comment.