From c42e3dd122bfc6c491c7defd0e43bb74f1287361 Mon Sep 17 00:00:00 2001 From: Elliot Voris Date: Tue, 27 Sep 2022 16:58:37 -0500 Subject: [PATCH 1/4] Fixing some code examples syntax languages Found one that needed fixing, and then did a quick search for any others that might be wrong. Here's the three I found. No big impact, but will help to make the docs more consistent. Signed-off-by: Elliot Voris --- .../stellar-data-structures/assets.mdx | 2 +- docs/tutorials/follow-received-payments.mdx | 2 +- docs/tutorials/moneygram-access-integration-guide.mdx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/fundamentals-and-concepts/stellar-data-structures/assets.mdx b/docs/fundamentals-and-concepts/stellar-data-structures/assets.mdx index c70a143c5..6b310f1df 100644 --- a/docs/fundamentals-and-concepts/stellar-data-structures/assets.mdx +++ b/docs/fundamentals-and-concepts/stellar-data-structures/assets.mdx @@ -32,7 +32,7 @@ The public key of the issuing account is linked on the ledger to the asset. Resp In Horizon, assets are represented in a JSON object: -```json5 +```json { asset_code: "AstroDollar", asset_issuer: "GC2BKLYOOYPDEFJKLKY6FNNRQMGFLVHJKQRGNSSRRGSMPGF32LHCQVGF", diff --git a/docs/tutorials/follow-received-payments.mdx b/docs/tutorials/follow-received-payments.mdx index 8afdbaeaa..a7ef91b04 100644 --- a/docs/tutorials/follow-received-payments.mdx +++ b/docs/tutorials/follow-received-payments.mdx @@ -53,7 +53,7 @@ Create a new file named `make_account.js` and paste the following text into it: -```javascript +```js var Keypair = require("stellar-base").Keypair; var newAccount = Keypair.random(); diff --git a/docs/tutorials/moneygram-access-integration-guide.mdx b/docs/tutorials/moneygram-access-integration-guide.mdx index fe36d783c..1a477b444 100644 --- a/docs/tutorials/moneygram-access-integration-guide.mdx +++ b/docs/tutorials/moneygram-access-integration-guide.mdx @@ -202,7 +202,7 @@ Below is a simple JavaScript example listening for a postmessage notification. -```javascript +```js webview = window.open(moneygramURL, "webview", "width=500,height=800"); window.addEventListener("message", closeWebView); From 1111a92f3d91846a74f79e8eb205559da52dc0e7 Mon Sep 17 00:00:00 2001 From: Elliot Voris Date: Tue, 27 Sep 2022 17:16:21 -0500 Subject: [PATCH 2/4] Running prettier for the JSON code example Signed-off-by: Elliot Voris --- .../stellar-data-structures/assets.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/fundamentals-and-concepts/stellar-data-structures/assets.mdx b/docs/fundamentals-and-concepts/stellar-data-structures/assets.mdx index 6b310f1df..a3c22d537 100644 --- a/docs/fundamentals-and-concepts/stellar-data-structures/assets.mdx +++ b/docs/fundamentals-and-concepts/stellar-data-structures/assets.mdx @@ -34,11 +34,11 @@ In Horizon, assets are represented in a JSON object: ```json { - asset_code: "AstroDollar", - asset_issuer: "GC2BKLYOOYPDEFJKLKY6FNNRQMGFLVHJKQRGNSSRRGSMPGF32LHCQVGF", + "asset_code": "AstroDollar", + "asset_issuer": "GC2BKLYOOYPDEFJKLKY6FNNRQMGFLVHJKQRGNSSRRGSMPGF32LHCQVGF", // `asset_type` is used to determine how asset data is stored. // It can be `native` (lumens), `credit_alphanum4`, or `credit_alphanum12`. - asset_type: "credit_alphanum12", + "asset_type": "credit_alphanum12" } ``` From 85b999b9fa75cf4b1d448b9c393fd569ae82fb24 Mon Sep 17 00:00:00 2001 From: Elliot Voris Date: Thu, 29 Sep 2022 10:28:33 -0500 Subject: [PATCH 3/4] Reverting the `json5` change Signed-off-by: Elliot Voris --- .../stellar-data-structures/assets.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/fundamentals-and-concepts/stellar-data-structures/assets.mdx b/docs/fundamentals-and-concepts/stellar-data-structures/assets.mdx index a3c22d537..9a159196a 100644 --- a/docs/fundamentals-and-concepts/stellar-data-structures/assets.mdx +++ b/docs/fundamentals-and-concepts/stellar-data-structures/assets.mdx @@ -32,7 +32,7 @@ The public key of the issuing account is linked on the ledger to the asset. Resp In Horizon, assets are represented in a JSON object: -```json +```json5 { "asset_code": "AstroDollar", "asset_issuer": "GC2BKLYOOYPDEFJKLKY6FNNRQMGFLVHJKQRGNSSRRGSMPGF32LHCQVGF", From a3adcc6991d66bdaa06518f9b1aff4b61355a4a1 Mon Sep 17 00:00:00 2001 From: Elliot Voris Date: Thu, 29 Sep 2022 10:31:43 -0500 Subject: [PATCH 4/4] Aaaaanddd.... reverting the prettier formatting to go along with json5 Signed-off-by: Elliot Voris --- .../stellar-data-structures/assets.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/fundamentals-and-concepts/stellar-data-structures/assets.mdx b/docs/fundamentals-and-concepts/stellar-data-structures/assets.mdx index 9a159196a..c70a143c5 100644 --- a/docs/fundamentals-and-concepts/stellar-data-structures/assets.mdx +++ b/docs/fundamentals-and-concepts/stellar-data-structures/assets.mdx @@ -34,11 +34,11 @@ In Horizon, assets are represented in a JSON object: ```json5 { - "asset_code": "AstroDollar", - "asset_issuer": "GC2BKLYOOYPDEFJKLKY6FNNRQMGFLVHJKQRGNSSRRGSMPGF32LHCQVGF", + asset_code: "AstroDollar", + asset_issuer: "GC2BKLYOOYPDEFJKLKY6FNNRQMGFLVHJKQRGNSSRRGSMPGF32LHCQVGF", // `asset_type` is used to determine how asset data is stored. // It can be `native` (lumens), `credit_alphanum4`, or `credit_alphanum12`. - "asset_type": "credit_alphanum12" + asset_type: "credit_alphanum12", } ```