Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove pre-genesis timestamp nodes state notes (for past-genesis docs). #994

Merged
merged 3 commits into from
Jun 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions docs/welcome.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,10 @@ 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)

**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](/berkeley-upgrade/requirements#node-auto-restart) on crash to have them automatically try and reconnect.
[See instructions on how to upgrade your Mina node](/berkeley-upgrade/requirements).

:::

Expand Down
1 change: 1 addition & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ module.exports = {
'caution',
'danger',
'experimental',
'successTip',
],
},
},
Expand Down
1 change: 1 addition & 0 deletions src/scss/utilities/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ $mina-white: #ffffff;
$mina-error: #e93939;
$mina-purple: #5362c8;
$mina-lavender: #cab2ff;
$mina-green: green;
18 changes: 16 additions & 2 deletions src/theme/Admonition/index.tsx
Original file line number Diff line number Diff line change
@@ -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';

Expand Down Expand Up @@ -90,7 +90,6 @@ const AdmonitionConfigs: Record<Props['type'], AdmonitionConfig> = {
</Translate>
),
},

note: {
infimaClassName: 'secondary',
iconComponent: NoteIcon,
Expand Down Expand Up @@ -151,6 +150,18 @@ const AdmonitionConfigs: Record<Props['type'], AdmonitionConfig> = {
</Translate>
),
},
successTip: {
infimaClassName: 'green',
iconComponent: NoteIcon,
label: (
<Translate
id="theme.admonition.note"
description="The default label used for the SuccessTip admonition (:::successTip)"
>
successTip
</Translate>
),
},
};

// Legacy aliases, undocumented but kept for retro-compatibility
Expand All @@ -159,6 +170,7 @@ const aliases = {
important: 'info',
success: 'tip',
warning: 'danger',
successTip: 'successTip',
} as const;

function getAdmonitionConfig(unsafeType: string): AdmonitionConfig {
Expand Down Expand Up @@ -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 (
Expand Down
4 changes: 4 additions & 0 deletions src/theme/Admonition/styles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@
@include admonition($backgroundColor: variables.$mina-orange);
}

.admonitionSuccessTip {
@include admonition($backgroundColor: variables.$mina-green);
}

.admonitionHeading code {
text-transform: none;
}
Expand Down
Loading