Skip to content

Commit 0e4390b

Browse files
[Docs] Add Onramp extension to sidebar and typedoc (#7167)
1 parent aec8d88 commit 0e4390b

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

apps/portal/src/app/typescript/v5/sidebar.tsx

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,35 @@ export const sidebar: SideBar = {
284284
};
285285
}) || [],
286286
},
287+
{
288+
name: "Onramp",
289+
links:
290+
docs.functions
291+
?.filter((f) => {
292+
const [tag] = getCustomTag(f) || [];
293+
if (tag !== "@bridge") return false;
294+
const blockTag = f.signatures?.[0]?.blockTags?.find(
295+
(b) => b.tag === "@bridge",
296+
);
297+
const extensionName = blockTag
298+
? getExtensionName(blockTag) || "Common"
299+
: "Common";
300+
if (extensionName !== "Onramp") return false;
301+
return true;
302+
})
303+
.map((f) => {
304+
const blockTag = f.signatures?.[0]?.blockTags?.find(
305+
(b) => b.tag === "@bridge",
306+
);
307+
const extensionName = blockTag
308+
? getExtensionName(blockTag) || "Common"
309+
: "Common";
310+
return {
311+
name: f.name,
312+
href: `${slug}/${extensionName.toLowerCase()}/${f.name}`,
313+
};
314+
}) || [],
315+
},
287316
...(docs.functions
288317
?.filter((f) => {
289318
const [tag] = getCustomTag(f) || [];

packages/thirdweb/scripts/typedoc.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const app = await Application.bootstrapWithPlugins({
1313
"src/bridge/index.ts",
1414
"src/bridge/Buy.ts",
1515
"src/bridge/Sell.ts",
16+
"src/bridge/Onramp.ts",
1617
"src/insight/index.ts",
1718
"src/engine/index.ts",
1819
],

0 commit comments

Comments
 (0)