Replies: 4 comments 4 replies
-
|
Note that the breadcrumb is highly related to the sidebar structure, so we probably also want to allow assigning a In the same way, there's already a Does it make sense? I'm assuming you want to use frontmatter over sidebars metadata because you are using an auto-generated sidebar? About the "root" of the breadcrumb, for now, it's a quite simple solution linking to the site root (only if there's a root, some sites don't have one 😅 cf #6749) We can definitively improve it too, however, it's not 100% clear what we should do by default and what options/API to expose to customize this behavior. I like this by default: However:
As this breadcrumb feature is quite new, I'd to delay these possible improvements a bit and collect more user-feedback. If you have opinions on how we should handle the breadcrumb root, please let us know below! |
Beta Was this translation helpful? Give feedback.
-
|
We're not using auto-generated sidebars, but we don't want the breadcrumb label to be the same as the sidebar label, if that makes sense. For multidocs, I like the idea of: As for providing a name/lable for the docs plugin instance. I am not entirely sure what would be the best solution here, but could it be something like this? 🤷♂️ {
id: 'community',
path: 'community',
routeBasePath: 'community',
label: 'Community',
} |
Beta Was this translation helpful? Give feedback.
-
|
Expanding on slorber's idea for a breadcrumb option to the doc's plugin, what if that option where an array that gets added to the start of a breadcrumb. Then users would have the option of breadcrumbs being: Home -> Docs -> Cat1 -> Cat2 -> Doc or Home -> Cat1 -> Cat2 -> Doc or Docs -> Cat1 -> Cat2 -> Doc by passing [Home, Docs] or [Home] or [Docs] in that array respectively? Additionally is this case the URL for Home and Docs could be set depending on the site's structure. (Don't need to assume Docs has a page with slug "/" etc) |
Beta Was this translation helpful? Give feedback.
-
|
Let's continue this discussion in the dedicated issue: #6953 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to add something like this:
The reason for this is, we have multiple products and the opening or first doc for each product is named Introduction and so, this also appears in the breadcrumb. However, it doesn't really give you an indication which product you're viewing whereas a custom
breadcrumb_labelwould.For example:
As for Multidocs, can we get an option to display the multidocs "home" in the breadcrumb.
At the moment, it displays like this:
For multidocs, it should display like this imo.
Beta Was this translation helpful? Give feedback.
All reactions