Skip to content

Only show one "Introduction" item with groupPathsBy: "tagGroup" and categoryLinkSource: "tag" #1297

@YoanaIvanova

Description

@YoanaIvanova

With this sidebarOptions config:

sidebarOptions: {
    groupPathsBy: "tagGroup",
    categoryLinkSource: "tag",
}

the "Introduction" link to the intro page is duplicated under each tag group category. Here's a screenshot from the "Restaurant" demo in the docusaurus-openapi tryingpan:

Image

Is there a way to only show one link to the "Introduction" page, above all tag groups under "Restaurant"?

I've got a hacky piece of code that goes over the generated sidebar, removes the duplicates and places one "Introduction" item at the top, but it would be so much better if I could control this via config.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    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