Releases: withastro/starlight
@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
Patch Changes
@astrojs/[email protected]
@astrojs/[email protected]
@astrojs/[email protected]
Minor Changes
-
#1255
6f3202b
Thanks @Fryuni! - Adds support for server-rendered Starlight pages.When building a project with
hybrid
orserver
output mode, a newprerender
option on Starlight config can be set tofalse
to make all Starlight pages be rendered on-demand:export default defineConfig({ output: 'server', integrations: [ starlight({ prerender: false, }), ], });
Patch Changes
-
#2242
756e85e
Thanks @delucis! - Refactors the logic for persisting and restoring sidebar state across navigations for better performance on slow or busy devices -
#1255
6f3202b
Thanks @Fryuni! - Improves performance of computing the last updated times from Git history.Instead of executing
git
for each docs page, it is now executed twice regardless of the number of pages. -
#1255
6f3202b
Thanks @Fryuni! - Fixes last updated times on projects with customsrcDir
@astrojs/[email protected]
@astrojs/[email protected]
@astrojs/[email protected]
Patch Changes
-
#2281
5062d30
Thanks @HiDeoo! - Fixes a potential text rendering issue that could include extra whitespaces for text containing colons. -
#2279
62d59e2
Thanks @HiDeoo! - Fixes an issue with frontmatter schemas containing collection references used with the<StarlightPage />
component and an Astro version greater than4.14.0
.
@astrojs/[email protected]
Patch Changes
-
#2273
746e0cd
Thanks @delucis! - Fixes type error when using Starlight with Astro v4.15 -
#2265
25b661e
Thanks @SeraphicRav! - Adds TikTok social icon -
#2250
c0a6166
Thanks @HiDeoo! - Removes internal E2E tests from the package published to the npm registry. -
#2253
72bc76a
Thanks @HiDeoo! - Fixes an issue preventing to use theclass
attribute in hero action link buttons.