From 332789a87aa36a8d1dc42de542ef80f55645aad5 Mon Sep 17 00:00:00 2001 From: mDuo13 Date: Tue, 28 Jan 2025 13:50:07 -0800 Subject: [PATCH] Fix minor issues with Code Samples - The description gets deleted if it matches the title exactly (due to how our plugin finds the text of the README). Changed a couple instances to not match exactly so this doesn't happen. - Changed the top level of the Code Sampels layout to be a
element, which allows some styles to apply correctly and also helps the search crawler find the contents of the page. --- _code-samples/did/README.md | 2 +- _code-samples/price_oracles/README.md | 2 +- resources/code-samples.page.tsx | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/_code-samples/did/README.md b/_code-samples/did/README.md index 46913bd09d..b5f62cc239 100644 --- a/_code-samples/did/README.md +++ b/_code-samples/did/README.md @@ -1,3 +1,3 @@ # Create, Update, and Delete Decentralized Identifiers (DIDs) -Create, Update, and Delete Decentralized Identifiers (DIDs). A Decentralized Identifier (DID) is a new type of identifier defined by the World Wide Web Consortium (W3C) that enables verifiable, digital identities. +Create, update, and delete decentralized identifiers (DIDs). A Decentralized Identifier (DID) is a new type of identifier defined by the World Wide Web Consortium (W3C) that enables verifiable, digital identities. diff --git a/_code-samples/price_oracles/README.md b/_code-samples/price_oracles/README.md index fb2dcf37dc..e075240cc5 100644 --- a/_code-samples/price_oracles/README.md +++ b/_code-samples/price_oracles/README.md @@ -1,3 +1,3 @@ # Create, Update, and Delete Price Oracles -Create, Update, and Delete Price Oracles. A price oracle is a mechanism that feeds external data, such as asset prices, and exchange rates, onto the XRPLedger. +Create, update, and delete Price Oracles. A price oracle is a mechanism that feeds external data, such as asset prices, and exchange rates, onto the XRPLedger. diff --git a/resources/code-samples.page.tsx b/resources/code-samples.page.tsx index 2375d1b9f4..c578ec1250 100644 --- a/resources/code-samples.page.tsx +++ b/resources/code-samples.page.tsx @@ -29,7 +29,7 @@ export default function CodeSamples() { const { codeSamples, langs } = usePageSharedData('code-samples'); return ( -
+
@@ -126,6 +126,6 @@ export default function CodeSamples() {
-
+
); }