@astrojs/starlight 0.24.1 → 0.24.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +53 -33
- package/__e2e__/fixtures/basics/node_modules/.bin/astro +2 -2
- package/__e2e__/fixtures/basics/package.json +1 -1
- package/components/Search.astro +2 -1
- package/integrations/expressive-code/themes/night-owl-dark.jsonc +413 -413
- package/integrations/expressive-code/themes/night-owl-light.jsonc +405 -405
- package/integrations/virtual-user-config.ts +2 -2
- package/package.json +10 -14
- package/schema.ts +2 -2
- package/translations/cs.json +7 -7
- package/translations/index.ts +2 -0
- package/translations/sk.json +29 -0
- package/user-components/Tabs.astro +6 -6
- package/utils/error-map.ts +1 -1
- package/utils/i18n.ts +7 -7
- package/utils/navigation.ts +1 -1
- package/utils/route-data.ts +2 -2
- package/utils/slugs.ts +2 -2
- package/utils/starlight-page.ts +4 -4
- package/utils/user-config.ts +5 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @astrojs/starlight
|
|
2
2
|
|
|
3
|
+
## 0.24.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2028](https://github.com/withastro/starlight/pull/2028) [`af81ad3`](https://github.com/withastro/starlight/commit/af81ad38fd26c375c0372718fd3e152b7f1a0fa6) Thanks [@HiDeoo](https://github.com/HiDeoo)! - Fixes a search dialog height issue in Safari.
|
|
8
|
+
|
|
9
|
+
- [#2022](https://github.com/withastro/starlight/pull/2022) [`80f82b1`](https://github.com/withastro/starlight/commit/80f82b15afae1366676e0c25e674210a19606df5) Thanks [@playmr365](https://github.com/playmr365)! - Updates Czech UI translations
|
|
10
|
+
|
|
11
|
+
## 0.24.2
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#2008](https://github.com/withastro/starlight/pull/2008) [`40359c7`](https://github.com/withastro/starlight/commit/40359c7b73d9c7d60f0b44a870dbc93ba941228f) Thanks [@vnepogodin](https://github.com/vnepogodin)! - Add Slovak language UI translation.
|
|
16
|
+
|
|
17
|
+
- [#2004](https://github.com/withastro/starlight/pull/2004) [`0aa2f06`](https://github.com/withastro/starlight/commit/0aa2f06d3a35a3c5182b4d461c8f3489ac145301) Thanks [@liruifengv](https://github.com/liruifengv)! - Removes an outdated export in `package.json`
|
|
18
|
+
|
|
19
|
+
- [#2007](https://github.com/withastro/starlight/pull/2007) [`44ca490`](https://github.com/withastro/starlight/commit/44ca490f36ecd6789d0865dd2506e5ea03dfa0fb) Thanks [@delucis](https://github.com/delucis)! - Updates internal dependencies
|
|
20
|
+
|
|
21
|
+
- [#1993](https://github.com/withastro/starlight/pull/1993) [`60165b2`](https://github.com/withastro/starlight/commit/60165b20c9d11a08c4c4793615778e045b41b7de) Thanks [@HiDeoo](https://github.com/HiDeoo)! - Fixes an i18n configuration issue when using a single root locale.
|
|
22
|
+
|
|
3
23
|
## 0.24.1
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
|
@@ -161,7 +181,7 @@
|
|
|
161
181
|
|
|
162
182
|
```css
|
|
163
183
|
:root {
|
|
164
|
-
|
|
184
|
+
--sl-line-height: 1.8;
|
|
165
185
|
}
|
|
166
186
|
```
|
|
167
187
|
|
|
@@ -401,7 +421,7 @@
|
|
|
401
421
|
|
|
402
422
|
```css
|
|
403
423
|
.sl-link-card a {
|
|
404
|
-
|
|
424
|
+
line-height: 1.6;
|
|
405
425
|
}
|
|
406
426
|
```
|
|
407
427
|
|
|
@@ -421,14 +441,14 @@
|
|
|
421
441
|
```css
|
|
422
442
|
/* Restore vertical spacing to match Starlight v0.15 and below. */
|
|
423
443
|
.sl-markdown-content
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
444
|
+
:not(a, strong, em, del, span, input, code)
|
|
445
|
+
+ :not(a, strong, em, del, span, input, code, :where(.not-content *)) {
|
|
446
|
+
margin-top: 1.5rem;
|
|
427
447
|
}
|
|
428
448
|
.sl-markdown-content
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
449
|
+
:not(h1, h2, h3, h4, h5, h6)
|
|
450
|
+
+ :is(h1, h2, h3, h4, h5, h6):not(:where(.not-content *)) {
|
|
451
|
+
margin-top: 2.5rem;
|
|
432
452
|
}
|
|
433
453
|
```
|
|
434
454
|
|
|
@@ -440,9 +460,9 @@
|
|
|
440
460
|
starlight-toc a[aria-current='true'],
|
|
441
461
|
starlight-toc a[aria-current='true']:hover,
|
|
442
462
|
starlight-toc a[aria-current='true']:focus {
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
463
|
+
font-weight: 600;
|
|
464
|
+
color: var(--sl-color-text-invert);
|
|
465
|
+
background-color: var(--sl-color-text-accent);
|
|
446
466
|
}
|
|
447
467
|
```
|
|
448
468
|
|
|
@@ -515,14 +535,14 @@
|
|
|
515
535
|
import starlight from '@astrojs/starlight';
|
|
516
536
|
|
|
517
537
|
export default defineConfig({
|
|
518
|
-
|
|
519
|
-
|
|
538
|
+
// Disable link prefetching:
|
|
539
|
+
prefetch: false,
|
|
520
540
|
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
541
|
+
integrations: [
|
|
542
|
+
starlight({
|
|
543
|
+
// ...
|
|
544
|
+
}),
|
|
545
|
+
],
|
|
526
546
|
});
|
|
527
547
|
```
|
|
528
548
|
|
|
@@ -579,12 +599,12 @@
|
|
|
579
599
|
import starlight from '@astrojs/starlight';
|
|
580
600
|
|
|
581
601
|
export default defineConfig({
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
602
|
+
trailingSlash: 'always',
|
|
603
|
+
integrations: [
|
|
604
|
+
starlight({
|
|
605
|
+
// ...
|
|
606
|
+
}),
|
|
607
|
+
],
|
|
588
608
|
});
|
|
589
609
|
```
|
|
590
610
|
|
|
@@ -932,16 +952,16 @@
|
|
|
932
952
|
|
|
933
953
|
```css
|
|
934
954
|
:root {
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
955
|
+
--sl-hue-accent: 234;
|
|
956
|
+
--sl-color-accent-low: hsl(var(--sl-hue-accent), 54%, 20%);
|
|
957
|
+
--sl-color-accent: hsl(var(--sl-hue-accent), 100%, 60%);
|
|
958
|
+
--sl-color-accent-high: hsl(var(--sl-hue-accent), 100%, 87%);
|
|
939
959
|
}
|
|
940
960
|
|
|
941
961
|
:root[data-theme='light'] {
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
962
|
+
--sl-color-accent-high: hsl(var(--sl-hue-accent), 80%, 30%);
|
|
963
|
+
--sl-color-accent: hsl(var(--sl-hue-accent), 90%, 60%);
|
|
964
|
+
--sl-color-accent-low: hsl(var(--sl-hue-accent), 88%, 90%);
|
|
945
965
|
}
|
|
946
966
|
```
|
|
947
967
|
|
|
@@ -1320,8 +1340,8 @@
|
|
|
1320
1340
|
|
|
1321
1341
|
```json
|
|
1322
1342
|
{
|
|
1323
|
-
|
|
1324
|
-
|
|
1343
|
+
"search.label": "Suchen",
|
|
1344
|
+
"search.shortcutLabel": "(Drücke / zum Suchen)"
|
|
1325
1345
|
}
|
|
1326
1346
|
```
|
|
1327
1347
|
|
|
@@ -6,9 +6,9 @@ case `uname` in
|
|
|
6
6
|
esac
|
|
7
7
|
|
|
8
8
|
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/home/runner/work/starlight/starlight/node_modules/.pnpm/astro@4.
|
|
9
|
+
export NODE_PATH="/home/runner/work/starlight/starlight/node_modules/.pnpm/astro@4.10.2_@types+node@18.16.19_typescript@5.4.5/node_modules/astro/node_modules:/home/runner/work/starlight/starlight/node_modules/.pnpm/astro@4.10.2_@types+node@18.16.19_typescript@5.4.5/node_modules:/home/runner/work/starlight/starlight/node_modules/.pnpm/node_modules"
|
|
10
10
|
else
|
|
11
|
-
export NODE_PATH="/home/runner/work/starlight/starlight/node_modules/.pnpm/astro@4.
|
|
11
|
+
export NODE_PATH="/home/runner/work/starlight/starlight/node_modules/.pnpm/astro@4.10.2_@types+node@18.16.19_typescript@5.4.5/node_modules/astro/node_modules:/home/runner/work/starlight/starlight/node_modules/.pnpm/astro@4.10.2_@types+node@18.16.19_typescript@5.4.5/node_modules:/home/runner/work/starlight/starlight/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
14
|
exec "$basedir/node" "$basedir/../astro/astro.js" "$@"
|
package/components/Search.astro
CHANGED
|
@@ -197,7 +197,7 @@ const pagefindTranslations = {
|
|
|
197
197
|
box-shadow: var(--sl-shadow-lg);
|
|
198
198
|
}
|
|
199
199
|
dialog[open] {
|
|
200
|
-
display:
|
|
200
|
+
display: flex;
|
|
201
201
|
}
|
|
202
202
|
|
|
203
203
|
dialog::backdrop {
|
|
@@ -208,6 +208,7 @@ const pagefindTranslations = {
|
|
|
208
208
|
|
|
209
209
|
.dialog-frame {
|
|
210
210
|
flex-direction: column;
|
|
211
|
+
flex-grow: 1;
|
|
211
212
|
gap: 1rem;
|
|
212
213
|
padding: 1rem;
|
|
213
214
|
}
|