Core & UI: Support specifying the url of root node when breadcrumbs have includeRoot enabled

This commit is contained in:
fuma-nama
2024-07-15 21:16:22 +08:00
parent b9b232073c
commit a5c34f06fe
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -0,0 +1,6 @@
---
'fumadocs-core': patch
'fumadocs-ui': patch
---
Support specifying the url of root node when breadcrumbs have `includeRoot` enabled
+1 -1
View File
@@ -98,7 +98,7 @@ export function DocsPage({
!tocOptions.enabled && 'max-w-[1200px]',
)}
>
{replaceOrDefault(breadcrumb, <Breadcrumb full={breadcrumb.full} />)}
{replaceOrDefault(breadcrumb, <Breadcrumb {...breadcrumb} />)}
{props.children}
<div className="mt-auto" />
{lastUpdate ? <LastUpdate date={new Date(lastUpdate)} /> : null}