Changelog
🐞 Patch Changes
-
#1622
3a074badThanks @SamuelLHuber! - Adds 1 new icon:farcaster -
#1616
a86f9b71Thanks @dragomano! - Updates Russian UI strings -
#1698
67b892fdThanks @liruifengv! - Adds 1 new icon:starlight -
#1687
6fa9ea7eThanks @mingjunlu! - TranslatesfileTree.directoryUI string into Traditional Chinese.
-
🐞 Patch Changes
-
#1614
78fc9042Thanks @kpodurgiel! - Adds Polish UI translations -
#1596
13ed30cdThanks @HiDeoo! - Adds support for toggling the built-in search modal using theCtrl+kkeyboard shortcut. -
#1608
4096e1b7Thanks @HiDeoo! - Removes nested CSS from the<FileTree>component to prevent a potential warning when using Tailwind CSS. -
#1626
67459cb4Thanks @hippotastic! - Fixes a bundling issue that caused imports from@astrojs/starlight/componentsto fail when using the config settingexpressiveCode: false.
🐞 Patch Changes
-
#1584
8851d5cdThanks @HiDeoo! - Adds 2 new icons:appleandlinux. -
#1577
0ba77890Thanks @morinokami! - TranslatesfileTree.directoryUI string into Japanese. -
#1593
fa7ed245Thanks @liruifengv! - TranslatesfileTree.directoryUI string into simplified Chinese. -
#1585
bd4e278fThanks @HiDeoo! - TranslatesfileTree.directoryUI string into French. -
#1587
c5794260Thanks @Eveeifyeve! - Adds 1 new icon:homebrew.
-

🍿 Minor Changes
-
#1568
5f99a71dThanks @HiDeoo! - Adds support for optionally setting an icon on a<TabItem>component to make it easier to visually distinguish between tabs. -
#1308
9a918a5bThanks @HiDeoo! - Adds<FileTree>component to display the structure of a directory. -
#1308
9a918a5bThanks @HiDeoo! - Adds 144 new file-type icons from the Seti UI icon set, available with theseti:prefix, e.g.seti:javascript. -
#1564
d880065eThanks @delucis! - Adds a<Steps>component for styling more complex guided tasks. -
#1308
9a918a5bThanks @HiDeoo! - Adds 5 new icons:astro,biome,bun,mdx, andpnpm.
-
🐞 Patch Changes
- #1553
8e091147Thanks @hippotastic! - Updates Expressive Code to v0.33.4 to fix potential race condition bug in Shiki.
- #1553

🍿 Minor Changes
-
#1541
1043052fThanks @hippotastic! - Updatesastro-expressive-codedependency to the latest minor release (0.33).This unlocks support for word wrap and line numbers, as well as updating the syntax highlighter to the latest Shiki release, which includes new and updated language grammars.
See the Expressive Code release notes for more information including details of potentially breaking changes.
🐞 Patch Changes
-
🐞 Patch Changes
-
#1527
163bc84Thanks @HiDeoo! - Exports theStarlightPagePropsTypeScript type representing the props expected by the<StarlightPage />component. -
#1504
fc83a05Thanks @mingjunlu! - Adds Traditional Chinese UI translations -
#1534
aada680Thanks @delucis! - Improves DX of thesidebarprop used by the new<StarlightPage>component.
-

🍿 Minor Changes
-
#1485
2cb3578Thanks @timokoessler! - Add support for setting html attributes of hero action links -
#1175
dd11b95Thanks @HiDeoo! - Adds a new<StarlightPage>component to use the Starlight layout in custom pages.To learn more about this new feature, check out the new “Using Starlight’s design in custom pages” guide.
-
#1499
97bf523Thanks @delucis! - Adds a new<Aside>componentThe new component is in addition to the existing custom Markdown syntax.
-

