From 46d5c2986c9cd0bc85e6219e49e3dc3a30767ad8 Mon Sep 17 00:00:00 2001 From: Elliot Voris Date: Tue, 25 Jun 2024 08:45:33 -0500 Subject: [PATCH 1/2] exclude paths with rpc from using the ApiItem component --- src/theme/ApiItem/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/theme/ApiItem/index.js b/src/theme/ApiItem/index.js index 5da5eedae0..476c2f0518 100644 --- a/src/theme/ApiItem/index.js +++ b/src/theme/ApiItem/index.js @@ -5,6 +5,7 @@ import DocItem from '@theme-original/DocItem'; export default function ApiItemWrapper(props) { if ( props.location?.pathname?.includes('api-reference') + && !props.location?.pathname?.includes('rpc') ) { return ( <> From 761d2c51d34622dd1680e1d75f5bff39ab07dbbb Mon Sep 17 00:00:00 2001 From: Elliot Voris Date: Tue, 25 Jun 2024 08:59:06 -0500 Subject: [PATCH 2/2] remove no-longer-needed divs from rpc method pages --- docs/data/rpc/api-reference/methods/getTransaction.mdx | 2 -- docs/data/rpc/api-reference/methods/sendTransaction.mdx | 3 --- 2 files changed, 5 deletions(-) diff --git a/docs/data/rpc/api-reference/methods/getTransaction.mdx b/docs/data/rpc/api-reference/methods/getTransaction.mdx index 2f2269ee64..3950fb5f39 100644 --- a/docs/data/rpc/api-reference/methods/getTransaction.mdx +++ b/docs/data/rpc/api-reference/methods/getTransaction.mdx @@ -12,7 +12,6 @@ import { RpcMethod } from "@site/src/components/RpcMethod"; The example above is querying details of a transaction using RPC methods directly. If you are using the Stellar SDK to build applications, you can use the native functions to get the same information. -
```python @@ -73,4 +72,3 @@ public class GetTransactionExample { ``` -
diff --git a/docs/data/rpc/api-reference/methods/sendTransaction.mdx b/docs/data/rpc/api-reference/methods/sendTransaction.mdx index e413de5166..da83692142 100644 --- a/docs/data/rpc/api-reference/methods/sendTransaction.mdx +++ b/docs/data/rpc/api-reference/methods/sendTransaction.mdx @@ -12,8 +12,6 @@ import { CodeExample } from "@site/src/components/CodeExample"; The example above is sending a transaction using RPC methods directly. If you are using the Stellar SDK to build applications, you can use the native functions to get the same information. -
-
```python @@ -136,4 +134,3 @@ public class SendTransactionExample { ``` -