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

推荐订阅源

Stack Overflow Blog
Stack Overflow Blog
N
News | PayPal Newsroom
阮一峰的网络日志
阮一峰的网络日志
月光博客
月光博客
T
Tailwind CSS Blog
博客园 - 叶小钗
博客园 - 【当耐特】
Apple Machine Learning Research
Apple Machine Learning Research
B
Blog RSS Feed
Know Your Adversary
Know Your Adversary
P
Privacy International News Feed
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Project Zero
Project Zero
美团技术团队
雷峰网
雷峰网
Martin Fowler
Martin Fowler
P
Privacy & Cybersecurity Law Blog
T
The Blog of Author Tim Ferriss
S
Schneier on Security
V
V2EX
Cisco Talos Blog
Cisco Talos Blog
Blog — PlanetScale
Blog — PlanetScale
G
GRAHAM CLULEY
J
Java Code Geeks
V
Visual Studio Blog
N
Netflix TechBlog - Medium
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Cyberwarzone
Cyberwarzone
Recent Announcements
Recent Announcements
C
CXSECURITY Database RSS Feed - CXSecurity.com
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
N
News and Events Feed by Topic
Forbes - Security
Forbes - Security
GbyAI
GbyAI
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
The Hacker News
The Hacker News
Application and Cybersecurity Blog
Application and Cybersecurity Blog
The Cloudflare Blog
腾讯CDC
爱范儿
爱范儿
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
罗磊的独立博客
T
Threatpost
大猫的无限游戏
大猫的无限游戏
NISL@THU
NISL@THU
Cloudbric
Cloudbric
C
CERT Recently Published Vulnerability Notes
C
Check Point Blog
Microsoft Azure Blog
Microsoft Azure Blog

The Astro Blog

Astro 6.4 Astro 6.3 Starlight 0.39 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 Astro 5.12 Astro 5.11 What's new in Astro - June 2025 Live Content Collections: A Deep Dive Introducing… Astro Mart Astro Solstice Festival Astro 5.10 Astro 5.9 What's new in Astro - May 2025 Astro 5.8 What's new in Astro - April 2025 2025 Technical Steering Committee Starlight April Update Astro 5.7 Astro Agency Partner Program Astro 5.6 What's new in Astro - March 2025 Astro 5.5 What's new in Astro - February 2025 Astro 5.4 Starlight 0.32 Astro 5.3 What's new in Astro - January 2025 Astro 5.2 2024 year in review What's new in Astro - December 2024 Astro 5.1 Astro 5.0 Google IDX: Our Official Online Editor Partner What's new in Astro - November 2024 What's new in Astro - October 2024 Astro x Cloudinary SDK What's new in Astro - September 2024 Community Loaders for Astro Content Layer Astro x Hygraph: Content Loader Astro x Cloudinary: Content Loader Astro x Storyblok: Content Loader Content Layer: A Deep Dive Starlight 0.28 Astro 5.0 Beta Release The $100,000 Astro Ecosystem Fund Fall Update Goodbye Studio, Hello DB What's new in Astro - August 2024 Astro 4.15 Astro 4.14 Astro 4.13 What's new in Astro - July 2024 Astro 4.12: Server Islands Netlify: Our Official Deployment Partner What's new in Astro - June 2024 Astro 4.11 Astro Together 2024 Server Islands The Astro Content Layer Zero-JavaScript View Transitions Astro 4.10 Starlight turns one year old! What's new in Astro - May 2024 Astro 4.9 Astro 4.8 What's new in Astro - April 2024 Astro 4.7 Astro 4.6 What's new in Astro - March 2024 Migrating 500+ tests from Mocha to Node.js Astro DB: A Deep Dive The Astro Developer Portal Astro DB Astro 4.5
Starlight 0.35
Chris Swithinbank · 2025-07-16 · via The Astro Blog

🌟 Starlight 0.35 wants to be your summer icon with a release that makes customizing your docs easier than ever.

Let’s dive into the highlights from this release:

  • Custom icons in asides
  • Custom attributes for autogenerated sidebar links
  • Custom page slug processing

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:

Custom icons in asides

