From 75ca71fa5767b0d4e288cd1526792e3418b6d3fc Mon Sep 17 00:00:00 2001 From: Andrew Jiang Date: Mon, 8 Jul 2024 16:33:09 -0400 Subject: [PATCH] fix: frontmatter regression (#1117) --- packages/ui/app/src/layout/GuideLayout.tsx | 2 +- packages/ui/app/src/layout/OverviewLayout.tsx | 2 +- packages/ui/app/src/mdx/mdx.ts | 11 ++--- .../ui/app/src/mdx/plugins/rehypeLayout.ts | 45 +++++++------------ .../app/src/resolver/ApiDefinitionResolver.ts | 16 +++---- .../util/convertNavigatableToResolvedPath.ts | 6 +-- 6 files changed, 34 insertions(+), 48 deletions(-) diff --git a/packages/ui/app/src/layout/GuideLayout.tsx b/packages/ui/app/src/layout/GuideLayout.tsx index ec70254217..ae8b7cd3b0 100644 --- a/packages/ui/app/src/layout/GuideLayout.tsx +++ b/packages/ui/app/src/layout/GuideLayout.tsx @@ -44,7 +44,7 @@ export function GuideLayout({ }: GuideLayoutProps): ReactElement { return (
- {tableOfContents != null && ( + {tableOfContents != null && tableOfContents.length > 0 && (