Skip to content

Commit 56a3e38

Browse files
committed
chore(dev-hub) Added banner to Entropy Pages
1 parent c801681 commit 56a3e38

File tree

5 files changed

+42
-9
lines changed

5 files changed

+42
-9
lines changed

apps/developer-hub/content/docs/entropy/chainlist.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ import { EntropyTable } from "../../../src/components/EntropyTable";
88

99
## Mainnets
1010

11-
<InfoBox variant="warning">
11+
<Callout type="warning">
1212
<div>
1313
The fees for mainnet are dynamically set. Always use the on-chain method
1414
`entropy.getFeeV2()` to get the current fee.
1515
</div>
16-
</InfoBox>
16+
</Callout>
1717

1818
The following tables shows the total fees payable when using the **default provider**.
1919
Note that the fees shown below will vary over time with prevailing gas prices on each chain.
@@ -32,12 +32,12 @@ Entropy callbacks the consumer as part of this transaction.
3232

3333
## Testnets
3434

35-
<InfoBox variant="info">
35+
<Callout type="info">
3636
<div>
3737
The fees for testnets are kept deliberately low and different from the
3838
mainnet fees.
3939
</div>
40-
</InfoBox>
40+
</Callout>
4141

4242
The Entropy contract is deployed on the following testnet chains:
4343

apps/developer-hub/content/docs/entropy/fees.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ Note that protocols integrating with Entropy can pass these fees along to their
1717
submits a transaction that requests a random number, the user can directly pay the entropy fees required
1818
with the native blockchain token. There are no fees for revealing the random numbers.
1919

20-
You can check the current fees in the [chainlist and fee details](./entropy/chainlist) page for each blockchain.
20+
You can check the current fees in the [chainlist and fee details](./chainlist) page for each blockchain.

apps/developer-hub/content/docs/entropy/whats-new-entropyv2.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ Each of these request types is described in more detail with examples in [Reques
2222
### 2. Enhanced Callback Status
2323

2424
Entropy V2 introduces callback statuses, which allow users to track the status of their callbacks.
25-
2625
[Pyth Dev-Forum Announcement](https://dev-forum.pyth.network/t/announcing-entropy-v2/324#p-649-enhanced-callback-statuses-2) provides more details on enhanced callback statuses.
2726

2827
### 3. Entropy Explorer

apps/developer-hub/content/docs/metrics/kpi.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Pyth Network KPI
33
description: Monthly informative data points on the Pyth network, its growth, and performance metrics.
44
---
55

6-
<Callout type="info" title="Pyth Network KPI ">
6+
<Callout type="info" title="Pyth Network KPI ">
77
For the latest KPI dashboard, please visit
88
[https://kpi.pyth.network/](https://kpi.pyth.network/).
99
</Callout>
Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,43 @@
1+
import { Banner } from "fumadocs-ui/components/banner";
12
import { DocsLayout } from "fumadocs-ui/layouts/docs";
3+
import Link from "next/link";
24
import type { ReactNode } from "react";
35

46
import { docsOptions } from "../../../config/layout.config";
57

6-
export default function Layout({ children }: { children: ReactNode }) {
8+
export default function Layout({
9+
children,
10+
params,
11+
}: {
12+
children: ReactNode;
13+
params: { section: string };
14+
}) {
15+
const { section } = params;
716
const options = { ...docsOptions };
8-
return <DocsLayout {...options}>{children}</DocsLayout>;
17+
18+
return (
19+
<>
20+
{section === "entropy" && (
21+
<Banner changeLayout={false} id="entropy-v2" variant="rainbow">
22+
<span>
23+
<strong>
24+
Try the{" "}
25+
<a
26+
href="https://entropy-explorer.pyth.network/"
27+
target="_blank"
28+
rel="noopener noreferrer"
29+
>
30+
Entropy Explorer
31+
</a>
32+
</strong>{" "}
33+
to track and debug callback issues. &nbsp;|&nbsp;
34+
<Link href="./entropy/whats-new-entropyv2">
35+
Learn what&apos;s new in Entropy v2.
36+
</Link>
37+
</span>
38+
</Banner>
39+
)}
40+
<DocsLayout {...options}>{children}</DocsLayout>
41+
</>
42+
);
943
}

0 commit comments

Comments
 (0)