@astrojs/starlight 0.24.2 → 0.24.4
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,23 @@
|
|
|
1
1
|
# @astrojs/starlight
|
|
2
2
|
|
|
3
|
+
## 0.24.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2038](https://github.com/withastro/starlight/pull/2038) [`87f3f92`](https://github.com/withastro/starlight/commit/87f3f925be6f9897b71b09a3041ec6d54be483b2) Thanks [@dragomano](https://github.com/dragomano)! - Updates Russian UI translations
|
|
8
|
+
|
|
9
|
+
- [#2043](https://github.com/withastro/starlight/pull/2043) [`53f4cd4`](https://github.com/withastro/starlight/commit/53f4cd443cf31b6135ff16eb74b5f26ee93ee2d5) Thanks [@playmr365](https://github.com/playmr365)! - Updates Czech UI translations
|
|
10
|
+
|
|
11
|
+
- [#2041](https://github.com/withastro/starlight/pull/2041) [`8af5a60`](https://github.com/withastro/starlight/commit/8af5a60ab14f4dae7f5a5e4ee535ae927273368b) Thanks [@HiDeoo](https://github.com/HiDeoo)! - Fixes `<Steps>` numbering bug caused by Chrome v126 CSS counter rewrite
|
|
12
|
+
|
|
13
|
+
## 0.24.3
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- [#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.
|
|
18
|
+
|
|
19
|
+
- [#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
|
|
20
|
+
|
|
3
21
|
## 0.24.2
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
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
|
}
|
package/package.json
CHANGED
package/translations/cs.json
CHANGED
|
@@ -18,12 +18,25 @@
|
|
|
18
18
|
"page.lastUpdated": "Poslední aktualizace:",
|
|
19
19
|
"page.previousLink": "Předchozí",
|
|
20
20
|
"page.nextLink": "Další",
|
|
21
|
-
"page.draft": "
|
|
22
|
-
"404.text": "Stránka nenalezena. Zkontrolujte adresu
|
|
23
|
-
"aside.note": "
|
|
21
|
+
"page.draft": "Tento obsah je koncept a nebude zahrnutý v produkčním sestavení.",
|
|
22
|
+
"404.text": "Stránka nenalezena. Zkontrolujte adresu nebo zkuste použít vyhledávač",
|
|
23
|
+
"aside.note": "Poznámka",
|
|
24
24
|
"aside.tip": "Tip",
|
|
25
|
-
"aside.caution": "
|
|
26
|
-
"aside.danger": "
|
|
27
|
-
"fileTree.directory": "
|
|
28
|
-
"builtWithStarlight.label": "
|
|
25
|
+
"aside.caution": "Upozornění",
|
|
26
|
+
"aside.danger": "Nebezpečí",
|
|
27
|
+
"fileTree.directory": "Adresář",
|
|
28
|
+
"builtWithStarlight.label": "Postavené s Starlight",
|
|
29
|
+
"expressiveCode.copyButtonCopied": "Zkopírováno!",
|
|
30
|
+
"expressiveCode.copyButtonTooltip": "Kopíruj do schránky",
|
|
31
|
+
"expressiveCode.terminalWindowFallbackTitle": "Terminál",
|
|
32
|
+
"pagefind.clear_search": "Vyčistit",
|
|
33
|
+
"pagefind.load_more": "Načíst další výsledky",
|
|
34
|
+
"pagefind.search_label": "Vyhledat stránku",
|
|
35
|
+
"pagefind.filters_label": "Filtry",
|
|
36
|
+
"pagefind.zero_results": "Žádný výsledek pro: [SEARCH_TERM]",
|
|
37
|
+
"pagefind.many_results": "počet výsledků: [COUNT] pro: [SEARCH_TERM]",
|
|
38
|
+
"pagefind.one_result": "[COUNT] výsledek pro: [SEARCH_TERM]",
|
|
39
|
+
"pagefind.alt_search": "Žádné výsledky pro [SEARCH_TERM]. Namísto toho zobrazuji výsledky pro: [DIFFERENT_TERM]",
|
|
40
|
+
"pagefind.search_suggestion": "Žádný výsledek pro [SEARCH_TERM]. Zkus nějaké z těchto hledání:",
|
|
41
|
+
"pagefind.searching": "Hledám [SEARCH_TERM]..."
|
|
29
42
|
}
|
package/translations/ru.json
CHANGED
|
@@ -28,5 +28,5 @@
|
|
|
28
28
|
"expressiveCode.copyButtonCopied": "Скопировано!",
|
|
29
29
|
"expressiveCode.copyButtonTooltip": "Копировать",
|
|
30
30
|
"expressiveCode.terminalWindowFallbackTitle": "Окно терминала",
|
|
31
|
-
"builtWithStarlight.label": "
|
|
31
|
+
"builtWithStarlight.label": "Сделано с помощью Starlight"
|
|
32
32
|
}
|
|
@@ -13,10 +13,12 @@ const { html } = processSteps(content);
|
|
|
13
13
|
--bullet-margin: 0.375rem;
|
|
14
14
|
|
|
15
15
|
list-style: none;
|
|
16
|
+
counter-reset: steps-counter var(--sl-steps-start, 0);
|
|
16
17
|
padding-inline-start: 0;
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
.sl-steps > li {
|
|
21
|
+
counter-increment: steps-counter;
|
|
20
22
|
position: relative;
|
|
21
23
|
padding-inline-start: calc(var(--bullet-size) + 1rem);
|
|
22
24
|
/* HACK: Keeps any `margin-bottom` inside the `<li>`’s padding box to avoid gaps in the hairline border. */
|
|
@@ -31,7 +33,7 @@ const { html } = processSteps(content);
|
|
|
31
33
|
|
|
32
34
|
/* Custom list marker element. */
|
|
33
35
|
.sl-steps > li::before {
|
|
34
|
-
content: counter(
|
|
36
|
+
content: counter(steps-counter);
|
|
35
37
|
position: absolute;
|
|
36
38
|
top: 0;
|
|
37
39
|
inset-inline-start: 0;
|
|
@@ -44,6 +44,14 @@ const stepsProcessor = rehype()
|
|
|
44
44
|
} else {
|
|
45
45
|
rootElement.properties.className.push('sl-steps');
|
|
46
46
|
}
|
|
47
|
+
|
|
48
|
+
// Add the `start` attribute as a CSS custom property so we can use it as the starting index
|
|
49
|
+
// of the steps custom counter.
|
|
50
|
+
if (typeof rootElement.properties.start === 'number') {
|
|
51
|
+
const styles = [`--sl-steps-start: ${rootElement.properties.start - 1}`];
|
|
52
|
+
if (rootElement.properties.style) styles.push(String(rootElement.properties.style));
|
|
53
|
+
rootElement.properties.style = styles.join(';');
|
|
54
|
+
}
|
|
47
55
|
};
|
|
48
56
|
});
|
|
49
57
|
|