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

推荐订阅源

B
Blog RSS Feed
云风的 BLOG
云风的 BLOG
爱范儿
爱范儿
WordPress大学
WordPress大学
博客园 - 三生石上(FineUI控件)
阮一峰的网络日志
阮一峰的网络日志
Martin Fowler
Martin Fowler
C
Check Point Blog
MongoDB | Blog
MongoDB | Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
人人都是产品经理
人人都是产品经理
博客园 - Franky
罗磊的独立博客
博客园 - 司徒正美
S
SegmentFault 最新的问题
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
V
V2EX
Last Week in AI
Last Week in AI
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - 聂微东
大猫的无限游戏
大猫的无限游戏
博客园 - 叶小钗
小众软件
小众软件
美团技术团队

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.