Starlight Changelog
0.15.3
Patch Changes
-
#1303
3eefd21Thanks @lilnasy! - chore: fix type errors in Starlight internals -
#1351
932c022Thanks @roberto-butti! - Adds Italian translation forsearch.devWarningUI -
#1298
c7e995cThanks @kevinzunigacuellar! - Fixes incorrect sorting behavior for some autogenerated sidebars -
#1347
8994d00Thanks @kevinzunigacuellar! - RefactorgetLastUpdatedto usenode:child_processinstead ofexeca. -
#1353
90fe8daThanks @delucis! - Fixes sidebar scrollbar hiding behind navbar
0.15.2
Patch Changes
-
#1254
e9659e8Thanks @Pukimaa! - Adds Open Collective social link icon -
#1295
c3732a9Thanks @juchym! - Improve Ukrainian UI translations
0.15.1
Patch Changes
-
#1273
ae53155Thanks @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
9bd343fThanks @HiDeoo! - Adds French translations for Expressive Code UI -
#1280
6b1693dThanks @kevinzunigacuellar! - Adds Spanish translations for Expressive Code UI -
#1276
667f23dThanks @hippotastic! - Updatesastro-expressive-codedependency to the latest version -
#1266
c9edf30Thanks @alex-way! - Removes redundant subprocess calls in git last-updated time utility to improve performance -
#1278
e88abb0Thanks @HiDeoo! - Exports theStarlightUserConfigTypeScript type representing the user’s Starlight configuration received by plugins.
0.15.0
Minor Changes
-
#1238
02a808eThanks @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/upgradecommand to upgrade Astro and Starlight together:Terminal window npx @astrojs/upgrade -
#1242
d8fc9e1Thanks @delucis! - Enables link prefetching on hover by defaultAstro v4’s prefetch support is now enabled by default. If
prefetchis 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
-
#1226
909afa2Thanks @tlandmangh! - Add Dutch translations of default aside labels -
#1243
ee234ebThanks @khajimatov! - Fix typo in Russian untranslated content notice -
#1170
bcc2301Thanks @tmcw! - Fix timezone-reliance in LastUpdated
0.14.0
Minor Changes
-
#1144
7c0b8cbThanks @delucis! - Adds a configuration option to disable site indexing with Pagefind and the default search UI -
#942
efd7fdcThanks @HiDeoo! - Adds plugin APISee the plugins reference to learn more about creating plugins for Starlight using this new API.
-
#1135
e5a863aThanks @delucis! - Exposes localized UI strings in route dataComponent overrides can now access a
labelsobject in their props which includes all the localized UI strings for the current page. -
#1162
00d101bThanks @delucis! - Adds support for extending Starlight’s content collection schemas
0.13.1
Patch Changes
-
#1111
cb19d07Thanks @at-the-vr! - Fix minor punctuation typo in Hindi UI string -
#1156
631c5aeThanks @votemike! - Updates@astrojs/sitemapdependency to the latest version -
#1109
0c25c1fThanks @HiDeoo! - Internal: fix import issue with expressive-code
0.13.0
Minor Changes
-
#1023
a3b80f7Thanks @kevinzunigacuellar! - Respect thetrailingSlashandbuild.formatAstro 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
c6a4bcbThanks @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 option
expressiveCodetofalse.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
expressiveCodeoption. - Remove the
astro-expressive-codeintegration.
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-codedefaults. You may need to set somestyleOverridesif you wish to keep styles exactly the same. - Move your configuration to Starlight’s new
-
#517
5b549cbThanks @liruifengv! - Add i18n support for default aside labels
Patch Changes
-
#1088
4fe5537Thanks @Lootjs! - i18n(ru): added Russian aside labels translation -
#1083
e03a653Thanks @at-the-vr! - i18n(hi): Add Hindi language support -
#1075
2f2adf2Thanks @russbiggs! - Add Slack social link icon -
#1065
2d72ed6Thanks @HiDeoo! - Ignore search keyboard shortcuts for elements with contents that are editable -
#1081
f27f781Thanks @farisphp! - i18n(id): Add Indonesian aside labels translation -
#1082
ce27486Thanks @bogdaaamn! - i18n(ro): Add Romanian UI translations
0.12.1
Patch Changes
-
#1069
b86f360Thanks @Genteure! - Fix sidebar highlighting and navigation buttons for pages with path containing non-ASCII characters -
#1025
0d1e75eThanks @HiDeoo! - Internal: fix import issue in translation string loading mechanism -
#1044
a5a9754Thanks @HiDeoo! - Fix last updated dates for pages displaying fallback content -
#1049
c27495dThanks @HiDeoo! - Expose Markdown content styles in@astrojs/starlight/style/markdown.css
0.12.0
Minor Changes
-
#995
5bf4457Thanks @kevinzunigacuellar! - Adds support for adding sidebar badges to group headings -
#988
977fe13Thanks @magicDGS! - Include social icon links in mobile menu -
#280
72cca2dThanks @cbontems! - Support light & dark variants of the hero image.⚠️ Potentially breaking change: The
hero.imageschema is now slightly stricter than previously.The
hero.image.htmlproperty can no longer be used alongside thehero.image.altorhero.image.fileproperties. Previously,htmlwas ignored when used withfileandaltwas ignored when used withhtml. Now, those combinations will throw errors. If you encounter errors, remove theimage.heroproperty that is not in use.
Patch Changes
-
#1004
7f92213Thanks @nunhes! - Add Galician language support -
#1003
f1fdb50Thanks @delucis! - Internal: refactor translation string loading to make translations available to Starlight integration code
0.11.2
Patch Changes
-
#944
7a6446eThanks @HiDeoo! - Fix issue with sidebar autogenerated groups configured with a directory containing leading or trailing slash -
#985
92b3b57Thanks @delucis! - Fix edit URLs for pages displaying fallback content -
#986
0470734Thanks @dreyfus92! - Prevent overscrolling on mobile table of contents by setting ‘overscroll-behavior: contain’. -
#924
39d6302Thanks @kevinzunigacuellar! - Remove extra margin from markdown lists that uses inline code -
#814
1e517d9Thanks @julien-deramond! - Prevent text from overflowing pagination items