@astrojs/starlight 0.24.1 → 0.24.2
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 +45 -33
- package/__e2e__/fixtures/basics/node_modules/.bin/astro +2 -2
- package/__e2e__/fixtures/basics/package.json +1 -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/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,17 @@
|
|
|
1
1
|
# @astrojs/starlight
|
|
2
2
|
|
|
3
|
+
## 0.24.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#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.
|
|
8
|
+
|
|
9
|
+
- [#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`
|
|
10
|
+
|
|
11
|
+
- [#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
|
|
12
|
+
|
|
13
|
+
- [#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.
|
|
14
|
+
|
|
3
15
|
## 0.24.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -161,7 +173,7 @@
|
|
|
161
173
|
|
|
162
174
|
```css
|
|
163
175
|
:root {
|
|
164
|
-
|
|
176
|
+
--sl-line-height: 1.8;
|
|
165
177
|
}
|
|
166
178
|
```
|
|
167
179
|
|
|
@@ -401,7 +413,7 @@
|
|
|
401
413
|
|
|
402
414
|
```css
|
|
403
415
|
.sl-link-card a {
|
|
404
|
-
|
|
416
|
+
line-height: 1.6;
|
|
405
417
|
}
|
|
406
418
|
```
|
|
407
419
|
|
|
@@ -421,14 +433,14 @@
|
|
|
421
433
|
```css
|
|
422
434
|
/* Restore vertical spacing to match Starlight v0.15 and below. */
|
|
423
435
|
.sl-markdown-content
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
436
|
+
:not(a, strong, em, del, span, input, code)
|
|
437
|
+
+ :not(a, strong, em, del, span, input, code, :where(.not-content *)) {
|
|
438
|
+
margin-top: 1.5rem;
|
|
427
439
|
}
|
|
428
440
|
.sl-markdown-content
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
441
|
+
:not(h1, h2, h3, h4, h5, h6)
|
|
442
|
+
+ :is(h1, h2, h3, h4, h5, h6):not(:where(.not-content *)) {
|
|
443
|
+
margin-top: 2.5rem;
|
|
432
444
|
}
|
|
433
445
|
```
|
|
434
446
|
|
|
@@ -440,9 +452,9 @@
|
|
|
440
452
|
starlight-toc a[aria-current='true'],
|
|
441
453
|
starlight-toc a[aria-current='true']:hover,
|
|
442
454
|
starlight-toc a[aria-current='true']:focus {
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
455
|
+
font-weight: 600;
|
|
456
|
+
color: var(--sl-color-text-invert);
|
|
457
|
+
background-color: var(--sl-color-text-accent);
|
|
446
458
|
}
|
|
447
459
|
```
|
|
448
460
|
|
|
@@ -515,14 +527,14 @@
|
|
|
515
527
|
import starlight from '@astrojs/starlight';
|
|
516
528
|
|
|
517
529
|
export default defineConfig({
|
|
518
|
-
|
|
519
|
-
|
|
530
|
+
// Disable link prefetching:
|
|
531
|
+
prefetch: false,
|
|
520
532
|
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
533
|
+
integrations: [
|
|
534
|
+
starlight({
|
|
535
|
+
// ...
|
|
536
|
+
}),
|
|
537
|
+
],
|
|
526
538
|
});
|
|
527
539
|
```
|
|
528
540
|
|
|
@@ -579,12 +591,12 @@
|
|
|
579
591
|
import starlight from '@astrojs/starlight';
|
|
580
592
|
|
|
581
593
|
export default defineConfig({
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
594
|
+
trailingSlash: 'always',
|
|
595
|
+
integrations: [
|
|
596
|
+
starlight({
|
|
597
|
+
// ...
|
|
598
|
+
}),
|
|
599
|
+
],
|
|
588
600
|
});
|
|
589
601
|
```
|
|
590
602
|
|
|
@@ -932,16 +944,16 @@
|
|
|
932
944
|
|
|
933
945
|
```css
|
|
934
946
|
:root {
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
947
|
+
--sl-hue-accent: 234;
|
|
948
|
+
--sl-color-accent-low: hsl(var(--sl-hue-accent), 54%, 20%);
|
|
949
|
+
--sl-color-accent: hsl(var(--sl-hue-accent), 100%, 60%);
|
|
950
|
+
--sl-color-accent-high: hsl(var(--sl-hue-accent), 100%, 87%);
|
|
939
951
|
}
|
|
940
952
|
|
|
941
953
|
:root[data-theme='light'] {
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
954
|
+
--sl-color-accent-high: hsl(var(--sl-hue-accent), 80%, 30%);
|
|
955
|
+
--sl-color-accent: hsl(var(--sl-hue-accent), 90%, 60%);
|
|
956
|
+
--sl-color-accent-low: hsl(var(--sl-hue-accent), 88%, 90%);
|
|
945
957
|
}
|
|
946
958
|
```
|
|
947
959
|
|
|
@@ -1320,8 +1332,8 @@
|
|
|
1320
1332
|
|
|
1321
1333
|
```json
|
|
1322
1334
|
{
|
|
1323
|
-
|
|
1324
|
-
|
|
1335
|
+
"search.label": "Suchen",
|
|
1336
|
+
"search.shortcutLabel": "(Drücke / zum Suchen)"
|
|
1325
1337
|
}
|
|
1326
1338
|
```
|
|
1327
1339
|
|
|
@@ -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" "$@"
|