From 468aa765d196a83f892588d6888438c97bdc1652 Mon Sep 17 00:00:00 2001 From: Steve Myers Date: Fri, 29 Oct 2021 10:11:15 -0700 Subject: [PATCH] Fix code block escape codes The ```text code block isn't valid, replaced with ```bash. Valid codes here: https://github.com/PrismJS/prism/blob/master/components.json. --- docs/_blog/hello-world.md | 2 +- docs/bdk-cli/compiler.md | 2 +- docs/bdk-cli/installation.md | 2 +- docs/bdk-cli/interface.md | 18 +++++++++--------- docs/tutorials/hello-world.md | 2 +- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/docs/_blog/hello-world.md b/docs/_blog/hello-world.md index ad85dc3e83..78866f6e27 100644 --- a/docs/_blog/hello-world.md +++ b/docs/_blog/hello-world.md @@ -76,7 +76,7 @@ println!("Generated Address: {}", wallet.get_new_address()?); Building and running this code will print out: -```text +```bash Generated Address: tb1q7w0t936xp5p994qx506xj53gjdcmzjr2mkqghn ``` diff --git a/docs/bdk-cli/compiler.md b/docs/bdk-cli/compiler.md index 6c6c556985..0a06a55158 100644 --- a/docs/bdk-cli/compiler.md +++ b/docs/bdk-cli/compiler.md @@ -41,7 +41,7 @@ miniscriptc --parsed_policy "and(pk(cSQPHDBwXGjVzWRqAHm6zfvQhaTuj1f2bFH58h55ghbj The compiler should print something like: -```text +```bash [2020-04-29T10:42:05Z INFO miniscriptc] Compiling policy: and(pk(cSQPHDBwXGjVzWRqAHm6zfvQhaTuj1f2bFH58h55ghbjtFwvmeXR),or(50@pk(02e96fe52ef0e22d2f131dd425ce1893073a3c6ad20e8cac36726393dfb4856a4c),older(1000))) [2020-04-29T10:42:05Z INFO miniscriptc] ... Descriptor: sh(wsh(and_v(or_c(c:pk(02e96fe52ef0e22d2f131dd425ce1893073a3c6ad20e8cac36726393dfb4856a4c),v:older(1000)),c:pk(cSQPHDBwXGjVzWRqAHm6zfvQhaTuj1f2bFH58h55ghbjtFwvmeXR)))) [2020-04-29T10:42:05Z INFO miniscriptc] ... First address: 2MsqrJuZewY3o3ADAy1Uhi5vsBqTANjH3Cf diff --git a/docs/bdk-cli/installation.md b/docs/bdk-cli/installation.md index a93ed53e49..536cc70c0a 100644 --- a/docs/bdk-cli/installation.md +++ b/docs/bdk-cli/installation.md @@ -37,7 +37,7 @@ This command may take a while to finish, since it will fetch and compile all the Once it's done, you can check if everything went fine by running `bdk-cli --help` which should print something like this: -```text +```bash BDK CLI 0.2.1-dev Alekos Filini :Riccardo Casatta :Steve Myers Top level options and command modes diff --git a/docs/bdk-cli/interface.md b/docs/bdk-cli/interface.md index 7d072c3d8d..a6edffdd5d 100644 --- a/docs/bdk-cli/interface.md +++ b/docs/bdk-cli/interface.md @@ -4,7 +4,7 @@ Remember the `bdk-cli --help` command you ran before? Let's analyze its output h ## Flags -```text +```bash FLAGS: -h, --help Prints help information -V, --version Prints version information @@ -23,7 +23,7 @@ export RUST_LOG="bdk=debug" ## Options -```text +```bash OPTIONS: -c, --change_descriptor Sets the descriptor to use for internal addresses -d, --descriptor Sets the descriptor to use for the external addresses @@ -84,7 +84,7 @@ These are the main "functions" of the wallet. Most of them are pretty self expla ### broadcast -```text +```bash OPTIONS: --psbt Sets the PSBT to extract and broadcast --tx Sets the raw transaction to broadcast @@ -94,7 +94,7 @@ Broadcasts a transaction. The transaction can be a raw hex transaction or a PSBT ### bump\_fee -```text +```bash FLAGS: -a, --send_all Allows the wallet to reduce the amount of the only output in order to increase fees. This is generally the expected behavior for transactions originally created with `send_all` @@ -113,7 +113,7 @@ The `--send_all` flag should be enabled if the original transaction was also mad ### combine\_psbt -```text +```bash OPTIONS: --psbt ... Add one PSBT to comine. This option can be repeated multiple times, one for each PSBT ``` @@ -122,7 +122,7 @@ Combines multiple PSBTs by merging metadata and partial signatures. It can be us ### create\_tx -```text +```bash FLAGS: -r, --enable_rbf Enables Replace-By-Fee (BIP125) --offline_signer Make a PSBT that can be signed by offline signers and hardware wallets. Forces the addition @@ -196,7 +196,7 @@ we want to use. In this case we want to use children #0 and #1 of the root, so o ### extract\_psbt -```text +```bash OPTIONS: --psbt Sets the PSBT to extract ``` @@ -205,7 +205,7 @@ Extracts the global transaction from a PSBT. **Note that partial signatures are ### finalize\_psbt -```text +```bash OPTIONS: --psbt Sets the PSBT to finalize --assume_height Assume the blockchain has reached a specific height @@ -506,7 +506,7 @@ This subcommand has no extra flags and launches an interactive shell session. ### `sign` -```text +```bash OPTIONS: --psbt Sets the PSBT to sign --assume_height Assume the blockchain has reached a specific height. This affects the transaction diff --git a/docs/tutorials/hello-world.md b/docs/tutorials/hello-world.md index 0b9146c371..e3da591bf1 100644 --- a/docs/tutorials/hello-world.md +++ b/docs/tutorials/hello-world.md @@ -68,7 +68,7 @@ println!("Generated Address: {}", wallet.get_new_address()?); Building and running this code will print out: -```text +```bash Generated Address: tb1q7w0t936xp5p994qx506xj53gjdcmzjr2mkqghn ``` -- 2.49.0