do something about empty autogenerated sidebar groups #1410
Closed
boneskull
started this conversation in
Feature Requests
Replies: 1 comment 3 replies
-
Thanks for the issue @boneskull! Not sure it’s a “bug” exactly — the config says to generate a group, Starlight generates the group as asked, it just happens not to have content yet. Were there particular scenarios where you found yourself hitting this in particular? Would be good to understand the use case better. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What version of
starlight
are you using?0.16.0
What version of
astro
are you using?4.2.4
What package manager are you using?
npm
What operating system are you using?
mac
What browser are you using?
vivaldi
Describe the Bug
If the directory specified in the
directory
prop of an autogenerate-style sidebar item is either a) missing or b) empty, Starlight shows an empty, expandable group.I'm not sure what should happen instead (refuse to build? just hide it? warn?), but the current behavior is undesirable.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-btsg8v?file=astro.config.mjs
Participation
Beta Was this translation helpful? Give feedback.
All reactions