diff --git a/app/[[...path]]/page.tsx b/app/[[...path]]/page.tsx index 8fefe4a889379..0771d22a790ae 100644 --- a/app/[[...path]]/page.tsx +++ b/app/[[...path]]/page.tsx @@ -10,10 +10,15 @@ import {DocPage} from 'sentry-docs/components/docPage'; import {Home} from 'sentry-docs/components/home'; import {Include} from 'sentry-docs/components/include'; import {PlatformContent} from 'sentry-docs/components/platformContent'; -import {getDocsRootNode, nodeForPath} from 'sentry-docs/docTree'; +import { + getCurrentPlatformOrGuide, + getDocsRootNode, + nodeForPath, +} from 'sentry-docs/docTree'; import {getDocsFrontMatter, getFileBySlug} from 'sentry-docs/mdx'; import {mdxComponents} from 'sentry-docs/mdxComponents'; import {setServerContext} from 'sentry-docs/serverContext'; +import {capitilize} from 'sentry-docs/utils'; export async function generateStaticParams() { const docs = await getDocsFrontMatter(); @@ -112,10 +117,14 @@ export async function generateMetadata({params}: MetadataProps): Promise(arr: A[], comp: (v: A) => number): A[] { }); } +export const capitilize = (str: string) => { + return str.charAt(0).toUpperCase() + str.slice(1); +}; + type Page = { context: { sidebar_order?: number;