Skip to content

Commit a2127b4

Browse files
committed
fix: info boxes
1 parent b66668a commit a2127b4

File tree

17 files changed

+110
-60
lines changed

17 files changed

+110
-60
lines changed

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import { EntropyTable } from "../../../src/components/EntropyTable";
99
## Mainnets
1010

1111
<InfoBox variant="warning">
12-
The fees for mainnet are dynamically set. Always use the on-chain method
13-
`entropy.getFeeV2()` to get the current fee.
12+
<div>The fees for mainnet are dynamically set. Always use the on-chain method
13+
`entropy.getFeeV2()` to get the current fee.</div>
1414
</InfoBox>
1515

1616
The following tables shows the total fees payable when using the **default provider**.
@@ -29,10 +29,9 @@ The default provider fulfills the request by sending a transaction with a gas li
2929
Entropy callbacks the consumer as part of this transaction.
3030

3131
## Testnets
32-
3332
<InfoBox variant="info">
34-
The fees for testnets kept deliberately low and different from the mainnet
35-
fees.
33+
<div>The fees for testnets kept deliberately low and different from the mainnet
34+
fees.</div>
3635
</InfoBox>
3736

3837
The Entropy contract is deployed on the following testnet chains:

apps/developer-hub/content/docs/pyth-core/api-instances-and-providers/hermes.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ Network:
2424
URL: https://hermes.pyth.network
2525

2626
<InfoBox variant="warning">
27-
For developers building on **Aptos testnet**, **Sui testnet** or **Near testnet**, please use the Hermes Beta endpoint:
27+
<div>For developers building on **Aptos testnet**, **Sui testnet** or **Near testnet**, please use the Hermes Beta endpoint:</div>
2828

29-
URL: https://hermes-beta.pyth.network
29+
<div>URL: https://hermes-beta.pyth.network</div>
3030

3131
</InfoBox>
3232

apps/developer-hub/content/docs/pyth-core/contract-addresses/pythnet.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ index: false
1010

1111
# Price Feed Program Addresses on Pythnet
1212

13+
{
1314
<InfoBox variant="warning">
1415
**Important:** The addresses on this page are for the Pythnet network itself,
1516
which is used to construct and deliver Pyth prices to other blockchains. If
@@ -18,6 +19,7 @@ index: false
1819
refer to the [Contract Addresses](/price-feeds/contract-addresses) page and
1920
select your specific blockchain environment.
2021
</InfoBox>
22+
}
2123

2224
The following table contains the addresses of the programs deployed on Pythnet that operate together to construct Pyth prices and deliver them to other blockchains:
2325

apps/developer-hub/content/docs/pyth-core/create-your-first-pyth-app.mdx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,10 @@ index: false
1212

1313
This tutorial walks through creating a complete application that uses Pyth Price feeds.
1414
The application includes a smart contract and an off-chain code invoking the contract.
15-
1615
<InfoBox variant="info">
17-
The tutorial is an in-depth walkthrough of contract development; more
16+
<div>The tutorial is an in-depth walkthrough of contract development; more
1817
experienced developers may want to refer to [Use Real-time Price
19-
Data](./use-real-time-data) for a more concise version.
18+
Data](./use-real-time-data) for a more concise version.</div>
2019
</InfoBox>
2120

2221
Please choose your environment to get started:

apps/developer-hub/content/docs/pyth-core/create-your-first-pyth-app/evm/part-2.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ This part of the tutorial will conver the following:
1919
- Update and fetch the price from the contract using [hermes-client](https://github.com/pyth-network/pyth-crosschain/tree/main/apps/hermes/client/js).
2020

2121
<InfoBox variant="info">
22-
This tutorial is continuation of the [Part 1: Create a Contract](./part-1). If
23-
you haven't completed that part yet, please do so before continuing.
22+
<div>This tutorial is continuation of the [Part 1: Create a Contract](./part-1). If
23+
you haven't completed that part yet, please do so before continuing.</div>
2424
</InfoBox>
2525

2626
## Deploy the contract

apps/developer-hub/content/docs/pyth-core/current-fees.mdx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@ index: false
1111

1212
The following tables shows the total fees payable when updating a price feed.
1313
Please note the fees shown below is the amount paid in `msg.value` per price feed update.
14-
1514
<InfoBox variant="info">
16-
**Note**: The default fee of all chains **not** mentioned below is **1(one)**
15+
<div>**Note**: The default fee of all chains **not** mentioned below is **1(one)**
1716
unit of the smallest denomination of the blockchain's native token (e.g., **1
18-
wei on Ethereum**).
17+
wei on Ethereum**).</div>
1918
</InfoBox>
2019

