Starlight Changelog
0.22.0
Minor Changes
-
#640
7dc503ea
Thanks @HiDeoo! - Adds support for syncing multiple sets of tabs on the same page. -
#1620
ca0678ca
Thanks @emjio! - Adds support for translating the site title⚠️ Potentially breaking change: The shape of the
title
field on Starlight’s internal config object has changed. This used to be a string, but is now an object.If you are relying on
config.title
(for example in a custom<SiteTitle>
or<Head>
component), you will need to update your code. We recommend using the newsiteTitle
prop available to component overrides:---import type { Props } from '@astrojs/starlight/props';// The site title for this page’s language:const { siteTitle } = Astro.props;--- -
#1613
61493e55
Thanks @HiDeoo! - Adds newdraft
frontmatter option to exclude a page from production builds. -
#640
7dc503ea
Thanks @HiDeoo! - Updates the defaultline-height
from1.8
to1.75
. This change avoids having a line height with a fractional part which can cause scripts accessing dimensions involving the line height to get an inconsistent rounded value in various browsers.If you want to preserve the previous
line-height
, you can add the following custom CSS to your site::root {--sl-line-height: 1.8;} -
#1720
749ddf85
Thanks @jacobdalamb! - Updatesastro-expressive-code
dependency to the latest minor release (0.35) and exposes a new@astrojs/starlight/expressive-code/hast
module for users who need to use Expressive Code’s version ofhast
.This includes a potentially breaking change if you use custom Expressive Code plugins. See the Expressive Code release notes for full details.
-
#1769
bd5f1cbd
Thanks @ncjones! - Adds support for accessing frontmatter data as a variable when using Markdoc
Patch Changes
-
#1788
681a4273
Thanks @dragomano! - Adds Russian translations for Expressive Code labels -
#1780
4db6025a
Thanks @MiahaCybersec! - Adds 1 new icon:signal
-
#1785
65009c9c
Thanks @dreyfus92! - Adds 5 new icons:node
,cloudflare
,vercel
,netlify
anddeno
-
#1786
d05d693a
Thanks @delucis! - Fixes type inference for i18n strings added by extending the default schema -
#1777
6949404b
Thanks @HiDeoo! - Fixes an issue where TypeScript could fail to serialize the frontmatter schema when configured to emit declaration files -
#1734
4493dcfa
Thanks @delucis! - Refactors<ThemeSelect>
custom element logic to improve performance -
#1731
f08b0dff
Thanks @techfg! - Fixes responding to system color scheme changes when theme isauto
-
#1793
2616f0c7
Thanks @Mrahmani71! - Updates the Farsi UI translations
0.21.5
Patch Changes
-
#1709
c5cd1811
Thanks @HiDeoo! - Fixes a UI strings translation issue for sites configured with a single non-root language different from English. -
#1723
3b29b3ab
Thanks @OliverSpeir! - Fixes accessibility by usingaria-selected="false"
for inactive tabs instead of removingaria-selected="true"
in the tablist of Starlight’s<Tabs>
component -
#1706
f171ac4d
Thanks @jorenbroekema! - Fixes some minor type errors
0.21.4
Patch Changes
-
#1703
b26238f2
Thanks @HiDeoo! - Fixes aside custom titles rendering for nested asides. -
#1708
a72cb966
Thanks @HiDeoo! - Fixes translation issues with Expressive Code when using a default language other than English
0.21.3
Patch Changes
-
#1622
3a074bad
Thanks @SamuelLHuber! - Adds 1 new icon:farcaster
-
#1616
a86f9b71
Thanks @dragomano! - Updates Russian UI strings -
#1698
67b892fd
Thanks @liruifengv! - Adds 1 new icon:starlight
-
#1687
6fa9ea7e
Thanks @mingjunlu! - TranslatesfileTree.directory
UI string into Traditional Chinese.
0.21.2
Patch Changes
-
#1614
78fc9042
Thanks @kpodurgiel! - Adds Polish UI translations -
#1596
13ed30cd
Thanks @HiDeoo! - Adds support for toggling the built-in search modal using theCtrl+k
keyboard shortcut. -
#1608
4096e1b7
Thanks @HiDeoo! - Removes nested CSS from the<FileTree>
component to prevent a potential warning when using Tailwind CSS. -
#1626
67459cb4
Thanks @hippotastic! - Fixes a bundling issue that caused imports from@astrojs/starlight/components
to fail when using the config settingexpressiveCode: false
.
0.21.1
Patch Changes
-
#1584
8851d5cd
Thanks @HiDeoo! - Adds 2 new icons:apple
andlinux
. -
#1577
0ba77890
Thanks @morinokami! - TranslatesfileTree.directory
UI string into Japanese. -
#1593
fa7ed245
Thanks @liruifengv! - TranslatesfileTree.directory
UI string into simplified Chinese. -
#1585
bd4e278f
Thanks @HiDeoo! - TranslatesfileTree.directory
UI string into French. -
#1587
c5794260
Thanks @Eveeifyeve! - Adds 1 new icon:homebrew
.
0.21.0
Minor Changes
-
#1568
5f99a71d
Thanks @HiDeoo! - Adds support for optionally setting an icon on a<TabItem>
component to make it easier to visually distinguish between tabs. -
#1308
9a918a5b
Thanks @HiDeoo! - Adds<FileTree>
component to display the structure of a directory. -
#1308
9a918a5b
Thanks @HiDeoo! - Adds 144 new file-type icons from the Seti UI icon set, available with theseti:
prefix, e.g.seti:javascript
. -
#1564
d880065e
Thanks @delucis! - Adds a<Steps>
component for styling more complex guided tasks. -
#1308
9a918a5b
Thanks @HiDeoo! - Adds 5 new icons:astro
,biome
,bun
,mdx
, andpnpm
.
0.20.1
Patch Changes
- #1553
8e091147
Thanks @hippotastic! - Updates Expressive Code to v0.33.4 to fix potential race condition bug in Shiki.
0.20.0
Minor Changes
-
#1541
1043052f
Thanks @hippotastic! - Updatesastro-expressive-code
dependency 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
-
#1542
b3b7a606
Thanks @delucis! - Improves error messages shown by Starlight for configuration errors. -
#1544
65dc6586
Thanks @torn4dom4n! - Update Vietnamese UI translations
0.19.1
Patch Changes
-
#1527
163bc84
Thanks @HiDeoo! - Exports theStarlightPageProps
TypeScript type representing the props expected by the<StarlightPage />
component. -
#1504
fc83a05
Thanks @mingjunlu! - Adds Traditional Chinese UI translations -
#1534
aada680
Thanks @delucis! - Improves DX of thesidebar
prop used by the new<StarlightPage>
component.