惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
The Blog of Author Tim Ferriss
WordPress大学
WordPress大学
博客园 - Franky
The Cloudflare Blog
T
Tailwind CSS Blog
宝玉的分享
宝玉的分享
小众软件
小众软件
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Apple Machine Learning Research
Apple Machine Learning Research
月光博客
月光博客
B
Blog
Y
Y Combinator Blog
V
V2EX
有赞技术团队
有赞技术团队
M
MIT News - Artificial intelligence
博客园 - 司徒正美
IT之家
IT之家
G
Google Developers Blog
C
Check Point Blog
Engineering at Meta
Engineering at Meta
Microsoft Security Blog
Microsoft Security Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
GbyAI
GbyAI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻

The Astro Blog

Astro 6.4 Astro 6.3 Astro 6.2 What's new in Astro - April 2026 What's new in Astro - March 2026 Astro 6.1 CloudCannon Joins Astro as an Official CMS Partner Astro 6.0 What's new in Astro - February 2026 What's new in Astro - January 2026 Astro 5.17 Supporting the future of Astro The Astro Technology Company joins Cloudflare Astro 6 Beta What's new in Astro - December 2025 What's new in Astro - November 2025 Astro 5.16 Stainless Sponsors Astro, Launches Astro-Powered Docs Platform What's new in Astro - October 2025 Astro 5.15 Spirit of Astro: meet the winning designs What's new in Astro - September 2025 Astro 5.14 Cloudflare Donates $150,000 to Support Astro's Open Source Mission Webflow Donates $150,000 to Support Astro's Open Source Mission Mux: Our Official Video Partner Unleashing creativity: How CodeTV built a video streaming platform with Astro and Mux | Astro What's new in Astro - August 2025 Astro 5.13 What's new in Astro - July 2025
Starlight 0.39
Chris Swithinbank · 2026-05-07 · via The Astro Blog

Starlight is Astro’s official package for building fast, accessible documentation websites, with all the features you need built in.

Here’s what’s new in this release:

  • More flexible autogenerated sidebar links
  • Styling improvements
  • Features for multilingual sites

To upgrade an existing Starlight site, use the automated @astrojs/upgrade CLI tool. This will update Starlight, Astro, and any other integrations you are using:

See the Starlight CHANGELOG for migration guidance and full details of breaking changes.

Starlight has included support for generating sidebar navigation links from directories of content since day one. This release brings new flexibility to how this works.

Previously, autogeneration always created a labeled group in the sidebar for the specified directory. With v0.39, Starlight’s autogenerated links can be slotted alongside any other link types.

If you have existing autogenerated link groups in your sidebar, update them by wrapping the config in an items array:

starlight({

sidebar: [

{

label: 'My group',

autogenerate: { directory: 'some-dir' },

items: [{ autogenerate: { directory: 'some-dir' } }],

},

],

// ...

}),

This change makes it easy to combine autogeneration with different kinds of links. For example, you can now add one-off custom links alongside autogenerated ones. The following example groups a local page, all pages in the features directory, and an external link:

starlight({

sidebar: [

{

label: 'Features',

items: [

// A page not in the features directory

'features-overview',

// All pages in the features directory

{ autogenerate: { directory: 'features' } },

// An external link

{ label: 'Support', link: 'https://support.example.com' },

],

},

],

// ...

}),

Styling improvements

Modern CSS makes everyone’s lives easier by the day, and with this release we’re putting it to good use.

  • We’ve improved spacing of nested lists in your content thanks to the magic of :has(). (Check out the full selector — it’s a doozy.)
  • When users expand or collapse a sidebar group, causing overflow, the Starlight sidebar is now more stable. We banished layout shift with a simple scrollbar-gutter: stable.

Better multilingual sites

Starlight’s internationalization story has been key from the outset, and we’re always looking to push it forward. This release brings:

  • Improved multilingual SEO with x-default meta links to pages in the site’s default locale. These alternate links are used by search engines as a signal of which language to fall back to if no other is available.
  • Better text layout in Chinese and Japanese documentation thanks to the text-autospace CSS property. This newer CSS property makes text more legible by automatically applying spacing between CJK and non-CJK characters.
  • We’ve updated i18next, the underlying library powering Starlight’s localization APIs, from v23 to v26.

The Astro core team is:

Alexander Niebuhr , Armand Philippot , Chris Swithinbank , Emanuele Stoppa , Erika , Florian Lefebvre , Fred Schott , HiDeoo , Luiz Ferraz , Matt Kane , Matthew Phillips , Reuben Tier , Sarah Rainsberger , and Yan Thomas .

Thanks to everyone who contributed to our recent releases with PRs and reviews, including alomtvassam-ui, Andreas Deininger, Andriy Massimilla, Bugo, Elian, Felix Schneider, gesslar, Ian Trewella, John Goodliff, Joost de Valk, Josef Ježek, Junseong Park, Kevin Z, Linus Grolmes, Luke Hsiao, Maxime Mangel, MilesChou, Patrick Schratz, Paweł Cisło, Roman, Sakku, Shinya Fujino, Swapnil Jain, Tatsunori Uchino, vincent, Vojtěch Křižan, and Woody Chang.

We look forward to seeing what you build with Starlight! If you have questions, comments, or just want to say hi, drop by the Astro Discord.