Skip to content

Commit 7245901

Browse files
committed
Add 'Open in Studio' CTA to every cookbook page
Each cookbook page now links its template to the Studio editor via <StudioTemplateLink template="<slug>" />, placed under 'The Complete Schema'. Resolves to the org-agnostic editor entry (studio.formance.com/ledger-schemas/ editor?template=<slug>), which forwards to the reader's org or the public editor. The StudioTemplateLink component lives in the docs repo (registered as a global MDX component, like LedgerSchema).
1 parent 140f714 commit 7245901

14 files changed

Lines changed: 28 additions & 0 deletions

docs/examples/advanced/bnpl-lending.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ This is the full ledger schema for a BNPL and lending system. The sections below
3232

3333
<LedgerSchema schema="bnpl-lending" />
3434

35+
<StudioTemplateLink template="bnpl-lending" />
36+
3537
## Chart of Accounts
3638

3739
The `chart` section defines three account groups: the shopper receivables (`borrowers`), the external parties the platform owes or collects through (`counterparties`), and the platform's own cash and revenue (`platform`).

docs/examples/advanced/card-issuing.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ This is the full ledger schema for a card-issuing program. The sections below ex
3232

3333
<LedgerSchema schema="card-issuing" />
3434

35+
<StudioTemplateLink template="card-issuing" />
36+
3537
## Chart of Accounts
3638

3739
The `chart` section defines three top-level groups: the `cardholders` who hold prefunded balances, the `platform`'s own operational accounts, and the external `counterparties` (schemes and BIN sponsors) the program settles with.

docs/examples/advanced/crypto-custody.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ This is the full ledger schema for a multi-asset crypto custody system. The sect
3232

3333
<LedgerSchema schema="crypto-custody" />
3434

35+
<StudioTemplateLink template="crypto-custody" />
36+
3537
## Chart of Accounts
3638

3739
The `chart` section defines the customer-facing entitlements, the platform-side custody and operational accounts, and the external endpoints money flows to and from.

docs/examples/advanced/ecommerce-platform.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ This is the full ledger schema for an e-commerce platform.
3131

3232
<LedgerSchema schema="ecommerce-platform" />
3333

34+
<StudioTemplateLink template="ecommerce-platform" />
35+
3436
## Chart of Accounts
3537

3638
The `chart` section defines four account groups: customers, merchants, orders, and the platform's own books.

docs/examples/advanced/issuing-financial-host.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ This is the full ledger schema for a card issuing financial host. The sections b
1919

2020
<LedgerSchema schema="issuing-financial-host" />
2121

22+
<StudioTemplateLink template="issuing-financial-host" />
23+
2224
## System Actors
2325

2426
A card issuing financial host involves five distinct actors, each representing a different side of every card transaction. Understanding their roles — and how their account balances behave — is essential before reading the ledger schema.

docs/examples/advanced/lending-platform.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ This is the full ledger schema for a lending platform.
3030

3131
<LedgerSchema schema="lending-platform" />
3232

33+
<StudioTemplateLink template="lending-platform" />
34+
3335
## Chart of Accounts
3436

3537
The `chart` section defines three account groups: borrowers, lenders, and loans.

docs/examples/advanced/marketplace-payouts.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ This is the full ledger schema for a marketplace payouts system. The sections be
3131

3232
<LedgerSchema schema="marketplace-payouts" />
3333

34+
<StudioTemplateLink template="marketplace-payouts" />
35+
3436
## Chart of Accounts
3537

3638
The `chart` section defines the account groups for the marketplace: sellers, per-order escrow, the platform's own books, the PSPs and exchanges acting as counterparties.

docs/examples/advanced/multi-currency-wallet.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ This is the full ledger schema for a multi-currency wallet system.
3030

3131
<LedgerSchema schema="multi-currency-wallet" />
3232

33+
<StudioTemplateLink template="multi-currency-wallet" />
34+
3335
## Chart of Accounts
3436

3537
The `chart` section defines two account groups: users and the platform exchange.

docs/examples/advanced/neobank-fbo.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ This is the full ledger schema for a neobank FBO system. The sections below expl
3232

3333
<LedgerSchema schema="neobank-fbo" />
3434

35+
<StudioTemplateLink template="neobank-fbo" />
36+
3537
## Chart of Accounts
3638

3739
The `chart` section defines two top-level groups: `customers` (the per-customer liability subtree) and `platform` (banks, revenue, and expense accounts the platform controls).

docs/examples/advanced/omnibus.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ This is the full ledger schema for an omnibus account system. The sections below
2424

2525
<LedgerSchema schema="omnibus" />
2626

27+
<StudioTemplateLink template="omnibus" />
28+
2729
## Chart of Accounts
2830

2931
The `chart` section defines three account groups using standard correspondent banking terminology. **Nostro** ("ours") accounts represent assets you hold at partner institutions. **Vostro** ("yours") accounts represent liabilities — funds clients hold with you.

0 commit comments

Comments
 (0)