Skip to content

Commit b8131af

Browse files
committed
Update docs. Add changesets.
1 parent ac12ed0 commit b8131af

File tree

5 files changed

+23
-3
lines changed

5 files changed

+23
-3
lines changed

.changeset/giant-deers-pretend.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@orca-so/whirlpools-docs": patch
3+
---
4+
5+
Add API link in navbar

.changeset/serious-parents-heal.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@orca-so/whirlpools-rust": patch
3+
---
4+
5+
Update example

docs/whirlpool/docusaurus.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,12 @@ export default {
8484
position: "left",
8585
target: "_blank",
8686
},
87+
{
88+
href: "https://api.orca.so/docs",
89+
label: "API",
90+
position: "left",
91+
target: "_blank",
92+
},
8793
{
8894
href: "https://github.com/orca-so/whirlpools",
8995
label: "GitHub",

docs/whirlpool/static/index.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,8 @@ img {
2929
display: block;
3030
margin-left: auto;
3131
margin-right: auto;
32+
}
33+
34+
.navbar__link .iconExternalLink_awgD {
35+
display: none !important;
3236
}

rust-sdk/whirlpool/src/position.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,10 @@ fn get_position_in_bundle_addresses(position_bundle: &PositionBundle) -> Vec<Pub
126126
/// async fn main() {
127127
/// set_whirlpools_config_address(WhirlpoolsConfigInput::SolanaDevnet).unwrap();
128128
/// let rpc = RpcClient::new("https://api.devnet.solana.com".to_string());
129-
/// let whirlpool_address =
130-
/// Pubkey::from_str("3KBZiL2g8C7tiJ32hTv5v3KM7aK9htpqTw4cTXz1HvPt").unwrap();
129+
/// let owner =
130+
/// Pubkey::from_str("FTEV6CnregJCqU8s8hGR3VAYCrPKHfekXLsJaKHbPBxp").unwrap();
131131
///
132-
/// let positions = fetch_positions_for_owner(&rpc, whirlpool_address)
132+
/// let positions = fetch_positions_for_owner(&rpc, owner)
133133
/// .await
134134
/// .unwrap();
135135
///

0 commit comments

Comments
 (0)