@astrojs/starlight@0.25.0
Minor Changes
-
#2025
47f32c1
Thanks @HiDeoo! - Removes the/
search shortcut for accessibility reasons.⚠️ Potentially breaking change: Thesearch.shortcutLabel
UI string has been removed. If you were using this string in your custom UI, you will need to update your code. -
#2064
c5b47cb
Thanks @SnowDingo! - Improves styling of Markdown tables to work better in different contexts, including against different background colours like when used in asides. -
#2031
2bab648
Thanks @delucis! - Makes sidebar entry parsing stricter in Starlight config⚠️ Potentially breaking change: Previously Starlight would accept a sidebar entry that matched one of its expected shapes, even if it included additional properties. For example, including bothlink
anditems
was considered valid, withitems
being ignored. Now, it is an error to include more than one oflink
,items
, orautogenerate
in a sidebar entry.If you see errors after updating, look for sidebar entries in the Starlight configuration in
astro.config.mjs
that include too many keys and remove the one that was previously ignored. -
#1874
eeba06e
Thanks @lorenzolewis! - Adds a new syntax for specifying sidebar link items for internal linksYou can now specify an internal page using only its slug, either as a string, or as an object with a
slug
property:starlight({ title: 'Docs with easier sidebars', sidebar: ['getting-started', { slug: 'guides/installation' }], });
Starlight will use the linked page’s frontmatter to configure the sidebar link.
Patch Changes
- #2081
f0181d2
Thanks @andrii-bodnar! - Updates the Ukrainian UI translations