Sidebar
Starlight provides a sidebar, but there are some issues:
It doesnβt preserve state (scroll, open/closed submenus) on page switch(fixed in v0.26.0)- Itβs not possible to have a root page for submenus
There are some workarounds:
Starlight - Scroll Current Page into View
Note: Use Starlight v0.26.0 or later instead.
-
Create
Sidebar
component -
Configure Astro
Alternative sidebars for Starlight
Starlight provides configurable sidebar, which is good enough for documentation. For digital garden we may want to use different approach, for example:
Alphabetical list
Articles grouped by date
Articles grouped by tags
Multiple sidebars experiment
TODO
- Render as partials and fetch from the server instead of prerendering, because there are too many DOM nodes.
- Tabs should preserve state across navigations.
- The scroll area should be inside the
TabItem
.