diff --git a/apps/portal/src/app/references/components/TDoc/PageLayout.tsx b/apps/portal/src/app/references/components/TDoc/PageLayout.tsx index 85be80d46cf..6c92cf1542b 100644 --- a/apps/portal/src/app/references/components/TDoc/PageLayout.tsx +++ b/apps/portal/src/app/references/components/TDoc/PageLayout.tsx @@ -52,12 +52,27 @@ export function getTDocPage(options: { // category pages if (docSlug in subgroups) { return ( - +
+ + + +
); } @@ -74,7 +89,7 @@ export function getTDocPage(options: { crumbs={[ { href: `/references/${packageSlug}/${version}`, - name: "References", + name: sdkTitle, }, { href: `/references/${packageSlug}/${version}/${selectedDoc.name}`, @@ -209,8 +224,8 @@ async function IndexContent(props: { return (
- - {props.sdkTitle} Reference + + {props.sdkTitle}
diff --git a/apps/portal/src/components/Layouts/DocLayout.tsx b/apps/portal/src/components/Layouts/DocLayout.tsx index 3876f0c798b..97b3274af65 100644 --- a/apps/portal/src/components/Layouts/DocLayout.tsx +++ b/apps/portal/src/components/Layouts/DocLayout.tsx @@ -46,7 +46,11 @@ export function DocLayout(props: DocLayoutProps) { "hidden xl:flex", )} > - + )}
@@ -57,12 +61,7 @@ export function DocLayout(props: DocLayoutProps) { data-no-llm={props.noLLM} data-noindex={props.noIndex} > -
-
- {props.sideBar.name} -
- {props.children} -
+
{props.children}
void; header?: React.ReactNode; name: string; + className?: string; }; export function DocSidebar(props: ReferenceSideBarProps) { return ( -
+
{/* Side bar Name */} {props.header}