Redocly / developer-portal-starter

Starter template for the Redocly developer portal
https://redoc.ly
Other
64 stars 101 forks source link

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

Open davidscottturner opened 2 years ago

davidscottturner commented 2 years ago

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:

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:

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

spacedsweden commented 2 years ago

+1 on this