Skip to content

Commit

Permalink
Merge pull request #994 from o1-labs/feat/remove-pre-genesis-timestamp
Browse files Browse the repository at this point in the history
Remove pre-genesis timestamp nodes state notes (for past-genesis docs).
  • Loading branch information
shimkiv authored Jun 5, 2024
2 parents 786a620 + 015cf5e commit ae4e2bd
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 8 deletions.
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

0 comments on commit ae4e2bd

Please sign in to comment.