Skip to content
This repository was archived by the owner on Aug 18, 2023. It is now read-only.
This repository was archived by the owner on Aug 18, 2023. It is now read-only.

Feature Request - Allow ability for sidebar to auto create links to headers in Md file #170

@davidscottturner

Description

@davidscottturner

It would be nice to have the ability to have the sidebar reference an anchor in a MD file or to auto generate links based on headings a in the file.

I tried to make a sidebar config to be:

pages:
- group: Quick start again
expanded: true
pages:
- label: Introduction
page: developer-portal/quickstart/index.md#Introduction

which would render something like:

Quick start
|_ Introduction (would navigate to the Introduction heading in the quickstart/index.md file).

UPDATE:

I did try the href feature and got it to work using a relative path to host:
For example

pages:
- group: Quick start again
expanded: true
pages:
- label: Introduction
href: "/developer-portal/quickstart/#Introduction" (renders the URL correctly and works)

It would still be a nice feature to have an option to auto generate it from the sidebar.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions