diff --git a/nx-dev/feature-doc-viewer/src/lib/doc-viewer.tsx b/nx-dev/feature-doc-viewer/src/lib/doc-viewer.tsx index 990639290f..931badcda2 100644 --- a/nx-dev/feature-doc-viewer/src/lib/doc-viewer.tsx +++ b/nx-dev/feature-doc-viewer/src/lib/doc-viewer.tsx @@ -20,7 +20,9 @@ export function DocViewer({ relatedDocuments: RelatedDocument[]; }): JSX.Element { const router = useRouter(); - const isIntro = router.asPath.includes('/getting-started/intro'); + const isIntroPage = + router.asPath.includes('/getting-started/intro') || + router.asPath.includes('/plugins/intro/getting-started'); const ref = useRef(null); const { metadata, node, treeNode } = renderMarkdown( @@ -90,12 +92,12 @@ export function DocViewer({ data-document="main" className={cx( 'prose prose-slate dark:prose-invert w-full max-w-none 2xl:max-w-4xl', - { 'xl:max-w-2xl': !isIntro } + { 'xl:max-w-2xl': !isIntroPage } )} > {vm.content} - {!isIntro && ( + {!isIntroPage && (