docs: improv version detection + fix breadcrumbs (#10083)

This commit is contained in:
Shahed Nasser
2024-11-13 18:20:05 +02:00
committed by GitHub
parent c054f47872
commit 0ea57659e8
6 changed files with 20 additions and 18 deletions
@@ -50,7 +50,10 @@ export const Breadcrumbs = () => {
tempBreadcrumbItems.set(
breadcrumbPath,
item.parentItem?.childSidebarTitle || item.parentItem?.title || ""
item.parentItem?.childSidebarTitle ||
item.parentItem?.chapterTitle ||
item.parentItem?.title ||
""
)
return tempBreadcrumbItems
@@ -76,12 +79,14 @@ export const Breadcrumbs = () => {
sidebarActiveItem.parentItem.type === "link"
? getLinkPath(sidebarActiveItem.parentItem) || "#"
: "#",
sidebarActiveItem.parentItem.title || ""
sidebarActiveItem.parentItem.chapterTitle ||
sidebarActiveItem.parentItem.title ||
""
)
}
tempBreadcrumbItems.set(
getLinkPath(sidebarActiveItem) || "/",
sidebarActiveItem.title || ""
sidebarActiveItem.chapterTitle || sidebarActiveItem.title || ""
)
}