Allow sidebar groups to have their own content #2492
Replies: 2 comments 2 replies
-
Thanks for the feedback. Just for reference and add some initial context to the discussion, linking to this comment which describes the current reasoning regarding the current behavior:
|
Beta Was this translation helpful? Give feedback.
-
I was think about this feature request, and wanted to share my thoughts. In general, I find that lack of sidebar consistency is a big user experience challenge. If everything behaves the same it's fine, but if different sections have different behavior, users can get lost or frustrated. Starlight's behavior is consistent, which is a great default. On the other hand, giving sidebar groups their own content may be worthwhile, given that:
I have seen and used both kinds of sidebar groups, and appreciate both for different reasons. If I had the choice, I would suggest the following:
But I can still live without the feature. We've got working docs site after all :) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
What version of
starlight
are you using?0.28.3
What is your idea?
Allow groups in the sidebar to not just group pages together, but also have a page of their own you can read when you click the group.
Why is this feature necessary?
Right now, you can have an index.mdx in a group and with the automatic configuration, it gets translated into a new page with the slug of the group, the title of the group, but a different entry in the sidebar. I think, I would be cleaner to have the index.mdx of the group (if present) be a page associated with the group itself, not just another page inside the group. This will help introduce different sections of the documentation in a safer and more concise way. For instance, the approach I'm using in my documentation is to label index as Overview, and then also manually edit the prev and next attributes of the following and previous pages to be the section name, which can lead to errors when pages are reordered or if the section is renamed.
Do you have examples of this feature in other projects?
Participation
Beta Was this translation helpful? Give feedback.
All reactions