I am thinking it would be beneficial to have a component at the top of each docs page to show the hierarchy of where the current page is in the docs.
For instance, the Working With Images in Gatsby page could have a breadcrumbs of
Docs / Guides / Images, Files, and Video / Working With Images in Gatsby
And then you can click any point in the chain to walk up the hierarchy.
Acceptance criteria by @marcysutton (added by @prestonso)
<nav aria-label=”breadcrumb”>> can be marked as presentational with <span role=”presentation”> or similar.Great intuition here! We've talked about it this week, actually. I think it could fit nicely into #6896. I saw an example from @calcsam from Django where they use a "you are here" section in the sidebar, something to consider! https://docs.djangoproject.com/en/2.2/howto/outputting-csv/
Yeah I think these two issues could go hand in hand where mine is for the hierarchy of the global docs while Shannon's will dig into the local hierarchy of an individual page
This would be great, particularly on mobile where the sidebar is collapsed it's currently sometimes quite hard to get a feel for where you are in the site structure.
Yeah, @fk and I talked about breadcrumb trails maybe a year ago, too and I'd love to pair w/ @lannonbr and @marcysutton on this!
I think breadcrumbs are the logical choice for this need, though the Django method could work (I haven't seen people use that very often so not sure!). Here is a design guide about breadcrumbs that I like. https://www.nngroup.com/articles/breadcrumbs/
A few key principles:
There are some fun, fairly minor design choices to make here too. For example, how do we show that the items in the breadcrumb are links? Do we make the name of the current page look a little different than the rest of the items to show that it is the current page?
So after a session with @shannonbux and @marcysutton tonight, we got some ideas for this feature and made some mockups for what we think would possibly work when displayed on the sites:
We are thinking that in a large layout, we can display a breadcrumbs component above the top heading and see a hierarchy of where someone is on the site and then have the current page be bolded. As described earlier by Shannon, the nodes up the docs tree are also pages so each section would be a link as well to climb up the tree

In certain circumstances though, the list of pages can get quite long so we could then truncate the top levels and leave just a few displayed possibly like below:

Finally, in a mobile layout, we could possibly display just a link to click that would walk up one layer like this:

@fk Do you have any guidance on these ideas?
Do you have any guidance on these ideas?
💯 to everything here (too 😃) — great work!
As Shannon wrote, the only thing I'm torn about is if we really need "Home":
Start the trail with "home" unless "home" exists in the site navigation. Do you guys think Gatsby's logo is clear enough "home" link? I think so, not sure without some usability testing
just a side note: when i jump to a doc then in the doc hierarchy is bolded.
but i miss here that the bolded selected doc is also moved to be visible area. i always need to scroll down to find the bolded text
@muescha I agree with your comment but I do think it is a separate topic so I moved it to another issue
Hey @lannonbr, how's it going with this initiative?
@marcysutton I actually have been on vacation this past week but will likely get to work on it when I get back
@lannonbr cool, enjoy your vacation! 🌴 🍹
Some notes and user stories/acceptance criteria from internal MDX component scoping:
Breadcrumbs provide another way for users to discern their location in the docs. By creating a reusable component for breadcrumbs, a hierarchy of links would be automatically added to every page and provide immense value to users. The component could handle its own responsive styling to be self-contained.
<nav aria-label=”breadcrumb”>> can be marked as presentational with <span role=”presentation”> or similar.Hey @lannonbr, are you back from vacation now? Any update on the breadcrumb component?
Yeah, so I have not sat down to start coding it out, but basically what I will want to do is walk down the docs tree structure and get the links and titles.
The sidebar already does this so I may either use some code from there to make a similar experience but for the breadcrumbs.
I've been working on some updates to the /features page and was thinking this would be really helpful for what we're adding. Any update on this @lannonbr? I feel like this'll help a lot!
So I actually am going to unassign myself off this issue as I haven't had enough time to work on this issue, but I do still think it will be useful when someone implements this.
I would love to pair with someone to work on this...
Hey @mikeattara I'd love to pair with you on this if you want! Shoot me an email and we can set something up 🙂
@gillkyle I've sent you an email. Thanks and look forward to working with you.
This was just merged in #15165 🎉. Closing
Most helpful comment
Yeah, so I have not sat down to start coding it out, but basically what I will want to do is walk down the docs tree structure and get the links and titles.
The sidebar already does this so I may either use some code from there to make a similar experience but for the breadcrumbs.