Skip to content

Releases: withastro/starlight

@astrojs/starlight-tailwind@2.0.3

21 May 10:23
f9f9f2f
Compare
Choose a tag to compare

Patch Changes

  • #1906 b079ae11 Thanks @delucis! - Fixes default font-family in non-Starlight pages when using Tailwind plugin

@astrojs/starlight@0.23.1

18 May 13:55
67262f6
Compare
Choose a tag to compare

Patch Changes

@astrojs/starlight@0.23.0

17 May 16:58
8f22a97
Compare
Choose a tag to compare

Minor Changes

  • #1846 2de67039 Thanks @delucis! - Updates @astrojs/mdx to v3 and enables MDX optimization by default

    鈿狅笍 Potentially breaking change: MDX optimization speeds up builds (Starlight鈥檚 docs are building ~40% faster for example), but restricts some advanced MDX features. See full details in the MDX optimization documentation.

    Most Starlight users should be unaffected, but if you are using MDX files outside of Starlight pages with the components prop, you may see issues. You can disable optimization by adding MDX manually to your integrations array in astro.config.mjs:

    import { defineConfig } from 'astro/config';
    + import mdx from '@astrojs/mdx';
    import starlight from '@astrojs/starlight';
    
    // https://astro.build/config
    export default defineConfig({
    	integrations: [
    		starlight({
    			title: 'My docs',
    			// ...
    		}),
    +		mdx(),
    	],
    });
  • #1735 1a9ab50d Thanks @HiDeoo! - Adds custom styles for <details> and <summary> elements in Markdown content.

  • #1846 2de67039 Thanks @delucis! - 鈿狅笍 BREAKING CHANGE: The minimum supported version of Astro is now 4.8.6

    Please update Astro and Starlight together:

    npx @astrojs/upgrade

@astrojs/starlight@0.22.4

16 May 21:19
02385f5
Compare
Choose a tag to compare

Patch Changes

@astrojs/starlight@0.22.3

14 May 22:45
2d54c64
Compare
Choose a tag to compare

Patch Changes

  • #1838 9fe84754 Thanks @delucis! - Adds extra information to the errors thrown by the <Steps> component to help locate misformatted code

  • #1863 50be60bb Thanks @torn4dom4n! - Update Vietnamese translation

  • #1837 a33a1223 Thanks @delucis! - Adds three new icons: comment, comment-alt, heart

  • #1842 c7838636 Thanks @delucis! - Moves the href used in the site title link to Starlight鈥檚 route data object. This makes it possible for overrides to change the title link while reusing Starlight鈥檚 default component implemenation.

  • #1840 cb85563c Thanks @MiahaCybersec! - Adds 1 new icon: hackerone

@astrojs/starlight@0.22.2

06 May 19:23
8607594
Compare
Choose a tag to compare

Patch Changes

@astrojs/starlight@0.22.1

01 May 16:48
b41ff94
Compare
Choose a tag to compare

Patch Changes

  • 1c0fc384 Thanks @HiDeoo! - Fixes an issue where the siteTitle property would not be set when using the <StarlightPage /> component.

@astrojs/starlight@0.22.0

30 Apr 15:28
a70a1db
Compare
Choose a tag to compare

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鈥檚 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鈥檚 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鈥檚 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

@astrojs/starlight@0.21.5

09 Apr 11:19
d220ef3
Compare
Choose a tag to compare

Patch Changes

  • #1728 0a75680d Thanks @delucis! - Adds 1 new icon: pkl

  • #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 using aria-selected="false" for inactive tabs instead of removing aria-selected="true" in the tablist of Starlight鈥檚 <Tabs> component

  • #1706 f171ac4d Thanks @jorenbroekema! - Fixes some minor type errors

@astrojs/starlight-tailwind@2.0.2

09 Apr 11:19
d220ef3
Compare
Choose a tag to compare

Patch Changes

  • #1726 1aae51ac Thanks @delucis! - Adds warning log if a user tries to set colors.white in their Tailwind theme config with an object instead of a string.