🍿 Minor Changes
-
#1454
1d9ef56Thanks @Fryuni! - Makes Starlight compatible with on-demand server rendering (sometimes referred to as server-side rendering or SSR).Starlight pages are always prerendered, even when using
output: 'server'. -
#1454
1d9ef56Thanks @Fryuni! - Enables Astro’sexperimental.globalRoutePriorityoption and bumps the minimum required Astro version.⚠️ BREAKING CHANGE The minimum supported Astro version is now 4.2.7. Upgrade Astro and Starlight together:
Terminal window npx @astrojs/upgrade
-
🐞 Patch Changes
-
#1461
2e17880Thanks @liruifengv! - Improves the table of contents title translation in Simplified Chinese -
#1462
4741cccThanks @delucis! - Fixes overflow of very long site titles on narrow viewports -
#1459
9a8e0ecThanks @delucis! - Fixes a bug where table of contents highlighting could break given very specific combinations of content and viewport size -
#1458
8c88642Thanks @delucis! - Silences i18n content collection warnings for projects without custom translations.
-
🐞 Patch Changes
-
#1437
655aed4Thanks @hippotastic! - Adds Starlight-specific types todefineEcConfigfunction and exportsStarlightExpressiveCodeOptions.This provides Starlight types and IntelliSense support for your Expressive Code configuration options inside an
ec.config.mjsfile. See the Expressive Code documentation for more information. -
#1420
275f87fThanks @abdelhalimjean! - Fix rarefont-familyissue if users have a font installed with a name of"" -
#1365
a0af7ccThanks @kevinzunigacuellar! - Correctly format Pagefind search result links whentrailingSlash: 'never'is used
-

🍿 Minor Changes
-
#1389
21b3620Thanks @connor-baer! - Adds newdisable404Routeconfig option to disable injection of Astro’s default 404 route -
#1395
ce05dfbThanks @hippotastic! - Adds a new<Code>component to render dynamic code strings with Expressive Code
-

🍿 Minor Changes
-
#1383
490c6efThanks @delucis! - Refactors Starlight’s internal virtual module system for components to avoid circular referencesThis is a change to an internal API. If you were importing the internal
virtual:starlight/componentsmodule, this no longer exists. Update your imports to use the individual virtual modules now available for each component, for examplevirtual:starlight/components/EditLink. -
#1151
134292dThanks @kevinzunigacuellar! - Fixes sidebar auto-generation issue when a file and a directory, located at the same level, have identical names.For example,
src/content/docs/guides.mdandsrc/content/docs/guides/example.mdwill now both be included andsrc/content/docs/guides.mdis treated in the same way asrc/content/docs/guides/index.mdfile would be. -
#1386
0163634Thanks @delucis! - Tightensline-heighton<LinkCard>titles to fix regression from original designIf you want to preserve the previous
line-height, you can add the following custom CSS to your site:.sl-link-card a {line-height: 1.6;} -
#1376
8398432Thanks @delucis! - Tweaks vertical spacing in Markdown content styles.This is a subtle change to Starlight’s default content styling that should improve most sites:
- Default vertical spacing between content items is reduced from
1.5remto1rem. - Spacing before headings is now relative to font size, meaning higher-level headings have slightly more spacing and lower-level headings slightly less.
The overall impact is to tighten up content that belongs together and improve the visual hierarchy of headings to break up sections.
Although this is a subtle change, we recommend visually inspecting your site in case this impacts layout of any custom CSS or components.
If you want to preserve the previous spacing, you can add the following custom CSS to your site:
/* Restore vertical spacing to match Starlight v0.15 and below. */.sl-markdown-content:not(a, strong, em, del, span, input, code)+ :not(a, strong, em, del, span, input, code, :where(.not-content *)) {margin-top: 1.5rem;}.sl-markdown-content:not(h1, h2, h3, h4, h5, h6)+ :is(h1, h2, h3, h4, h5, h6):not(:where(.not-content *)) {margin-top: 2.5rem;} - Default vertical spacing between content items is reduced from
-
#1372
773880dThanks @HiDeoo! - Updates the table of contents highlighting styles to prevent UI shifts when scrolling through a page.If you want to preserve the previous, buggy styling, you can add the following custom CSS to your site:
starlight-toc a[aria-current='true'],starlight-toc a[aria-current='true']:hover,starlight-toc a[aria-current='true']:focus {font-weight: 600;color: var(--sl-color-text-invert);background-color: var(--sl-color-text-accent);}
-
🐞 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
-