diff --git a/Frontend/src/app/(pages)/docs/[[...slug]]/layout.tsx b/Frontend/src/app/(pages)/docs/[[...slug]]/layout.tsx index f20181f..0bae1f2 100644 --- a/Frontend/src/app/(pages)/docs/[[...slug]]/layout.tsx +++ b/Frontend/src/app/(pages)/docs/[[...slug]]/layout.tsx @@ -9,7 +9,8 @@ export const dynamic = "force-static"; /** * The layout for the docs page. * - * @param children the children of this layout + * @param params the params of the request + * @param render the children to render * @returns the layout jsx */ const DocumentationLayout = ({ diff --git a/Frontend/src/app/(pages)/docs/[[...slug]]/page.tsx b/Frontend/src/app/(pages)/docs/[[...slug]]/page.tsx index c42671d..f3ebee7 100644 --- a/Frontend/src/app/(pages)/docs/[[...slug]]/page.tsx +++ b/Frontend/src/app/(pages)/docs/[[...slug]]/page.tsx @@ -20,7 +20,7 @@ import Image from "next/image"; * The page to display content * from an MDX file on the docs. * - * @param slug the slug of the mdx file + * @param params the params of the request * @return the page jsx */ const ContentPage = ({ params }: PageProps): ReactElement => { diff --git a/Frontend/src/app/components/docs/sidebar.tsx b/Frontend/src/app/components/docs/sidebar.tsx index 72611ca..dbdef87 100644 --- a/Frontend/src/app/components/docs/sidebar.tsx +++ b/Frontend/src/app/components/docs/sidebar.tsx @@ -55,23 +55,31 @@ const Sidebar = ({ activeSlug }: { activeSlug: string }): ReactElement => { {/* Links */}
{categoryContent.map( - (content, contentIndex) => ( - - {content.title} - - ) + ( + content: DocsContentMetadata, + contentIndex: number + ): ReactElement => { + const active: boolean = + (!activeSlug && + content.slug === "home") || + activeSlug === content.slug; + return ( + + {content.title} + + ); + } )}