Skip to content

Releases: withastro/starlight

@astrojs/starlight@0.18.0

09 Feb 20:27
9bc91d1
Compare
Choose a tag to compare

Minor Changes

  • #1454 1d9ef56 Thanks @Fryuni! - Makes Starlight compatible with on-demand server rendering (sometimes referred to as server-side rendering or SSR).

    Starlight pages are always prerendered, even when using output: 'server'.

  • #1454 1d9ef56 Thanks @Fryuni! - Enables Astro鈥檚 experimental.globalRoutePriority option and bumps the minimum required Astro version.

    鈿狅笍 BREAKING CHANGE The minimum supported Astro version is now 4.2.7. Upgrade Astro and Starlight together:

    npx @astrojs/upgrade

@astrojs/starlight@0.17.4

08 Feb 18:02
9d2fdb5
Compare
Choose a tag to compare

Patch Changes

  • #1473 29da505 Thanks @delucis! - Fixes a CSS bug for users with JavaScript disabled

  • #1465 ce3108c Thanks @delucis! - Updates internal MDX, sitemap, and Expressive Code dependencies to the latest versions

@astrojs/starlight@0.17.3

06 Feb 15:29
8d31167
Compare
Choose a tag to compare

Patch Changes

  • #1461 2e17880 Thanks @liruifengv! - Improves the table of contents title translation in Simplified Chinese

  • #1462 4741ccc Thanks @delucis! - Fixes overflow of very long site titles on narrow viewports

  • #1459 9a8e0ec Thanks @delucis! - Fixes a bug where table of contents highlighting could break given very specific combinations of content and viewport size

  • #1458 8c88642 Thanks @delucis! - Silences i18n content collection warnings for projects without custom translations.

@astrojs/starlight@0.17.2

31 Jan 10:01
df83f14
Compare
Choose a tag to compare

Patch Changes

  • #1442 1a642e4 Thanks @delucis! - Fixes URLs in language picker for sites with build.format: 'file'

  • #1440 2ea1e88 Thanks @hippotastic! - Adds JS support to the @astrojs/starlight/expressive-code export to allow importing from non-TS environments.

@astrojs/starlight@0.17.1

29 Jan 23:04
f60f1d0
Compare
Choose a tag to compare

Patch Changes

  • #1437 655aed4 Thanks @hippotastic! - Adds Starlight-specific types to defineEcConfig function and exports StarlightExpressiveCodeOptions.

    This provides Starlight types and IntelliSense support for your Expressive Code configuration options inside an ec.config.mjs file. See the Expressive Code documentation for more information.

  • #1420 275f87f Thanks @abdelhalimjean! - Fix rare font-family issue if users have a font installed with a name of ""

  • #1365 a0af7cc Thanks @kevinzunigacuellar! - Correctly format Pagefind search result links when trailingSlash: 'never' is used

@astrojs/starlight@0.17.0

26 Jan 22:20
0ecdf8c
Compare
Choose a tag to compare

Minor Changes

@astrojs/starlight@0.16.0

19 Jan 19:28
ffc3411
Compare
Choose a tag to compare

Minor Changes

  • #1383 490c6ef Thanks @delucis! - Refactors Starlight鈥檚 internal virtual module system for components to avoid circular references

    This is a change to an internal API.
    If you were importing the internal virtual:starlight/components module, this no longer exists.
    Update your imports to use the individual virtual modules now available for each component, for example virtual:starlight/components/EditLink.

  • #1151 134292d Thanks @kevinzunigacuellar! - Fixes sidebar auto-generation issue when a file and a directory, located at the same level, have identical names.

    For example, src/content/docs/guides.md and src/content/docs/guides/example.md will now both be included and src/content/docs/guides.md is treated in the same way a src/content/docs/guides/index.md file would be.

  • #1386 0163634 Thanks @delucis! - Tightens line-height on <LinkCard> titles to fix regression from original design

    If you want to preserve the previous line-height, you can add the following custom CSS to your site:

    .sl-link-card a {
    	line-height: 1.6;
    }
  • #1376 8398432 Thanks @delucis! - Tweaks vertical spacing in Markdown content styles.

    This is a subtle change to Starlight鈥檚 default content styling that should improve most sites:

    • Default vertical spacing between content items is reduced from 1.5rem to 1rem.
    • Spacing before headings is now relative to font size, meaning higher-level headings have slightly more spacing and lower-level headings slightly less.

    The overall impact is to tighten up content that belongs together and improve the visual hierarchy of headings to break up sections.

    Although this is a subtle change, we recommend visually inspecting your site in case this impacts layout of any custom CSS or components.

    If you want to preserve the previous spacing, you can add the following custom CSS to your site:

    /* Restore vertical spacing to match Starlight v0.15 and below. */
    .sl-markdown-content
    	:not(a, strong, em, del, span, input, code)
    	+ :not(a, strong, em, del, span, input, code, :where(.not-content *)) {
    	margin-top: 1.5rem;
    }
    .sl-markdown-content
    	:not(h1, h2, h3, h4, h5, h6)
    	+ :is(h1, h2, h3, h4, h5, h6):not(:where(.not-content *)) {
    	margin-top: 2.5rem;
    }
  • #1372 773880d Thanks @HiDeoo! - Updates the table of contents highlighting styles to prevent UI shifts when scrolling through a page.

    If you want to preserve the previous, buggy styling, you can add the following custom CSS to your site:

    starlight-toc a[aria-current='true'],
    starlight-toc a[aria-current='true']:hover,
    starlight-toc a[aria-current='true']:focus {
    	font-weight: 600;
    	color: var(--sl-color-text-invert);
    	background-color: var(--sl-color-text-accent);
    }

@astrojs/starlight@0.15.4

17 Jan 21:35
9e734e4
Compare
Choose a tag to compare

Patch Changes

  • #1378 0f4a31d Thanks @delucis! - Updates dependencies: @astrojs/mdx, @astrojs/sitemap, and astro-expressive-code

@astrojs/starlight@0.15.3

09 Jan 22:36
b302fec
Compare
Choose a tag to compare

Patch Changes

@astrojs/starlight@0.15.2

02 Jan 18:32
4f24b8e
Compare
Choose a tag to compare

Patch Changes