summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHouston (Bot)2024-06-05 10:33:51 -0700
committerGitHub2024-06-05 19:33:51 +0200
commit56436bc22abfc4d429cc03bb926f468beb7add99 (patch)
tree82629d04a5d981867b4b304d64b9aea62cf9c0da
parent081d1a969462633e41ca95a18a1ec121cb4af5d2 (diff)
downloadIT.starlight-56436bc22abfc4d429cc03bb926f468beb7add99.tar.gz
IT.starlight-56436bc22abfc4d429cc03bb926f468beb7add99.tar.bz2
IT.starlight-56436bc22abfc4d429cc03bb926f468beb7add99.zip
[ci] release (#1959)@astrojs/starlight@0.24.0
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
-rw-r--r--.changeset/early-pots-perform.md10
-rw-r--r--.changeset/sharp-crabs-sparkle.md5
-rw-r--r--.changeset/wicked-melons-study.md6
-rw-r--r--examples/basics/package.json2
-rw-r--r--examples/tailwind/package.json2
-rw-r--r--packages/starlight/CHANGELOG.md81
-rw-r--r--packages/starlight/package.json2
-rw-r--r--pnpm-lock.yaml4
8 files changed, 53 insertions, 59 deletions
diff --git a/.changeset/early-pots-perform.md b/.changeset/early-pots-perform.md
deleted file mode 100644
index 14c33315..00000000
--- a/.changeset/early-pots-perform.md
+++ /dev/null
@@ -1,10 +0,0 @@
----
-"@astrojs/starlight": minor
----
-
-Adds support for `Astro.currentLocale` and Astro’s i18n routing.
-
-⚠️ **Potentially breaking change:** Starlight now configures Astro’s `i18n` option for you based on its `locales` config.
-
-If you are currently using Astro’s `i18n` option as well as Starlight’s `locales` option, you will need to remove one of these.
-In general we recommend using Starlight’s `locales`, but if you have a more advanced configuration you may choose to keep Astro’s `i18n` config instead.
diff --git a/.changeset/sharp-crabs-sparkle.md b/.changeset/sharp-crabs-sparkle.md
deleted file mode 100644
index 3886c522..00000000
--- a/.changeset/sharp-crabs-sparkle.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@astrojs/starlight': minor
----
-
-Allows users to opt into displaying a “Built with Starlight” link in the site footer
diff --git a/.changeset/wicked-melons-study.md b/.changeset/wicked-melons-study.md
deleted file mode 100644
index 9de08e60..00000000
--- a/.changeset/wicked-melons-study.md
+++ /dev/null
@@ -1,6 +0,0 @@
----
-'@astrojs/starlight': minor
----
-
-Adds a new `<Badge>` component
-
diff --git a/examples/basics/package.json b/examples/basics/package.json
index e5a0d51d..af4b4a67 100644
--- a/examples/basics/package.json
+++ b/examples/basics/package.json
@@ -11,7 +11,7 @@
"astro": "astro"
},
"dependencies": {
- "@astrojs/starlight": "^0.23.4",
+ "@astrojs/starlight": "^0.24.0",
"astro": "^4.8.6",
"sharp": "^0.32.5"
}
diff --git a/examples/tailwind/package.json b/examples/tailwind/package.json
index 0a8658ec..1c62381e 100644
--- a/examples/tailwind/package.json
+++ b/examples/tailwind/package.json
@@ -11,7 +11,7 @@
"astro": "astro"
},
"dependencies": {
- "@astrojs/starlight": "^0.23.4",
+ "@astrojs/starlight": "^0.24.0",
"@astrojs/starlight-tailwind": "^2.0.3",
"@astrojs/tailwind": "^5.1.0",
"astro": "^4.8.6",
diff --git a/packages/starlight/CHANGELOG.md b/packages/starlight/CHANGELOG.md
index fb0963e7..f7bd7f02 100644
--- a/packages/starlight/CHANGELOG.md
+++ b/packages/starlight/CHANGELOG.md
@@ -1,5 +1,20 @@
# @astrojs/starlight
+## 0.24.0
+
+### Minor Changes
+
+- [#1841](https://github.com/withastro/starlight/pull/1841) [`ee0cd38a`](https://github.com/withastro/starlight/commit/ee0cd38a1fae31717fe820e779baeabe693cd67a) Thanks [@HiDeoo](https://github.com/HiDeoo)! - Adds support for `Astro.currentLocale` and Astro’s i18n routing.
+
+ ⚠️ **Potentially breaking change:** Starlight now configures Astro’s `i18n` option for you based on its `locales` config.
+
+ If you are currently using Astro’s `i18n` option as well as Starlight’s `locales` option, you will need to remove one of these.
+ In general we recommend using Starlight’s `locales`, but if you have a more advanced configuration you may choose to keep Astro’s `i18n` config instead.
+
+- [#1958](https://github.com/withastro/starlight/pull/1958) [`081d1a96`](https://github.com/withastro/starlight/commit/081d1a969462633e41ca95a18a1ec121cb4af5d2) Thanks [@delucis](https://github.com/delucis)! - Allows users to opt into displaying a “Built with Starlight” link in the site footer
+
+- [#1530](https://github.com/withastro/starlight/pull/1530) [`dd64836a`](https://github.com/withastro/starlight/commit/dd64836af45f33df4a99ab864eabb91fc9b8e204) Thanks [@kevinzunigacuellar](https://github.com/kevinzunigacuellar)! - Adds a new `<Badge>` component
+
## 0.23.4
### Patch Changes
@@ -134,7 +149,7 @@
```css
:root {
- --sl-line-height: 1.8;
+ --sl-line-height: 1.8;
}
```
@@ -374,7 +389,7 @@
```css
.sl-link-card a {
- line-height: 1.6;
+ line-height: 1.6;
}
```
@@ -394,14 +409,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;
}
```
@@ -413,9 +428,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);
}
```
@@ -488,14 +503,14 @@
import starlight from '@astrojs/starlight';
export default defineConfig({
- // Disable link prefetching:
- prefetch: false,
+ // Disable link prefetching:
+ prefetch: false,
- integrations: [
- starlight({
- // ...
- }),
- ],
+ integrations: [
+ starlight({
+ // ...
+ }),
+ ],
});
```
@@ -552,12 +567,12 @@
import starlight from '@astrojs/starlight';
export default defineConfig({
- trailingSlash: 'always',
- integrations: [
- starlight({
- // ...
- }),
- ],
+ trailingSlash: 'always',
+ integrations: [
+ starlight({
+ // ...
+ }),
+ ],
});
```
@@ -905,16 +920,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%);
}
```
@@ -1293,8 +1308,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 616b58fe..ff3f0923 100644
--- a/packages/starlight/package.json
+++ b/packages/starlight/package.json
@@ -1,6 +1,6 @@
{
"name": "@astrojs/starlight",
- "version": "0.23.4",
+ "version": "0.24.0",
"description": "Build beautiful, high-performance documentation websites with Astro",
"scripts": {
"test": "vitest",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 9e57d522..7f60971c 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -73,7 +73,7 @@ importers:
examples/basics:
dependencies:
'@astrojs/starlight':
- specifier: ^0.23.4
+ specifier: ^0.24.0
version: link:../../packages/starlight
astro:
specifier: ^4.8.6
@@ -85,7 +85,7 @@ importers:
examples/tailwind:
dependencies:
'@astrojs/starlight':
- specifier: ^0.23.4
+ specifier: ^0.24.0
version: link:../../packages/starlight
'@astrojs/starlight-tailwind':
specifier: ^2.0.3