@astrojs/starlight 0.24.0 → 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 CHANGED
@@ -1,5 +1,29 @@
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
+
15
+ ## 0.24.1
16
+
17
+ ### Patch Changes
18
+
19
+ - [#1978](https://github.com/withastro/starlight/pull/1978) [`a5ab8cd6`](https://github.com/withastro/starlight/commit/a5ab8cd6a0095cb48b65b9784054714f87bd7e4d) Thanks [@kylewlacy](https://github.com/kylewlacy)! - Add new social icon for Zulip
20
+
21
+ - [#1962](https://github.com/withastro/starlight/pull/1962) [`2ef19a94`](https://github.com/withastro/starlight/commit/2ef19a947c54c7d2c085bf8820c862737e2ab08b) Thanks [@torn4dom4n](https://github.com/torn4dom4n)! - Updates Vietnamese UI translations
22
+
23
+ - [#1976](https://github.com/withastro/starlight/pull/1976) [`5a61f73c`](https://github.com/withastro/starlight/commit/5a61f73c198a33b27342c9b0371dd5fd22da2190) Thanks [@jsparkdev](https://github.com/jsparkdev)! - Updates Korean UI translations
24
+
25
+ - [#1987](https://github.com/withastro/starlight/pull/1987) [`0b8a8439`](https://github.com/withastro/starlight/commit/0b8a843936bd8506ac228608b07c54a76a7add19) Thanks [@HiDeoo](https://github.com/HiDeoo)! - Fixes issues with the locale text direction detection mechanism in some environments like WebContainers or Bun.
26
+
3
27
  ## 0.24.0
4
28
 
5
29
  ### Minor Changes
@@ -149,7 +173,7 @@
149
173
 
150
174
  ```css
151
175
  :root {
152
- --sl-line-height: 1.8;
176
+ --sl-line-height: 1.8;
153
177
  }
154
178
  ```
155
179
 
@@ -389,7 +413,7 @@
389
413
 
390
414
  ```css
391
415
  .sl-link-card a {
392
- line-height: 1.6;
416
+ line-height: 1.6;
393
417
  }
394
418
  ```
395
419
 
@@ -409,14 +433,14 @@
409
433
  ```css
410
434
  /* Restore vertical spacing to match Starlight v0.15 and below. */
411
435
  .sl-markdown-content
412
- :not(a, strong, em, del, span, input, code)
413
- + :not(a, strong, em, del, span, input, code, :where(.not-content *)) {
414
- margin-top: 1.5rem;
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;
415
439
  }
416
440
  .sl-markdown-content
417
- :not(h1, h2, h3, h4, h5, h6)
418
- + :is(h1, h2, h3, h4, h5, h6):not(:where(.not-content *)) {
419
- margin-top: 2.5rem;
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;
420
444
  }
421
445
  ```
422
446
 
@@ -428,9 +452,9 @@
428
452
  starlight-toc a[aria-current='true'],
429
453
  starlight-toc a[aria-current='true']:hover,
430
454
  starlight-toc a[aria-current='true']:focus {
431
- font-weight: 600;
432
- color: var(--sl-color-text-invert);
433
- background-color: var(--sl-color-text-accent);
455
+ font-weight: 600;
456
+ color: var(--sl-color-text-invert);
457
+ background-color: var(--sl-color-text-accent);
434
458
  }
435
459
  ```
436
460
 
@@ -503,14 +527,14 @@
503
527
  import starlight from '@astrojs/starlight';
504
528
 
505
529
  export default defineConfig({
506
- // Disable link prefetching:
507
- prefetch: false,
530
+ // Disable link prefetching:
531
+ prefetch: false,
508
532
 
509
- integrations: [
510
- starlight({
511
- // ...
512
- }),
513
- ],
533
+ integrations: [
534
+ starlight({
535
+ // ...
536
+ }),
537
+ ],
514
538
  });
515
539
  ```
516
540
 
@@ -567,12 +591,12 @@
567
591
  import starlight from '@astrojs/starlight';
568
592
 
569
593
  export default defineConfig({
570
- trailingSlash: 'always',
571
- integrations: [
572
- starlight({
573
- // ...
574
- }),
575
- ],
594
+ trailingSlash: 'always',
595
+ integrations: [
596
+ starlight({
597
+ // ...
598
+ }),
599
+ ],
576
600
  });
577
601
  ```
578
602
 
@@ -920,16 +944,16 @@
920
944
 
921
945
  ```css
922
946
  :root {
923
- --sl-hue-accent: 234;
924
- --sl-color-accent-low: hsl(var(--sl-hue-accent), 54%, 20%);
925
- --sl-color-accent: hsl(var(--sl-hue-accent), 100%, 60%);
926
- --sl-color-accent-high: hsl(var(--sl-hue-accent), 100%, 87%);
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%);
927
951
  }
928
952
 
929
953
  :root[data-theme='light'] {
930
- --sl-color-accent-high: hsl(var(--sl-hue-accent), 80%, 30%);
931
- --sl-color-accent: hsl(var(--sl-hue-accent), 90%, 60%);
932
- --sl-color-accent-low: hsl(var(--sl-hue-accent), 88%, 90%);
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%);
933
957
  }
934
958
  ```
935
959
 
@@ -1308,8 +1332,8 @@
1308
1332
 
1309
1333
  ```json
1310
1334
  {
1311
- "search.label": "Suchen",
1312
- "search.shortcutLabel": "(Drücke / zum Suchen)"
1335
+ "search.label": "Suchen",
1336
+ "search.shortcutLabel": "(Drücke / zum Suchen)"
1313
1337
  }
1314
1338
  ```
1315
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.8.6_@types+node@18.16.19_typescript@5.4.5/node_modules/astro/node_modules:/home/runner/work/starlight/starlight/node_modules/.pnpm/astro@4.8.6_@types+node@18.16.19_typescript@5.4.5/node_modules:/home/runner/work/starlight/starlight/node_modules/.pnpm/node_modules"
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.8.6_@types+node@18.16.19_typescript@5.4.5/node_modules/astro/node_modules:/home/runner/work/starlight/starlight/node_modules/.pnpm/astro@4.8.6_@types+node@18.16.19_typescript@5.4.5/node_modules:/home/runner/work/starlight/starlight/node_modules/.pnpm/node_modules:$NODE_PATH"
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" "$@"
@@ -4,6 +4,6 @@
4
4
  "private": true,
5
5
  "dependencies": {
6
6
  "@astrojs/starlight": "workspace:*",
7
- "astro": "^4.8.6"
7
+ "astro": "^4.10.2"
8
8
  }
9
9
  }
@@ -123,6 +123,8 @@ export const BuiltInIcons = {
123
123
  '<path d="M12 10.8c-1-2.1-4-6-6.8-8C2.6 1 1.6 1.3.9 1.6.1 1.9 0 3 0 3.8c0 .7.4 5.6.6 6.4C1.4 13 4.3 14 7 13.6h.4H7c-4 .6-7.4 2-2.8 7 5 5.3 6.8-1 7.8-4.2 1 3.2 2 9.3 7.7 4.3 4.3-4.3 1.2-6.5-2.7-7a9 9 0 0 1-.4-.1h.4c2.7.3 5.6-.6 6.4-3.4.2-.8.6-5.7.6-6.4 0-.7-.1-1.9-.9-2.2-.7-.3-1.7-.7-4.3 1.2-2.8 2-5.7 5.9-6.8 8"/>',
124
124
  discourse:
125
125
  '<path d="M12.102 0h-.081C5.462 0 .13 5.252.001 11.779v.012L.007 24l12.097-.01c6.582-.055 11.897-5.404 11.897-11.995S18.686.056 12.109 0h-.005zM12 18.857h-.015a6.778 6.778 0 0 1-2.94-.666l.041.018-4.345 1.077 1.227-4.018a6.78 6.78 0 0 1-.83-3.27A6.86 6.86 0 1 1 12 18.857z"/>',
126
+ zulip:
127
+ '<path d="M21 19c0 1.7-1.2 3-2.7 3H5.7C4.2 22 3 20.7 3 19a3 3 0 0 1 1.2-2.4l6.7-6c0-.1.3 0 .2.2l-2.5 5s0 .2.2.2h9.5c1.5 0 2.7 1.4 2.7 3Zm0-14a3 3 0 0 1-1.2 2.4l-6.7 6c0 .1-.2 0-.2-.2l2.5-5s0-.2-.2-.2H5.7C4.2 8 3 6.6 3 5c0-1.7 1.2-3 2.7-3h12.6C19.8 2 21 3.3 21 5Z"/>',
126
128
  astro:
127
129
  '<path d="M7.233 15.856c-.456 1.5-.132 3.586.948 4.57v-.036l.036-.096c.132-.636.648-1.032 1.309-1.008.612.012.96.336 1.044 1.044.036.264.036.528.048.803v.084c0 .6.168 1.176.504 1.68.3.48.72.851 1.284 1.103l-.024-.048-.024-.096c-.42-1.26-.12-2.135.984-2.879l.336-.227.745-.492a3.647 3.647 0 0 0 1.536-2.603c.06-.456 0-.9-.132-1.331l-.18.12c-1.668.887-3.577 1.2-5.425.84-1.117-.169-2.197-.48-3-1.416l.011-.012ZM2 15.592s3.205-1.559 6.421-1.559l2.437-7.508c.084-.36.348-.6.648-.6.3 0 .552.24.648.612l2.425 7.496c3.816 0 6.421 1.56 6.421 1.56L15.539.72c-.144-.444-.42-.72-.768-.72H8.24c-.348 0-.6.276-.768.72L2 15.592Z"/>',
128
130
  alpine: '<path d="m18.7 6 5.3 5.3-5.3 5.3-5.4-5.3L18.7 6zM5.3 6l11 11H5.8L0 11.2 5.3 6z"/>',