Skip to content

Add breadcrumbs to docs #6096

@Josh-Cena

Description

@Josh-Cena

Have you read the Contributing Guidelines on issues?

Description

Docs should have breadcrumbs in addition to sidebar.

Has this been requested on Canny?

No

Motivation

I've just built this feature for someone: PatelN123/Digital-Support-Notes#1 (That person just wanted the primary category, but I did extract the entire breadcrumb list)

It wasn't quite ergonomic, and I think it would make sense to make itself into the core.

API design

It would be opt-in, something like showBreadcrumbs in the docs plugin. I think we can also set a metadata to help with SEO?

If we don't want an opinionated implementation for the UI component, we can just implement a useBreadCrumbs in theme-common and let users wrap DocItem to implement what they want.

Have you tried building it?

Yes, see that PR for how I did it.

Self-service

  • I'd be willing to contribute this feature to Docusaurus myself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureThis is not a bug or issue with Docusausus, per se. It is a feature request for the future.status: accepting prThis issue has been accepted, and we are looking for community contributors to implement this

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions