summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHouston (Bot)2024-04-30 08:27:53 -0700
committerGitHub2024-04-30 17:27:53 +0200
commita70a1dbb9717327b4abcf1ff9be3aa6bec4ec3f6 (patch)
treea65c4415e29665ab601ab25f12eb2a9563e48854
parent01109efc9157f14b7334bc31d6eb67914b5f2e37 (diff)
downloadIT.starlight-a70a1dbb9717327b4abcf1ff9be3aa6bec4ec3f6.tar.gz
IT.starlight-a70a1dbb9717327b4abcf1ff9be3aa6bec4ec3f6.tar.bz2
IT.starlight-a70a1dbb9717327b4abcf1ff9be3aa6bec4ec3f6.zip
[ci] release (#1733)@astrojs/starlight@0.22.0
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
-rw-r--r--.changeset/eight-pens-end.md5
-rw-r--r--.changeset/healthy-boxes-smoke.md5
-rw-r--r--.changeset/late-melons-ring.md5
-rw-r--r--.changeset/neat-flowers-move.md18
-rw-r--r--.changeset/shy-readers-cough.md5
-rw-r--r--.changeset/six-vans-trade.md5
-rw-r--r--.changeset/slimy-swans-teach.md13
-rw-r--r--.changeset/spotty-eggs-sit.md5
-rw-r--r--.changeset/spotty-mice-travel.md5
-rw-r--r--.changeset/strong-moose-jam.md7
-rw-r--r--.changeset/sweet-vans-carry.md5
-rw-r--r--.changeset/swift-files-wave.md5
-rw-r--r--.changeset/tall-planets-destroy.md5
-rw-r--r--.changeset/tiny-walls-carry.md5
-rw-r--r--examples/basics/package.json2
-rw-r--r--examples/tailwind/package.json2
-rw-r--r--packages/starlight/CHANGELOG.md123
-rw-r--r--packages/starlight/package.json2
-rw-r--r--pnpm-lock.yaml10
19 files changed, 95 insertions, 137 deletions
diff --git a/.changeset/eight-pens-end.md b/.changeset/eight-pens-end.md
deleted file mode 100644
index 4aaee094..00000000
--- a/.changeset/eight-pens-end.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@astrojs/starlight': minor
----
-
-Adds support for syncing multiple sets of tabs on the same page.
diff --git a/.changeset/healthy-boxes-smoke.md b/.changeset/healthy-boxes-smoke.md
deleted file mode 100644
index dae50cb1..00000000
--- a/.changeset/healthy-boxes-smoke.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@astrojs/starlight': patch
----
-
-Adds Russian translations for Expressive Code labels
diff --git a/.changeset/late-melons-ring.md b/.changeset/late-melons-ring.md
deleted file mode 100644
index b2124038..00000000
--- a/.changeset/late-melons-ring.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@astrojs/starlight': patch
----
-
-Adds 1 new icon: `signal`
diff --git a/.changeset/neat-flowers-move.md b/.changeset/neat-flowers-move.md
deleted file mode 100644
index 3119314d..00000000
--- a/.changeset/neat-flowers-move.md
+++ /dev/null
@@ -1,18 +0,0 @@
----
-'@astrojs/starlight': minor
----
-
-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](https://starlight.astro.build/reference/overrides/#sitetitle) available to component overrides:
-
-```astro
----
-import type { Props } from '@astrojs/starlight/props';
-
-// The site title for this page’s language:
-const { siteTitle } = Astro.props;
----
-```
diff --git a/.changeset/shy-readers-cough.md b/.changeset/shy-readers-cough.md
deleted file mode 100644
index 921be74f..00000000
--- a/.changeset/shy-readers-cough.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@astrojs/starlight': patch
----
-
-Adds 5 new icons: `node`, `cloudflare`, `vercel`, `netlify` and `deno` \ No newline at end of file
diff --git a/.changeset/six-vans-trade.md b/.changeset/six-vans-trade.md
deleted file mode 100644
index 47b7dd4e..00000000
--- a/.changeset/six-vans-trade.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@astrojs/starlight': minor
----
-
-Adds new `draft` frontmatter option to exclude a page from production builds.
diff --git a/.changeset/slimy-swans-teach.md b/.changeset/slimy-swans-teach.md
deleted file mode 100644
index ae115067..00000000
--- a/.changeset/slimy-swans-teach.md
+++ /dev/null
@@ -1,13 +0,0 @@
----
-'@astrojs/starlight': minor
----
-
-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:
-
-```css
-:root {
- --sl-line-height: 1.8;
-}
-```
diff --git a/.changeset/spotty-eggs-sit.md b/.changeset/spotty-eggs-sit.md
deleted file mode 100644
index 62d5b0c8..00000000
--- a/.changeset/spotty-eggs-sit.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@astrojs/starlight': patch
----
-
-Fixes type inference for i18n strings added by extending the default schema
diff --git a/.changeset/spotty-mice-travel.md b/.changeset/spotty-mice-travel.md
deleted file mode 100644
index 102f2e19..00000000
--- a/.changeset/spotty-mice-travel.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@astrojs/starlight': patch
----
-
-Fixes an issue where TypeScript could fail to serialize the frontmatter schema when configured to emit declaration files
diff --git a/.changeset/strong-moose-jam.md b/.changeset/strong-moose-jam.md
deleted file mode 100644
index 4f054c5b..00000000
--- a/.changeset/strong-moose-jam.md
+++ /dev/null
@@ -1,7 +0,0 @@
----
-'@astrojs/starlight': minor
----
-
-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](https://expressive-code.com/releases/#0340) for full details.
diff --git a/.changeset/sweet-vans-carry.md b/.changeset/sweet-vans-carry.md
deleted file mode 100644
index 3005a1dc..00000000
--- a/.changeset/sweet-vans-carry.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@astrojs/starlight': patch
----
-
-Refactors `<ThemeSelect>` custom element logic to improve performance
diff --git a/.changeset/swift-files-wave.md b/.changeset/swift-files-wave.md
deleted file mode 100644
index 694a0b6d..00000000
--- a/.changeset/swift-files-wave.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@astrojs/starlight': patch
----
-
-Fixes responding to system color scheme changes when theme is `auto`
diff --git a/.changeset/tall-planets-destroy.md b/.changeset/tall-planets-destroy.md
deleted file mode 100644
index ecfe5d96..00000000
--- a/.changeset/tall-planets-destroy.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@astrojs/starlight': minor
----
-
-Adds support for [accessing frontmatter data as a variable](https://docs.astro.build/en/guides/integrations-guide/markdoc/#access-frontmatter-from-your-markdoc-content) when using Markdoc
diff --git a/.changeset/tiny-walls-carry.md b/.changeset/tiny-walls-carry.md
deleted file mode 100644
index f49a2e8c..00000000
--- a/.changeset/tiny-walls-carry.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-"@astrojs/starlight": patch
----
-
-Updates the Farsi UI translations
diff --git a/examples/basics/package.json b/examples/basics/package.json
index c0b50173..2899cd2d 100644
--- a/examples/basics/package.json
+++ b/examples/basics/package.json
@@ -11,7 +11,7 @@
"astro": "astro"
},
"dependencies": {
- "@astrojs/starlight": "^0.21.5",
+ "@astrojs/starlight": "^0.22.0",
"astro": "^4.3.5",
"sharp": "^0.32.5"
}
diff --git a/examples/tailwind/package.json b/examples/tailwind/package.json
index b316ca57..7d7e5d22 100644
--- a/examples/tailwind/package.json
+++ b/examples/tailwind/package.json
@@ -11,7 +11,7 @@
"astro": "astro"
},
"dependencies": {
- "@astrojs/starlight": "^0.21.5",
+ "@astrojs/starlight": "^0.22.0",
"@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 b95524f2..993509b7 100644
--- a/packages/starlight/CHANGELOG.md
+++ b/packages/starlight/CHANGELOG.md
@@ -1,5 +1,62 @@
# @astrojs/starlight
+## 0.22.0
+
+### Minor Changes
+
+- [#640](https://github.com/withastro/starlight/pull/640) [`7dc503ea`](https://github.com/withastro/starlight/commit/7dc503ea7993123a4aeff453d08de41cac887353) Thanks [@HiDeoo](https://github.com/HiDeoo)! - Adds support for syncing multiple sets of tabs on the same page.
+
+- [#1620](https://github.com/withastro/starlight/pull/1620) [`ca0678ca`](https://github.com/withastro/starlight/commit/ca0678ca556d739bda9648edc1b79c764fdea851) Thanks [@emjio](https://github.com/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](https://starlight.astro.build/reference/overrides/#sitetitle) available to component overrides:
+
+ ```astro
+ ---
+ import type { Props } from '@astrojs/starlight/props';
+
+ // The site title for this page’s language:
+ const { siteTitle } = Astro.props;
+ ---
+ ```
+
+- [#1613](https://github.com/withastro/starlight/pull/1613) [`61493e55`](https://github.com/withastro/starlight/commit/61493e55f1a80362af13f98d665018376e987439) Thanks [@HiDeoo](https://github.com/HiDeoo)! - Adds new `draft` frontmatter option to exclude a page from production builds.
+
+- [#640](https://github.com/withastro/starlight/pull/640) [`7dc503ea`](https://github.com/withastro/starlight/commit/7dc503ea7993123a4aeff453d08de41cac887353) Thanks [@HiDeoo](https://github.com/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:
+
+ ```css
+ :root {
+ --sl-line-height: 1.8;
+ }
+ ```
+
+- [#1720](https://github.com/withastro/starlight/pull/1720) [`749ddf85`](https://github.com/withastro/starlight/commit/749ddf85a21d8ed1bfedbe60dee676cdd8784e96) Thanks [@jacobdalamb](https://github.com/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](https://expressive-code.com/releases/#0340) for full details.
+
+- [#1769](https://github.com/withastro/starlight/pull/1769) [`bd5f1cbd`](https://github.com/withastro/starlight/commit/bd5f1cbd5aef9e2d78e7f7187eb07deee87399d0) Thanks [@ncjones](https://github.com/ncjones)! - Adds support for [accessing frontmatter data as a variable](https://docs.astro.build/en/guides/integrations-guide/markdoc/#access-frontmatter-from-your-markdoc-content) when using Markdoc
+
+### Patch Changes
+
+- [#1788](https://github.com/withastro/starlight/pull/1788) [`681a4273`](https://github.com/withastro/starlight/commit/681a427366755fec71ba65d45e36f7d1267cf387) Thanks [@dragomano](https://github.com/dragomano)! - Adds Russian translations for Expressive Code labels
+
+- [#1780](https://github.com/withastro/starlight/pull/1780) [`4db6025a`](https://github.com/withastro/starlight/commit/4db6025a1c5c56cac2e3a98bd2e13124402445c7) Thanks [@MiahaCybersec](https://github.com/MiahaCybersec)! - Adds 1 new icon: `signal`
+
+- [#1785](https://github.com/withastro/starlight/pull/1785) [`65009c9c`](https://github.com/withastro/starlight/commit/65009c9cf8b0570303ecb87713e1c2968a704437) Thanks [@dreyfus92](https://github.com/dreyfus92)! - Adds 5 new icons: `node`, `cloudflare`, `vercel`, `netlify` and `deno`
+
+- [#1786](https://github.com/withastro/starlight/pull/1786) [`d05d693a`](https://github.com/withastro/starlight/commit/d05d693afcf1771b8269dfe2ccc94f8952c643e8) Thanks [@delucis](https://github.com/delucis)! - Fixes type inference for i18n strings added by extending the default schema
+
+- [#1777](https://github.com/withastro/starlight/pull/1777) [`6949404b`](https://github.com/withastro/starlight/commit/6949404b24a1c8254fd32d75122fdfbaf896fe29) Thanks [@HiDeoo](https://github.com/HiDeoo)! - Fixes an issue where TypeScript could fail to serialize the frontmatter schema when configured to emit declaration files
+
+- [#1734](https://github.com/withastro/starlight/pull/1734) [`4493dcfa`](https://github.com/withastro/starlight/commit/4493dcfac5171f839b1b0e39444a15ce696adee4) Thanks [@delucis](https://github.com/delucis)! - Refactors `<ThemeSelect>` custom element logic to improve performance
+
+- [#1731](https://github.com/withastro/starlight/pull/1731) [`f08b0dff`](https://github.com/withastro/starlight/commit/f08b0dff9638bbe7704ac2ba2e855d8d1464ba76) Thanks [@techfg](https://github.com/techfg)! - Fixes responding to system color scheme changes when theme is `auto`
+
+- [#1793](https://github.com/withastro/starlight/pull/1793) [`2616f0c7`](https://github.com/withastro/starlight/commit/2616f0c7acf39a99c9f92b3db4108cae81120034) Thanks [@Mrahmani71](https://github.com/Mrahmani71)! - Updates the Farsi UI translations
+
## 0.21.5
### Patch Changes
@@ -212,7 +269,7 @@
```css
.sl-link-card a {
- line-height: 1.6;
+ line-height: 1.6;
}
```
@@ -232,14 +289,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;
}
```
@@ -251,9 +308,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);
}
```
@@ -326,14 +383,14 @@
import starlight from '@astrojs/starlight';
export default defineConfig({
- // Disable link prefetching:
- prefetch: false,
-
- integrations: [
- starlight({
- // ...
- }),
- ],
+ // Disable link prefetching:
+ prefetch: false,
+
+ integrations: [
+ starlight({
+ // ...
+ }),
+ ],
});
```
@@ -390,12 +447,12 @@
import starlight from '@astrojs/starlight';
export default defineConfig({
- trailingSlash: 'always',
- integrations: [
- starlight({
- // ...
- }),
- ],
+ trailingSlash: 'always',
+ integrations: [
+ starlight({
+ // ...
+ }),
+ ],
});
```
@@ -743,16 +800,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%);
}
```
@@ -1131,8 +1188,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 7f9c4f92..e0ebde3a 100644
--- a/packages/starlight/package.json
+++ b/packages/starlight/package.json
@@ -1,6 +1,6 @@
{
"name": "@astrojs/starlight",
- "version": "0.21.5",
+ "version": "0.22.0",
"description": "Build beautiful, high-performance documentation websites with Astro",
"scripts": {
"test": "vitest",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 9c1dca04..cd2e1ce9 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -67,7 +67,7 @@ importers:
examples/basics:
dependencies:
'@astrojs/starlight':
- specifier: ^0.21.5
+ specifier: ^0.22.0
version: link:../../packages/starlight
astro:
specifier: ^4.3.5
@@ -79,7 +79,7 @@ importers:
examples/tailwind:
dependencies:
'@astrojs/starlight':
- specifier: ^0.21.5
+ specifier: ^0.22.0
version: link:../../packages/starlight
'@astrojs/starlight-tailwind':
specifier: ^2.0.2
@@ -1365,12 +1365,6 @@ packages:
dev: false
optional: true
- /@parse5/tools@0.3.0:
- resolution: {integrity: sha512-zxRyTHkqb7WQMV8kTNBKWb1BeOFUKXBXTBWuxg9H9hfvQB3IwP6Iw2U75Ia5eyRxPNltmY7E8YAlz6zWwUnjKg==}
- dependencies:
- parse5: 7.1.2
- dev: false
-
/@playwright/test@1.43.1:
resolution: {integrity: sha512-HgtQzFgNEEo4TE22K/X7sYTYNqEMMTZmFS8kTq6m8hXj+m1D8TgwgIbumHddJa9h4yl4GkKb8/bgAl2+g7eDgA==}
engines: {node: '>=16'}