Releases: withastro/starlight
@astrojs/[email protected]
@astrojs/[email protected]
Minor Changes
-
#2551
154c8e3
Thanks @hippotastic! - Updates theastro-expressive-code
dependency to the latest version (0.38).The new version allows using
ec.config.mjs
to selectively override individual Expressive Code styles and settings provided by Starlight themes and plugins, speeds up Shiki language loading, and adds the config optionexpressiveCode.shiki.injectLangsIntoNestedCodeBlocks
. See the Expressive Code release notes for full details. -
#2252
6116db0
Thanks @HiDeoo! - Improves build performance for sites with large sidebarsThis release adds a caching layer to Starlight’s sidebar generation logic, reducing the number of times sidebars need to be regenerated while building a site. Some benchmarks for projects with a complex sidebar saw builds complete more than 35% faster with this change.
-
#2503
a4c8edd
Thanks @HiDeoo! - Improves the accessibility of asides and tabs by removing some unnecessary HTML landmarks.
Patch Changes
- #2579
241966b
Thanks @RafidMuhymin! - Adds social link icon for Nostr
@astrojs/[email protected]
@astrojs/[email protected]
Patch Changes
-
#2546
bf42300
Thanks @HiDeoo! - Fixes an issue where i18n content collection related errors, e.g. malformed JSON or YAML, would not be reported. -
#2548
07673c8
Thanks @HiDeoo! - Fixes a URL localization edge case. In projects without a root locale configured, slugs without a locale prefix did not fall back to the default locale as expected. -
#2547
91e1dd7
Thanks @HiDeoo! - Fixes a Firefox Markdown content rendering issue for text sentences separated by a line break. -
#2524
1b46783
Thanks @jsparkdev! - Fixes a broken link to Astro’s Docs in an error message
@astrojs/[email protected]
Patch Changes
-
#2444
d585b3e
Thanks @HiDeoo! - Fixes a UI string translation issue for languages with a region subtag. -
#2518
0f69db8
Thanks @morinokami! - Updates Japanese UI translations -
#2507
bd6ced5
Thanks @HiDeoo! - Fixes a table of contents highlighting issue after resizing the window. -
#2444
d585b3e
Thanks @HiDeoo! - Refactors various components to use the new built-in localization system to access translated UI strings.
@astrojs/[email protected]
Patch Changes
-
#2408
0b4823d
Thanks @HiDeoo! - Fixes a link formatting issue when using the Astrobuild.format
option set tofile
with abase
. -
#2380
7b451cf
Thanks @delucis! - Loosen Starlight’s i18n schema to pass through unknown keys -
#2388
6bba3d8
Thanks @HiDeoo! - Fixes a potential type-checking issue in Starlight projects. -
#2443
a0f40b3
Thanks @kevinzunigacuellar! - Fixes CSS issue where bottom padding is not applied in the search dialog.
@astrojs/[email protected]
@astrojs/[email protected]
@astrojs/[email protected]
Minor Changes
-
#1923
5269aad
Thanks @HiDeoo! - Overhauls the built-in localization system which is now powered by thei18next
library and available to use anywhere in your documentation website.See the “Using UI translations” guide to learn more about how to access built-in UI labels or your own custom strings in your project. Plugin authors can also use the new
injectTranslations()
helper to add or update translation strings.⚠️ BREAKING CHANGE: TheAstro.props.labels
props has been removed from the props passed down to custom component overrides.If you are relying on
Astro.props.labels
(for example to read a built-in UI label), you will need to update your code to use the newAstro.locals.t()
helper instead.--- import type { Props } from '@astrojs/starlight/props'; // The `search.label` UI label for this page’s language: const searchLabel = Astro.locals.t('search.label'); ---
-
#2285
7286220
Thanks @HiDeoo! - Adds support for translating sidebar badges. -
#1923
5269aad
Thanks @HiDeoo! -⚠️ BREAKING CHANGE: The minimum supported version of Astro is now 4.14.0Please update Astro and Starlight together:
npx @astrojs/upgrade