2120
| **Network** | **Fees** |

apps/developer-hub/content/docs/pyth-core/fetch-price-updates.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ provides three different ways to fetch price updates:
2121
1. [SDK](#sdk)
2222

2323
<InfoBox variant="info">
24-
Fetching a price from Hermes requires a price feed ID. This ID serves as a
24+
<div>Fetching a price from Hermes requires a price feed ID. This ID serves as a
2525
unique identifier for each price feed (e.g., BTC/USD). The complete list of
2626
Pyth price feed IDs is available at
27-
https://pyth.network/developers/price-feed-ids
27+
https://pyth.network/developers/price-feed-ids</div>
2828
</InfoBox>
2929

3030
## REST API

apps/developer-hub/content/docs/pyth-core/pythnet-reference/schedule-format.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ If `weekly_schedule` is also undefined, pyth-agent will default to 24/7 publishi
3232
- `Timezone` - A human-readable tz database TZ identifier of the market’s local timezone, such as `America/New_York`.
3333
**Full list of identifiers can be found [here](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)**.
3434
<InfoBox variant="info">
35-
Daylight-saving time is automatically handled by the pyth-agent.
35+
<div>Daylight-saving time is automatically handled by the pyth-agent.</div>
3636
</InfoBox>
3737
- `WeeklySchedule` - A list of seven comma-separated `DaySchedule` entries that define the recurring weekly schedule of a product’s market hours.
3838
Each `DaySchedule` entry corresponds to a day of the week, starting from Monday.
@@ -71,7 +71,7 @@ If `weekly_schedule` is also undefined, pyth-agent will default to 24/7 publishi
7171
## Weekly Schedule Format (Deprecated)
7272

7373
<InfoBox variant="warning">
74-
This field is deprecated in favor of `schedule`.
74+
<div>This field is deprecated in favor of `schedule`.</div>
7575
</InfoBox>
7676

7777
This document outlines the rules for specifying contents of a new Pyth product metadata field - `weekly_schedule` . The field specifies the recurring weekly schedule of a product’s market hours. It serves as a reference for `pyth-agent` to stop publishing outside the hours specified in the schedule. Notable use cases include:

apps/developer-hub/content/docs/pyth-core/sponsored-feeds.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ The sponsored feeds can vary by network. Please see the relevant section below f
2323
- [Movement](sponsored-feeds/movement)
2424

2525
<InfoBox variant="warning">
26-
DISCLAIMER: While the Pyth Data Association strives to deliver timely updates,
26+
<div>DISCLAIMER: While the Pyth Data Association strives to deliver timely updates,
2727
these sponsored feeds may occasionally experience delays in updates caused by
2828
chain halts, gas estimations and other issues. Applications are advised to run
2929
their own scheduler. Find out how you can run your own scheduler
30-
[here](/price-feeds/schedule-price-updates/using-scheduler).
30+
[here](/price-feeds/schedule-price-updates/using-scheduler).</div>
3131
</InfoBox>
3232

3333
If you would like to see additional feeds on this list, please fill in this [form](https://tally.so/r/nGz2jj) to signal your interest.

apps/developer-hub/content/docs/pyth-core/use-real-time-data/aptos.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ module example::example {
6363
```
6464

6565
<InfoBox variant="info">
66-
The `pyth_price_update` argument contains verified prices from Pyth. Calling
66+
<div>The `pyth_price_update` argument contains verified prices from Pyth. Calling
6767
`pyth::update_price_feeds` with this value updates the on-chain Pyth price and
6868
ensures your application has recent price data. The pyth_price_update can be
6969
fetched from Hermes; Consult [Fetch Price Updates](../fetch-price-updates) for
70-
more information on how to fetch the `pyth_price_update`.
70+
more information on how to fetch the `pyth_price_update`.</div>
7171
</InfoBox>
7272

7373
The code snippet above does the following things:

0 commit comments

Comments
 (0)