diff options
author | Houston (Bot) | 2024-01-19 11:27:35 -0800 |
---|---|---|
committer | GitHub | 2024-01-19 20:27:35 +0100 |
commit | ffc3411816fcb852765ae64526f60e4adc3c7a24 (patch) | |
tree | ab582cf4a65a2832fd0be096821b45eeec9403b9 | |
parent | 0163634abb8578ce7a3d7ceea36432e98ea70e78 (diff) | |
download | IT.starlight-ffc3411816fcb852765ae64526f60e4adc3c7a24.tar.gz IT.starlight-ffc3411816fcb852765ae64526f60e4adc3c7a24.tar.bz2 IT.starlight-ffc3411816fcb852765ae64526f60e4adc3c7a24.zip |
[ci] release (#1384)@astrojs/starlight@0.16.0
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
-rw-r--r-- | .changeset/chatty-drinks-act.md | 9 | ||||
-rw-r--r-- | .changeset/dry-pandas-yawn.md | 7 | ||||
-rw-r--r-- | .changeset/eighty-cats-float.md | 13 | ||||
-rw-r--r-- | .changeset/rotten-dots-punch.md | 29 | ||||
-rw-r--r-- | .changeset/young-roses-tickle.md | 17 | ||||
-rw-r--r-- | examples/basics/package.json | 2 | ||||
-rw-r--r-- | examples/tailwind/package.json | 2 | ||||
-rw-r--r-- | packages/starlight/CHANGELOG.md | 111 | ||||
-rw-r--r-- | packages/starlight/package.json | 2 | ||||
-rw-r--r-- | pnpm-lock.yaml | 4 |
10 files changed, 93 insertions, 103 deletions
diff --git a/.changeset/chatty-drinks-act.md b/.changeset/chatty-drinks-act.md deleted file mode 100644 index 4ec5a604..00000000 --- a/.changeset/chatty-drinks-act.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -'@astrojs/starlight': minor ---- - -Refactors Starlight’s 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`. diff --git a/.changeset/dry-pandas-yawn.md b/.changeset/dry-pandas-yawn.md deleted file mode 100644 index dee67082..00000000 --- a/.changeset/dry-pandas-yawn.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@astrojs/starlight': minor ---- - -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. diff --git a/.changeset/eighty-cats-float.md b/.changeset/eighty-cats-float.md deleted file mode 100644 index 3a94a9d6..00000000 --- a/.changeset/eighty-cats-float.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@astrojs/starlight': minor ---- - -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: - -```css -.sl-link-card a { - line-height: 1.6; -} -``` diff --git a/.changeset/rotten-dots-punch.md b/.changeset/rotten-dots-punch.md deleted file mode 100644 index da497b74..00000000 --- a/.changeset/rotten-dots-punch.md +++ /dev/null @@ -1,29 +0,0 @@ ---- -'@astrojs/starlight': minor ---- - -Tweaks vertical spacing in Markdown content styles. - -This is a subtle change to Starlight’s 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: - -```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; -} -.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; -} -``` diff --git a/.changeset/young-roses-tickle.md b/.changeset/young-roses-tickle.md deleted file mode 100644 index 4a2c2fc8..00000000 --- a/.changeset/young-roses-tickle.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@astrojs/starlight': minor ---- - -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: - -```css -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); -} -``` diff --git a/examples/basics/package.json b/examples/basics/package.json index c76434c3..44e341c1 100644 --- a/examples/basics/package.json +++ b/examples/basics/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "@astrojs/starlight": "^0.15.4", + "@astrojs/starlight": "^0.16.0", "astro": "^4.2.1", "sharp": "^0.32.5" } diff --git a/examples/tailwind/package.json b/examples/tailwind/package.json index e15c695a..3968d505 100644 --- a/examples/tailwind/package.json +++ b/examples/tailwind/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "@astrojs/starlight": "^0.15.4", + "@astrojs/starlight": "^0.16.0", "@astrojs/starlight-tailwind": "^2.0.1", "@astrojs/tailwind": "^5.1.0", "astro": "^4.2.1", diff --git a/packages/starlight/CHANGELOG.md b/packages/starlight/CHANGELOG.md index bed98c45..b905ce11 100644 --- a/packages/starlight/CHANGELOG.md +++ b/packages/starlight/CHANGELOG.md @@ -1,5 +1,70 @@ # @astrojs/starlight +## 0.16.0 + +### Minor Changes + +- [#1383](https://github.com/withastro/starlight/pull/1383) [`490c6ef`](https://github.com/withastro/starlight/commit/490c6eff34ab408c4f55777b7b0caa16787dd3d4) Thanks [@delucis](https://github.com/delucis)! - Refactors Starlight’s 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](https://github.com/withastro/starlight/pull/1151) [`134292d`](https://github.com/withastro/starlight/commit/134292ddd89683007d7de25545d39738a82c626c) Thanks [@kevinzunigacuellar](https://github.com/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](https://github.com/withastro/starlight/pull/1386) [`0163634`](https://github.com/withastro/starlight/commit/0163634abb8578ce7a3d7ceea36432e98ea70e78) Thanks [@delucis](https://github.com/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: + + ```css + .sl-link-card a { + line-height: 1.6; + } + ``` + +- [#1376](https://github.com/withastro/starlight/pull/1376) [`8398432`](https://github.com/withastro/starlight/commit/8398432aa4a0f38e2dd4452dfcdf7033c5713334) Thanks [@delucis](https://github.com/delucis)! - Tweaks vertical spacing in Markdown content styles. + + This is a subtle change to Starlight’s 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: + + ```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; + } + .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](https://github.com/withastro/starlight/pull/1372) [`773880d`](https://github.com/withastro/starlight/commit/773880de87b79bf3107dbc32df29a86dd11e4e6f) Thanks [@HiDeoo](https://github.com/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: + + ```css + 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); + } + ``` + ## 0.15.4 ### Patch Changes @@ -69,14 +134,14 @@ import starlight from '@astrojs/starlight'; export default defineConfig({ - // Disable link prefetching: - prefetch: false, - - integrations: [ - starlight({ - // ... - }), - ], + // Disable link prefetching: + prefetch: false, + + integrations: [ + starlight({ + // ... + }), + ], }); ``` @@ -133,12 +198,12 @@ import starlight from '@astrojs/starlight'; export default defineConfig({ - trailingSlash: 'always', - integrations: [ - starlight({ - // ... - }), - ], + trailingSlash: 'always', + integrations: [ + starlight({ + // ... + }), + ], }); ``` @@ -486,16 +551,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%); } ``` @@ -874,8 +939,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 eeeebedd..21f74054 100644 --- a/packages/starlight/package.json +++ b/packages/starlight/package.json @@ -1,6 +1,6 @@ { "name": "@astrojs/starlight", - "version": "0.15.4", + "version": "0.16.0", "description": "Build beautiful, high-performance documentation websites with Astro", "scripts": { "test": "vitest", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index da1abb44..bd221434 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -82,7 +82,7 @@ importers: examples/basics: dependencies: '@astrojs/starlight': - specifier: ^0.15.4 + specifier: ^0.16.0 version: link:../../packages/starlight astro: specifier: ^4.2.1 @@ -94,7 +94,7 @@ importers: examples/tailwind: dependencies: '@astrojs/starlight': - specifier: ^0.15.4 + specifier: ^0.16.0 version: link:../../packages/starlight '@astrojs/starlight-tailwind': specifier: ^2.0.1 |