github withastro/starlight @astrojs/starlight@0.22.0

latest releases: @astrojs/starlight@0.23.1, @astrojs/starlight@0.23.0, @astrojs/starlight@0.22.4...
18 days ago

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 new siteTitle 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 new draft frontmatter option to exclude a page from production builds.

  • #640 7dc503ea Thanks @HiDeoo! - Updates the default line-height from 1.8 to 1.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! - Updates astro-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 of hast.

    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

Don't miss a new starlight release

NewReleases is sending notifications on new releases.