Repository navigation
Support shortcuts in the sidebar #3795
Closed
matafokka
started this conversation in
Feature Requests
Replies: 1 comment 4 replies
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
What version of
starlightare you using?0.37.7
What is your idea?
Support shortcuts to a page in the sidebar: allow defining one link to a page as "main", and the other links to the same page would automatically be "shortcuts".
Why is this feature necessary?
This solves adding a top-level shortcut to a deeply nested link. Most prominent example: adding a top-level link to the generated API docs.
Do you have examples of this feature in other projects?
I'm building a documentation website with Starlight. I have generated an API documentation for a package. This documentation describes options for said package. I want to display a "Configuration options" link at the top level that leads to the options description. Basically, I want this:
I have implemented this but I've had to jump through the hoops to do so.
Currently, Astro supports duplicate link, but only the first defined link becomes "main". The duplicates still work, but after navigation the first defined link will be highlighted. And there is no indication that the duplicate link is a shortcut
Participation
All reactions