Skip to content

Commit

Permalink
Mark remaining codeblocks with mdbook tag ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
ok300 committed Nov 10, 2023
1 parent 74f018a commit 51d1432
Show file tree
Hide file tree
Showing 14 changed files with 128 additions and 131 deletions.
12 changes: 6 additions & 6 deletions src/guide/buy_btc.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Once the buy is completed, the provider will transfer the Bitcoin to the generat
<div slot="title">Swift</div>
<section>

```swift
```swift,ignore
do {
let buyBitcoinResponse = try sdk.buyBitcoin(
req: BuyBitcoinRequest(provider: .moonpay))
Expand All @@ -32,7 +32,7 @@ do {
<div slot="title">Kotlin</div>
<section>

```kotlin
```kotlin,ignore
try {
// Choose your provider
val provider = BuyBitcoinProvider.MOONPAY
Expand All @@ -57,15 +57,15 @@ try {
<div slot="title">Dart</div>
<section>

```dart
```dart,ignore
{{#include ../../snippets/dart_snippets/lib/buy_btc.dart:buy-btc}}
```
</section>

<div slot="title">Python</div>
<section>

```python
```python,ignore
try:
buy_bitcoin_resp = sdk_services.buy_bitcoin(
breez_sdk.BuyBitcoinRequest(
Expand All @@ -78,7 +78,7 @@ except Exception as error:
<div slot="title">Go</div>
<section>

```go
```go,ignore
{{#include ../../snippets/go/buy_btc.go:buy-btc}}
```
</section>
Expand All @@ -87,7 +87,7 @@ except Exception as error:

<section>

```cs
```cs,ignore
{{#include ../../snippets/csharp/BuyBtc.cs:buy-btc}}
```
</section>
Expand Down
20 changes: 10 additions & 10 deletions src/guide/connecting_lsp.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Based on the API key provided to the Breez SDK, a default LSP is selected for yo
<div slot="title">Swift</div>
<section>

```swift
```swift,ignore
do {
let lspId = try sdk.lspId()
let lspInfo = try sdk.lspInfo()
Expand Down Expand Up @@ -52,15 +52,15 @@ try {
<div slot="title">Dart</div>
<section>

```dart
```dart,ignore
{{#include ../../snippets/dart_snippets/lib/connecting_lsp.dart:get-lsp-info}}
```
</section>

<div slot="title">Python</div>
<section>

```python
```python,ignore
try:
lsp_id = sdk_services.lsp_id()
lsp_info = sdk_services.lsp_info()
Expand All @@ -73,15 +73,15 @@ except Exception as error:
<div slot="title">Go</div>
<section>

```go
```go,ignore
{{#include ../../snippets/go/connecting_lsp.go:get-lsp-info}}
```
</section>

<div slot="title">C#</div>
<section>

```cs
```cs,ignore
{{#include ../../snippets/csharp/ConnectingLsp.cs:get-lsp-info}}
```
</section>
Expand All @@ -101,7 +101,7 @@ When you have selected an LSP you may then connect to it.
<div slot="title">Swift</div>
<section>

```swift
```swift,ignore
do {
try sdk.connectLsp(lspId: lspId!)
} catch {
Expand Down Expand Up @@ -133,15 +133,15 @@ try {
<div slot="title">Dart</div>
<section>

```dart
```dart,ignore
{{#include ../../snippets/dart_snippets/lib/connecting_lsp.dart:connect-lsp}}
```
</section>

<div slot="title">Python</div>
<section>

```python
```python,ignore
try:
sdk_services.connect_lsp(lsp_id)
except Exception as error:
Expand All @@ -152,15 +152,15 @@ except Exception as error:
<div slot="title">Go</div>
<section>

```go
```go,ignore
{{#include ../../snippets/go/connecting_lsp.go:connect-lsp}}
```
</section>

<div slot="title">C#</div>
<section>

```cs
```cs,ignore
{{#include ../../snippets/csharp/ConnectingLsp.cs:connect-lsp}}
```
</section>
Expand Down
24 changes: 12 additions & 12 deletions src/guide/fiat_currencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ try {
<div slot="title">Dart</div>
<section>

```dart
```dart,ignore
{{#include ../../snippets/dart_snippets/lib/fiat_currencies.dart:list-fiat-currencies}}
```
</section>

<div slot="title">Python</div>
<section>

```python
```python,ignore
try:
fiat_currencies = sdk_services.list_fiat_currencies()
Expand All @@ -54,15 +54,15 @@ except Exception as error:
<div slot="title">Go</div>
<section>

```go
```go,ignore
{{#include ../../snippets/go/fiat_currencies.go:list-fiat-currencies}}
```
</section>

<div slot="title">C#</div>
<section>

```cs
```cs,ignore
{{#include ../../snippets/csharp/FiatCurrencies.cs:list-fiat-currencies}}
```
</section>
Expand Down Expand Up @@ -102,15 +102,15 @@ try {
<div slot="title">Dart</div>
<section>

```dart
```dart,ignore
{{#include ../../snippets/dart_snippets/lib/fiat_currencies.dart:fetch-fiat-rates}}
```
</section>

<div slot="title">Python</div>
<section>

```python
```python,ignore
try:
fiat_rates = sdk_services.fetch_fiat_rates()
# print your desired rate
Expand All @@ -122,15 +122,15 @@ except Exception as error:
<div slot="title">Go</div>
<section>

```go
```go,ignore
{{#include ../../snippets/go/fiat_currencies.go:fetch-fiat-rates}}
```
</section>

<div slot="title">C#</div>
<section>

```cs
```cs,ignore
{{#include ../../snippets/csharp/FiatCurrencies.cs:fetch-fiat-rates}}
```
</section>
Expand Down Expand Up @@ -188,31 +188,31 @@ fun fiatCurrenciesAndRate(): Map<FiatCurrency, Rate> = try {
<div slot="title">Dart</div>
<section>

```dart
```dart,ignore
{{#include ../../snippets/dart_snippets/lib/fiat_currencies.dart:get-fiat-currencies-and-rates}}
```
</section>

<div slot="title">Python</div>
<section>

```python
```python,ignore
# TODO
```
</section>

<div slot="title">Go</div>
<section>

```go
```go,ignore
{{#include ../../snippets/go/fiat_currencies.go:get-fiat-currencies-and-rates}}
```
</section>

<div slot="title">C#</div>
<section>

```cs
```cs,ignore
{{#include ../../snippets/csharp/FiatCurrencies.cs:get-fiat-currencies-and-rates}}
```
</section>
Expand Down
20 changes: 10 additions & 10 deletions src/guide/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Now your SDK is ready to be used.
<div slot="title">Swift</div>
<section>

```swift
```swift,ignore
// SDK events listener
class SDKListener: EventListener {
func onEvent(e: BreezEvent) {
Expand Down Expand Up @@ -125,15 +125,15 @@ try {
<div slot="title">Dart</div>
<section>

```dart
```dart,ignore
{{#include ../../snippets/dart_snippets/lib/getting_started.dart:init-sdk}}
```
</section>

<div slot="title">Python</div>
<section>

```python
```python,ignore
# SDK events listener
class SDKListener(breez_sdk.EventListener):
def on_event(self, event):
Expand All @@ -160,15 +160,15 @@ except Exception as error:
<div slot="title">Go</div>
<section>

```go
```go,ignore
{{#include ../../snippets/go/getting_started.go:init-sdk}}
```
</section>

<div slot="title">C#</div>
<section>

```cs
```cs,ignore
{{#include ../../snippets/csharp/GettingStarted.cs:init-sdk}}
```
</section>
Expand All @@ -188,7 +188,7 @@ At any point we can fetch our balance from the Greenlight node:
<div slot="title">Swift</div>
<section>

```swift
```swift,ignore
do {
let nodeInfo = try sdk.nodeInfo()
let lnBalance = nodeInfo?.channelsBalanceMsat
Expand Down Expand Up @@ -224,15 +224,15 @@ try {
<div slot="title">Dart</div>
<section>

```dart
```dart,ignore
{{#include ../../snippets/dart_snippets/lib/getting_started.dart:fetch-balance}}
```
</section>

<div slot="title">Python</div>
<section>

```python
```python,ignore
try:
node_info = node_info()
ln_balance = node_info.channels_balance_msat
Expand All @@ -245,15 +245,15 @@ except Exception as error:
<div slot="title">Go</div>
<section>

```go
```go,ignore
{{#include ../../snippets/go/getting_started.go:fetch-balance}}
```
</section>

<div slot="title">C#</div>
<section>

```cs
```cs,ignore
{{#include ../../snippets/csharp/GettingStarted.cs:fetch-balance}}
```
</section>
Expand Down
Loading

0 comments on commit 51d1432

Please sign in to comment.