Skip to content

Commit 1131707

Browse files
authored
Merge pull request #2966 from XRPLF/fix_code_samples
Fix minor issues with Code Samples
2 parents 0265702 + e1ec0d7 commit 1131707

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

@theme/plugins/code-samples.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export function codeSamples() {
2828
samples.push({
2929
path: dirPath,
3030
title: title || toTitleCase(dirname(dirPath)),
31-
description: getInnerText([data.ast.children[1]]).replace(title, '').trim(),
31+
description: getInnerText([data.ast.children[1]]).trim(),
3232
href: joinPath('content', dirPath),
3333
langs,
3434
});
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Build a Browser Wallet
22

3-
Implement a non-custodial wallet application that runs on in a web browser and can check an account's balances, send XRP, and notify when the account receives incoming transactions.
3+
Implement a non-custodial wallet application that runs in a web browser and can check an account's balances, send XRP, and notify when the account receives incoming transactions.

_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)