diff --git a/.changeset/blue-otters-shave.md b/.changeset/blue-otters-shave.md deleted file mode 100644 index 850356c458b..00000000000 --- a/.changeset/blue-otters-shave.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/starlight': patch ---- - -Fixes a `` sync issue when inconsistently using the `icon` prop or not on `` components. diff --git a/examples/basics/package.json b/examples/basics/package.json index 9b318cea5ef..04d59354045 100644 --- a/examples/basics/package.json +++ b/examples/basics/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "@astrojs/starlight": "^0.22.1", + "@astrojs/starlight": "^0.22.2", "astro": "^4.3.5", "sharp": "^0.32.5" } diff --git a/examples/tailwind/package.json b/examples/tailwind/package.json index cad21e9cb7d..5f967b6854d 100644 --- a/examples/tailwind/package.json +++ b/examples/tailwind/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "@astrojs/starlight": "^0.22.1", + "@astrojs/starlight": "^0.22.2", "@astrojs/starlight-tailwind": "^2.0.2", "@astrojs/tailwind": "^5.1.0", "astro": "^4.3.5", diff --git a/packages/starlight/CHANGELOG.md b/packages/starlight/CHANGELOG.md index 679eff5ed28..3d8405a1eae 100644 --- a/packages/starlight/CHANGELOG.md +++ b/packages/starlight/CHANGELOG.md @@ -1,5 +1,11 @@ # @astrojs/starlight +## 0.22.2 + +### Patch Changes + +- [#1811](https://github.com/withastro/starlight/pull/1811) [`fe06aa13`](https://github.com/withastro/starlight/commit/fe06aa1307208ef9f5b249181ec29837f96940c2) Thanks [@HiDeoo](https://github.com/HiDeoo)! - Fixes a `` sync issue when inconsistently using the `icon` prop or not on `` components. + ## 0.22.1 ### Patch Changes @@ -35,7 +41,7 @@ ```css :root { - --sl-line-height: 1.8; + --sl-line-height: 1.8; } ``` @@ -275,7 +281,7 @@ ```css .sl-link-card a { - line-height: 1.6; + line-height: 1.6; } ``` @@ -295,14 +301,14 @@ ```css /* 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; + :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; + :not(h1, h2, h3, h4, h5, h6) + + :is(h1, h2, h3, h4, h5, h6):not(:where(.not-content *)) { + margin-top: 2.5rem; } ``` @@ -314,9 +320,9 @@ 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); + font-weight: 600; + color: var(--sl-color-text-invert); + background-color: var(--sl-color-text-accent); } ``` @@ -389,14 +395,14 @@ import starlight from '@astrojs/starlight'; export default defineConfig({ - // Disable link prefetching: - prefetch: false, - - integrations: [ - starlight({ - // ... - }), - ], + // Disable link prefetching: + prefetch: false, + + integrations: [ + starlight({ + // ... + }), + ], }); ``` @@ -453,12 +459,12 @@ import starlight from '@astrojs/starlight'; export default defineConfig({ - trailingSlash: 'always', - integrations: [ - starlight({ - // ... - }), - ], + trailingSlash: 'always', + integrations: [ + starlight({ + // ... + }), + ], }); ``` @@ -806,16 +812,16 @@ ```css :root { - --sl-hue-accent: 234; - --sl-color-accent-low: hsl(var(--sl-hue-accent), 54%, 20%); - --sl-color-accent: hsl(var(--sl-hue-accent), 100%, 60%); - --sl-color-accent-high: hsl(var(--sl-hue-accent), 100%, 87%); + --sl-hue-accent: 234; + --sl-color-accent-low: hsl(var(--sl-hue-accent), 54%, 20%); + --sl-color-accent: hsl(var(--sl-hue-accent), 100%, 60%); + --sl-color-accent-high: hsl(var(--sl-hue-accent), 100%, 87%); } :root[data-theme='light'] { - --sl-color-accent-high: hsl(var(--sl-hue-accent), 80%, 30%); - --sl-color-accent: hsl(var(--sl-hue-accent), 90%, 60%); - --sl-color-accent-low: hsl(var(--sl-hue-accent), 88%, 90%); + --sl-color-accent-high: hsl(var(--sl-hue-accent), 80%, 30%); + --sl-color-accent: hsl(var(--sl-hue-accent), 90%, 60%); + --sl-color-accent-low: hsl(var(--sl-hue-accent), 88%, 90%); } ``` @@ -1194,8 +1200,8 @@ ```json { - "search.label": "Suchen", - "search.shortcutLabel": "(Drücke / zum Suchen)" + "search.label": "Suchen", + "search.shortcutLabel": "(Drücke / zum Suchen)" } ``` diff --git a/packages/starlight/package.json b/packages/starlight/package.json index 059b2ba8acc..70ff9ed4211 100644 --- a/packages/starlight/package.json +++ b/packages/starlight/package.json @@ -1,6 +1,6 @@ { "name": "@astrojs/starlight", - "version": "0.22.1", + "version": "0.22.2", "description": "Build beautiful, high-performance documentation websites with Astro", "scripts": { "test": "vitest", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 032db9c1330..5f4f957847f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -70,7 +70,7 @@ importers: examples/basics: dependencies: '@astrojs/starlight': - specifier: ^0.22.1 + specifier: ^0.22.2 version: link:../../packages/starlight astro: specifier: ^4.3.5 @@ -82,7 +82,7 @@ importers: examples/tailwind: dependencies: '@astrojs/starlight': - specifier: ^0.22.1 + specifier: ^0.22.2 version: link:../../packages/starlight '@astrojs/starlight-tailwind': specifier: ^2.0.2