Skip to content

Commit 332789a

Browse files
committed
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 <main> element, which allows some styles to apply correctly and also helps the search crawler find the contents of the page.
1 parent e637346 commit 332789a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

_code-samples/did/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Create, Update, and Delete Decentralized Identifiers (DIDs)
22

3-
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.
3+
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.

_code-samples/price_oracles/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Create, Update, and Delete Price Oracles
22

3-
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.
3+
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.

resources/code-samples.page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default function CodeSamples() {
2929
const { codeSamples, langs } = usePageSharedData<any>('code-samples');
3030

3131
return (
32-
<div className="landing page-community">
32+
<main className="landing page-code-samples">
3333
<div className="">
3434
<section className="py-26">
3535
<div className="col-lg-8 mx-auto text-lg-center">
@@ -126,6 +126,6 @@ export default function CodeSamples() {
126126
</div>
127127
</section>
128128
</div>
129-
</div>
129+
</main>
130130
);
131131
}

0 commit comments

Comments
 (0)