From d820335f0b87f4c3663ee9b563226bde6f49fb03 Mon Sep 17 00:00:00 2001 From: Serhii Shymkiv Date: Tue, 4 Jun 2024 23:43:51 +0300 Subject: [PATCH 1/2] Remove pre-genesis timestamp nodes state notes (for past-genesis docs). --- docs/welcome.mdx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/docs/welcome.mdx b/docs/welcome.mdx index 850bd6e1a..7acc357b5 100644 --- a/docs/welcome.mdx +++ b/docs/welcome.mdx @@ -12,11 +12,7 @@ import HomepageFeatures from "@site/src/components/features/HomepageFeatures"; :::caution Berkeley Mainnet release has landed Please make sure to upgrade your mina nodes to **3.0.0** ([Release notes](https://github.com/MinaProtocol/mina/releases/tag/3.0.0)) -[See instructions on how to upgrade your Mina node](/node-operators/requirements) - -**Note**: -Non-seed nodes will remain in `Bootstrap` status until such a point as block production begins at **`00:00UTC on June 5th`**. During this period of no block production, nodes will automatically **terminate after 25 minutes**, this is **expected behavior**. -Please ensure you have configured your nodes to [auto-restart](/node-operators/requirements#node-auto-restart) on crash to have them automatically try and reconnect. +[See instructions on how to upgrade your Mina node](/node-operators/requirements). ::: From 015cf5ee5036c07bd355cfea344a094e4cdb4644 Mon Sep 17 00:00:00 2001 From: Serhii Shymkiv Date: Wed, 5 Jun 2024 12:16:03 +0300 Subject: [PATCH 2/2] Added 'successTip' admonition with green background color. --- docs/welcome.mdx | 2 +- docusaurus.config.js | 1 + src/scss/utilities/_variables.scss | 1 + src/theme/Admonition/index.tsx | 18 ++++++++++++++++-- src/theme/Admonition/styles.module.scss | 4 ++++ 5 files changed, 23 insertions(+), 3 deletions(-) diff --git a/docs/welcome.mdx b/docs/welcome.mdx index 734d885a9..81d3ac2b4 100644 --- a/docs/welcome.mdx +++ b/docs/welcome.mdx @@ -9,7 +9,7 @@ import HomepageFeatures from "@site/src/components/features/HomepageFeatures"; # Welcome -:::caution Berkeley Mainnet release has landed +:::successTip Berkeley Mainnet release has landed Please make sure to upgrade your mina nodes to **3.0.0** ([Release notes](https://github.com/MinaProtocol/mina/releases/tag/3.0.0)) [See instructions on how to upgrade your Mina node](/berkeley-upgrade/requirements). diff --git a/docusaurus.config.js b/docusaurus.config.js index 8d7175dcb..99bd9145a 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -258,6 +258,7 @@ module.exports = { 'caution', 'danger', 'experimental', + 'successTip', ], }, }, diff --git a/src/scss/utilities/_variables.scss b/src/scss/utilities/_variables.scss index cbf424c42..fb4cd2f83 100644 --- a/src/scss/utilities/_variables.scss +++ b/src/scss/utilities/_variables.scss @@ -14,3 +14,4 @@ $mina-white: #ffffff; $mina-error: #e93939; $mina-purple: #5362c8; $mina-lavender: #cab2ff; +$mina-green: green; diff --git a/src/theme/Admonition/index.tsx b/src/theme/Admonition/index.tsx index a1799b760..a36cd0b55 100644 --- a/src/theme/Admonition/index.tsx +++ b/src/theme/Admonition/index.tsx @@ -1,6 +1,6 @@ -import React, { type ReactNode } from 'react'; import Translate from '@docusaurus/Translate'; import type { Props } from '@theme/Admonition'; +import React, { type ReactNode } from 'react'; import styles from './styles.module.scss'; @@ -90,7 +90,6 @@ const AdmonitionConfigs: Record = { ), }, - note: { infimaClassName: 'secondary', iconComponent: NoteIcon, @@ -151,6 +150,18 @@ const AdmonitionConfigs: Record = { ), }, + successTip: { + infimaClassName: 'green', + iconComponent: NoteIcon, + label: ( + + successTip + + ), + }, }; // Legacy aliases, undocumented but kept for retro-compatibility @@ -159,6 +170,7 @@ const aliases = { important: 'info', success: 'tip', warning: 'danger', + successTip: 'successTip', } as const; function getAdmonitionConfig(unsafeType: string): AdmonitionConfig { @@ -230,6 +242,8 @@ export default function Admonition(props: Props): JSX.Element { admonitionStyles = styles.admonitionDanger; } else if (type === 'experimental') { admonitionStyles = styles.admonitionExperimental; + } else if (type === 'successTip') { + admonitionStyles = styles.admonitionSuccessTip; } return ( diff --git a/src/theme/Admonition/styles.module.scss b/src/theme/Admonition/styles.module.scss index dd8972d95..dc2854a97 100644 --- a/src/theme/Admonition/styles.module.scss +++ b/src/theme/Admonition/styles.module.scss @@ -54,6 +54,10 @@ @include admonition($backgroundColor: variables.$mina-orange); } +.admonitionSuccessTip { + @include admonition($backgroundColor: variables.$mina-green); +} + .admonitionHeading code { text-transform: none; }