diff --git a/apps/portal/src/app/typescript/v5/sidebar.tsx b/apps/portal/src/app/typescript/v5/sidebar.tsx index fc2fe8af2ef..350835cc526 100644 --- a/apps/portal/src/app/typescript/v5/sidebar.tsx +++ b/apps/portal/src/app/typescript/v5/sidebar.tsx @@ -284,6 +284,35 @@ export const sidebar: SideBar = { }; }) || [], }, + { + name: "Onramp", + links: + docs.functions + ?.filter((f) => { + const [tag] = getCustomTag(f) || []; + if (tag !== "@bridge") return false; + const blockTag = f.signatures?.[0]?.blockTags?.find( + (b) => b.tag === "@bridge", + ); + const extensionName = blockTag + ? getExtensionName(blockTag) || "Common" + : "Common"; + if (extensionName !== "Onramp") return false; + return true; + }) + .map((f) => { + const blockTag = f.signatures?.[0]?.blockTags?.find( + (b) => b.tag === "@bridge", + ); + const extensionName = blockTag + ? getExtensionName(blockTag) || "Common" + : "Common"; + return { + name: f.name, + href: `${slug}/${extensionName.toLowerCase()}/${f.name}`, + }; + }) || [], + }, ...(docs.functions ?.filter((f) => { const [tag] = getCustomTag(f) || []; diff --git a/packages/thirdweb/scripts/typedoc.mjs b/packages/thirdweb/scripts/typedoc.mjs index e1fc363932e..1b7375a4383 100644 --- a/packages/thirdweb/scripts/typedoc.mjs +++ b/packages/thirdweb/scripts/typedoc.mjs @@ -13,6 +13,7 @@ const app = await Application.bootstrapWithPlugins({ "src/bridge/index.ts", "src/bridge/Buy.ts", "src/bridge/Sell.ts", + "src/bridge/Onramp.ts", "src/insight/index.ts", "src/engine/index.ts", ],