Starlight’s asides make it easy to add styled notes, warnings, and other kinds of callouts to your docs pages. Starlight 0.35 takes this one step further, allowing you to override an aside’s icon.

Add an icon attribute to your aside to customize the icon, with support across Markdown, MDX, and Markdoc pages:

:::tip{icon="heart"}

Show your love with a heart icon.

:::

import { Aside } from '@astrojs/starlight/components';

<Aside type="tip" icon="heart">

Show your love with a heart icon.

</Aside>

{% aside type="tip" icon="heart" %}

Show your love with a heart icon.

{% /aside %}

Currently, asides can be styled using Starlight’s built-in icons, but we’re planning to expand this to include custom icon support in a future release.

Thank you to Shubham Padia who contributed this feature!

Starlight 0.35 adds support for applying custom HTML attributes to all links in an autogenerated sidebar group. This makes it easier to add a custom style or behavior to all links in part of your sidebar.

Use the new autogenerate.attrs option in your sidebar configuration to add custom attributes. For example, you could decide to italicize all links in a specific autogenerated group:

starlight({

title: 'My docs',

sidebar: [

{

label: 'Constellations',

autogenerate: {

// Autogenerate a group of links for the 'constellations' directory.

directory: 'constellations',

// Italicize all link labels in this group.

attrs: { style: 'font-style: italic' },

},

},

],

}),

Custom page slug processing

It’s now easier to customize how your docs file names are mapped to URLs.

By default, Astro uses the popular github-slugger package to normalize content file names. For example, the content in Example.File.md is served at /examplefile. This ensures consistent output and URL compatibility with many common platforms.

However, if you need to customize this normalization, you can now pass a generateId option to Starlight’s docsLoader() in your content configuration. The following example avoids all normalization and just strips the file extensions from content files:

import { defineCollection } from 'astro:content';

import { docsLoader } from '@astrojs/starlight/loaders';

import { docsSchema } from '@astrojs/starlight/schema';

export const collections = {

docs: defineCollection({

loader: docsLoader({

// Remove the `.md` or `.mdx` extension, but otherwise don’t process filenames.

generateId: ({ entry }) => entry.split('.').slice(0, -1).join('.'),

}),

schema: docsSchema(),

}),

};

Bug fixes and more

As always, we’ve also been working to fix issues and extend existing features. The Starlight changelog lists all the details including migration guidance for breaking changes.

Here are a few of the bigger changes in 0.35:

Markdown plugins now limited to docs content

Markdown content outside of Starlight’s src/content/docs/ collection is no longer processed by Starlight’s default remark and rehype plugins. This improves compatibility with sites using Markdown content in non-Starlight pages.

If you were relying on the previous behavior, we’d love to hear from you! Please open a GitHub Discussion to let us know your use case.

Content added using Starlight’s banner frontmatter property is no longer indexed by our default search provider Pagefind. This fixes some unexpected behavior in the search modal.

The Astro core team is:

Alexander Niebuhr , Ben Holmes , Caleb Jasik , Chris Swithinbank , Emanuele Stoppa , Erika , Florian Lefebvre , Fred Schott , Fuzzy , HiDeoo , Luiz Ferraz , Matt Kane , Matthew Phillips , Nate Moore , Reuben Tier , Sarah Rainsberger , and Yan Thomas .

Thanks to everyone who contributed to our recent releases with PRs and reviews, including Alvin Bryan, Armand Philippot, Bohdan Khodakivskyi, Bugo, Carlos Jorge Rodriguez, Cyprien AVICO, DeaM8N, Eveeifyeve, Felix Schneider, FrostyBee, Happydev, heisenberg0924, Jose Sebastian, Josh Goldberg, Junseong Park, Kevin, Kian, liruifengv, Louis Escher, Malcolm Nihlén, Martin Trapp, MathiasBuus, Matouš Kučera, Nelson-5553, Nguyen Long Nhat, Niall O’Brien, pppwaw, randomguy-2650, Randy88-art, RealRed, Renildo Pereira, Saad Khan, Sgal Cheung, Shubham Padia, techfg, and Thomas Bonnet.

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.