Releases: withastro/starlight
@astrojs/starlight@0.15.3
Patch Changes
-
#1303
3eefd21
Thanks @lilnasy! - chore: fix type errors in Starlight internals -
#1351
932c022
Thanks @roberto-butti! - Adds Italian translation forsearch.devWarning
UI -
#1298
c7e995c
Thanks @kevinzunigacuellar! - Fixes incorrect sorting behavior for some autogenerated sidebars -
#1347
8994d00
Thanks @kevinzunigacuellar! - RefactorgetLastUpdated
to usenode:child_process
instead ofexeca
. -
#1353
90fe8da
Thanks @delucis! - Fixes sidebar scrollbar hiding behind navbar
@astrojs/starlight@0.15.2
@astrojs/starlight@0.15.1
Patch Changes
-
#1273
ae53155
Thanks @natemoo-re! - Updates<SocialIcon />
styling for improved accessibility. Specifically, the component now meets the Target Size (Minimum) success criteria defined by Web Content Accessibility Guidelines (WCAG) 2.2. -
#1289
9bd343f
Thanks @HiDeoo! - Adds French translations for Expressive Code UI -
#1280
6b1693d
Thanks @kevinzunigacuellar! - Adds Spanish translations for Expressive Code UI -
#1276
667f23d
Thanks @hippotastic! - Updatesastro-expressive-code
dependency to the latest version -
#1266
c9edf30
Thanks @alex-way! - Removes redundant subprocess calls in git last-updated time utility to improve performance -
#1278
e88abb0
Thanks @HiDeoo! - Exports theStarlightUserConfig
TypeScript type representing the user's Starlight configuration received by plugins.
@astrojs/starlight@0.15.0
Minor Changes
-
#1238
02a808e
Thanks @delucis! - Add support for Astro v4, drop support for Astro v3⚠️ BREAKING CHANGE Astro v3 is no longer supported. Make sure you update Astro and any other integrations at the same time as updating Starlight.Use the new
@astrojs/upgrade
command to upgrade Astro and Starlight together:npx @astrojs/upgrade
-
#1242
d8fc9e1
Thanks @delucis! - Enables link prefetching on hover by defaultAstro v4’s prefetch support is now enabled by default. If
prefetch
is not set inastro.config.mjs
, Starlight will useprefetch: { prefetchAll: true, defaultStrategy: 'hover' }
by default.If you want to preserve previous behaviour, disable link prefetching in
astro.config.mjs
:import { defineConfig } from 'astro/config'; import starlight from '@astrojs/starlight'; export default defineConfig({ // Disable link prefetching: prefetch: false, integrations: [ starlight({ // ... }), ], });
Patch Changes
@astrojs/starlight@0.14.0
Minor Changes
-
#1144
7c0b8cb
Thanks @delucis! - Adds a configuration option to disable site indexing with Pagefind and the default search UI -
#942
efd7fdc
Thanks @HiDeoo! - Adds plugin APISee the plugins reference to learn more about creating plugins for Starlight using this new API.
-
#1135
e5a863a
Thanks @delucis! - Exposes localized UI strings in route dataComponent overrides can now access a
labels
object in their props which includes all the localized UI strings for the current page. -
#1162
00d101b
Thanks @delucis! - Adds support for extending Starlight’s content collection schemas
@astrojs/starlight-docsearch@0.1.0
@astrojs/starlight@0.13.1
@astrojs/starlight@0.13.0
Minor Changes
-
#1023
a3b80f7
Thanks @kevinzunigacuellar! - Respect thetrailingSlash
andbuild.format
Astro options when creating Starlight navigation links.⚠️ Potentially breaking change:
This change will cause small changes in link formatting for most sites.
These are unlikely to break anything, but if you care about link formatting, you may want to change some Astro settings.If you want to preserve Starlight’s previous behavior, set
trailingSlash: 'always'
in yourastro.config.mjs
:import { defineConfig } from 'astro/config'; import starlight from '@astrojs/starlight'; export default defineConfig({ trailingSlash: 'always', integrations: [ starlight({ // ... }), ], });
-
#742
c6a4bcb
Thanks @hippotastic! - Adds Expressive Code as Starlight’s default code block renderer⚠️ Potentially breaking change:
This addition changes how Markdown code blocks are rendered. By default, Starlight will now use Expressive Code.
If you were already customizing how code blocks are rendered and don't want to use the features provided by Expressive Code, you can preserve the previous behavior by setting the new config optionexpressiveCode
tofalse
.If you had previously added Expressive Code manually to your Starlight project, you can now remove the manual set-up in
astro.config.mjs
:- Move your configuration to Starlight’s new
expressiveCode
option. - Remove the
astro-expressive-code
integration.
For example:
import starlight from '@astrojs/starlight'; import { defineConfig } from 'astro/config'; - import expressiveCode from 'astro-expressive-code'; export default defineConfig({ integrations: [ - expressiveCode({ - themes: ['rose-pine'], - }), starlight({ title: 'My docs', + expressiveCode: { + themes: ['rose-pine'], + }, }), ], });
Note that the built-in Starlight version of Expressive Code sets some opinionated defaults that are different from the
astro-expressive-code
defaults. You may need to set somestyleOverrides
if you wish to keep styles exactly the same. - Move your configuration to Starlight’s new
-
#517
5b549cb
Thanks @liruifengv! - Add i18n support for default aside labels
Patch Changes
-
#1088
4fe5537
Thanks @Lootjs! - i18n(ru): added Russian aside labels translation -
#1083
e03a653
Thanks @at-the-vr! - i18n(hi): Add Hindi language support -
#1075
2f2adf2
Thanks @russbiggs! - Add Slack social link icon -
#1065
2d72ed6
Thanks @HiDeoo! - Ignore search keyboard shortcuts for elements with contents that are editable -
#1081
f27f781
Thanks @farisphp! - i18n(id): Add Indonesian aside labels translation -
#1082
ce27486
Thanks @bogdaaamn! - i18n(ro): Add Romanian UI translations
@astrojs/starlight@0.12.1
Patch Changes
-
#1069
b86f360
Thanks @Genteure! - Fix sidebar highlighting and navigation buttons for pages with path containing non-ASCII characters -
#1025
0d1e75e
Thanks @HiDeoo! - Internal: fix import issue in translation string loading mechanism -
#1044
a5a9754
Thanks @HiDeoo! - Fix last updated dates for pages displaying fallback content -
#1049
c27495d
Thanks @HiDeoo! - Expose Markdown content styles in@astrojs/starlight/style/markdown.css
@astrojs/starlight@0.12.0
Minor Changes
-
#995
5bf4457
Thanks @kevinzunigacuellar! - Adds support for adding sidebar badges to group headings -
#988
977fe13
Thanks @magicDGS! - Include social icon links in mobile menu -
#280
72cca2d
Thanks @cbontems! - Support light & dark variants of the hero image.⚠️ Potentially breaking change: Thehero.image
schema is now slightly stricter than previously.The
hero.image.html
property can no longer be used alongside thehero.image.alt
orhero.image.file
properties.
Previously,html
was ignored when used withfile
andalt
was ignored when used withhtml
.
Now, those combinations will throw errors.
If you encounter errors, remove theimage.hero
property that is not in use.