@hagicode/hagilight-starlight 0.13.0 → 0.13.1-dev.138.1.3a7d332
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/ArticlePromotion.astro +1 -1
- package/LanguageChooser.astro +24 -0
- package/README.md +1 -1
- package/dist/article-promotion-copy/de-DE.js +2 -2
- package/dist/article-promotion-copy/en-US.js +2 -2
- package/dist/article-promotion-copy/es-ES.js +2 -2
- package/dist/article-promotion-copy/fr-FR.js +2 -2
- package/dist/article-promotion-copy/index.d.ts +1 -1
- package/dist/article-promotion-copy/index.js +1 -1
- package/dist/article-promotion-copy/ja-JP.js +2 -2
- package/dist/article-promotion-copy/ko-KR.js +2 -2
- package/dist/article-promotion-copy/pt-BR.js +2 -2
- package/dist/article-promotion-copy/ru-RU.js +2 -2
- package/dist/article-promotion-copy/zh-CN.js +2 -2
- package/dist/article-promotion-copy/zh-Hant.js +2 -2
- package/package.json +2 -2
package/ArticlePromotion.astro
CHANGED
|
@@ -491,7 +491,7 @@ const gallery = copy.gallery.flatMap((item) => {
|
|
|
491
491
|
|
|
492
492
|
/*
|
|
493
493
|
* Mosaic in reading order: the workbench and the proposal strip stack in the left column
|
|
494
|
-
* beside the tall Hero
|
|
494
|
+
* beside the tall Hero Scenario panel. The 1.1fr split lands the image bottoms of both columns within
|
|
495
495
|
* a caption's height of each other for the current screenshots; the placement assumes exactly
|
|
496
496
|
* three gallery images.
|
|
497
497
|
*/
|
package/LanguageChooser.astro
CHANGED
|
@@ -56,6 +56,23 @@ const navigationOptions = options.map((option) => ({
|
|
|
56
56
|
aria-label={`${accessibleLabel}: ${currentOption?.label ?? currentLocale}`}
|
|
57
57
|
title={currentOption?.label ?? currentLocale}
|
|
58
58
|
>
|
|
59
|
+
<svg
|
|
60
|
+
class="trigger-icon"
|
|
61
|
+
aria-hidden="true"
|
|
62
|
+
focusable="false"
|
|
63
|
+
viewBox="0 0 24 24"
|
|
64
|
+
width="16"
|
|
65
|
+
height="16"
|
|
66
|
+
fill="none"
|
|
67
|
+
stroke="currentColor"
|
|
68
|
+
stroke-width="1.8"
|
|
69
|
+
stroke-linecap="round"
|
|
70
|
+
stroke-linejoin="round"
|
|
71
|
+
>
|
|
72
|
+
<circle cx="12" cy="12" r="9"></circle>
|
|
73
|
+
<path d="M3 12h18"></path>
|
|
74
|
+
<path d="M12 3c2.6 2.7 3.9 5.7 3.9 9s-1.3 6.3-3.9 9c-2.6-2.7-3.9-5.7-3.9-9S9.4 5.7 12 3z"></path>
|
|
75
|
+
</svg>
|
|
59
76
|
<span class="trigger-label">{currentOption?.label ?? currentLocale}</span>
|
|
60
77
|
<span class="trigger-chevron" aria-hidden="true">▾</span>
|
|
61
78
|
</button>
|
|
@@ -211,6 +228,13 @@ const navigationOptions = options.map((option) => ({
|
|
|
211
228
|
outline-offset: 2px;
|
|
212
229
|
}
|
|
213
230
|
|
|
231
|
+
.trigger-icon {
|
|
232
|
+
flex: none;
|
|
233
|
+
width: 1rem;
|
|
234
|
+
height: 1rem;
|
|
235
|
+
color: var(--sl-color-gray-2);
|
|
236
|
+
}
|
|
237
|
+
|
|
214
238
|
.trigger-label {
|
|
215
239
|
max-width: 10rem;
|
|
216
240
|
overflow: hidden;
|
package/README.md
CHANGED
|
@@ -165,7 +165,7 @@ To check a deployed site, run `curl -sI https://<site>/_astro/<file>.avif` with
|
|
|
165
165
|
|
|
166
166
|
The copy and assets mirror `repos/web` and `repos/docs` in the HagiCode monorepo, which this package never edits.
|
|
167
167
|
|
|
168
|
-
- **Copy:** edit `src/article-promotion-copy/<locale>.ts` (every locale must keep the same fields, feature ids, and gallery ids). Terminology is pinned in `GLOSSARY` in `src/article-promotion-copy/index.ts`, seeded from the product locale files in `repos/web/src/locales/<locale>/`. `HagiCode`, `OpenSpec`, `Hero
|
|
168
|
+
- **Copy:** edit `src/article-promotion-copy/<locale>.ts` (every locale must keep the same fields, feature ids, and gallery ids). Terminology is pinned in `GLOSSARY` in `src/article-promotion-copy/index.ts`, seeded from the product locale files in `repos/web/src/locales/<locale>/`. `HagiCode`, `OpenSpec`, `Hero Scenario`, `Microsoft Store`, and `Windows` are never translated.
|
|
169
169
|
- **Images:** audit the candidate, crop and convert it to WebP (the AVIF and JPEG tiers are derived at build time, so an opaque image needs no extra file), add or update its `manifest.json` entry, register it in the `galleryImages` map in `ArticlePromotion.astro`, and add a caption and text alternative in every locale. The gallery mosaic places the first, second, and third catalog entries as the left top, left bottom, and right tall slot, so keep the gallery at three images or revisit the placement in the component's `@container (min-width: 36rem)` block. `npm test` checks that the manifest, the files, the component registry, and the copy agree.
|
|
170
170
|
- **Badge:** the product id is parsed from the Store URL and the badge language map lives in `src/windows-download.ts`. Re-check both against `repos/docs/src/components/MicrosoftStoreBadge.tsx` and the official site when the Store listing or the supported languages change.
|
|
171
171
|
|
|
@@ -25,8 +25,8 @@ export default {
|
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
id: 'heroes',
|
|
28
|
-
caption: 'Hero
|
|
29
|
-
alt: 'Bereich Hero
|
|
28
|
+
caption: 'Hero Scenario: Helden erledigen die Arbeit, Sie behalten Fortschritt, Level und Geschichte im Blick.',
|
|
29
|
+
alt: 'Bereich Hero Scenario von HagiCode namens Ember Keep mit drei laufenden Helden samt Level, Fortschritt und Geschichtstext.',
|
|
30
30
|
},
|
|
31
31
|
],
|
|
32
32
|
windowsLabel: 'Für Windows herunterladen',
|
|
@@ -25,8 +25,8 @@ export default {
|
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
id: 'heroes',
|
|
28
|
-
caption: 'Hero
|
|
29
|
-
alt: 'HagiCode Hero
|
|
28
|
+
caption: 'Hero Scenario: heroes run the work while you follow progress, levels, and story.',
|
|
29
|
+
alt: 'HagiCode Hero Scenario panel named Ember Keep, listing three running heroes with their level, progress, and story text.',
|
|
30
30
|
},
|
|
31
31
|
],
|
|
32
32
|
windowsLabel: 'Download for Windows',
|
|
@@ -25,8 +25,8 @@ export default {
|
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
id: 'heroes',
|
|
28
|
-
caption: 'Hero
|
|
29
|
-
alt: 'Panel Hero
|
|
28
|
+
caption: 'Hero Scenario: los héroes sacan adelante el trabajo mientras sigues el progreso, los niveles y la historia.',
|
|
29
|
+
alt: 'Panel Hero Scenario de HagiCode llamado Ember Keep, con tres héroes en ejecución y su nivel, progreso y texto de la historia.',
|
|
30
30
|
},
|
|
31
31
|
],
|
|
32
32
|
windowsLabel: 'Descargar para Windows',
|
|
@@ -25,8 +25,8 @@ export default {
|
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
id: 'heroes',
|
|
28
|
-
caption: 'Hero
|
|
29
|
-
alt: 'Panneau Hero
|
|
28
|
+
caption: 'Hero Scenario : les héros avancent le travail pendant que vous suivez progression, niveaux et récit.',
|
|
29
|
+
alt: 'Panneau Hero Scenario de HagiCode nommé Ember Keep, listant trois héros en cours avec leur niveau, leur progression et le texte du récit.',
|
|
30
30
|
},
|
|
31
31
|
],
|
|
32
32
|
windowsLabel: 'Télécharger pour Windows',
|
|
@@ -22,7 +22,7 @@ export interface ShowcaseGlossaryEntry {
|
|
|
22
22
|
* substrings so inflected forms count. Seeded from the product locale files in `repos/web/src/locales/<locale>/`
|
|
23
23
|
* (agent, workflow, and "Efficient"/"Smart" strings) and the existing Docs wording. Where the product keeps the
|
|
24
24
|
* English word (zh-CN and zh-Hant "Agent"), the English word is the approved term. `HagiCode`, `OpenSpec`,
|
|
25
|
-
* `Hero
|
|
25
|
+
* `Hero Scenario`, `Microsoft Store`, and `Windows` are pinned untranslated in every locale and are not listed here.
|
|
26
26
|
* Internal to the catalog: it is not part of the package's public entry points.
|
|
27
27
|
*/
|
|
28
28
|
export declare const GLOSSARY: Readonly<Record<string, ShowcaseGlossaryEntry>>;
|
|
@@ -13,7 +13,7 @@ import zhHant from './zh-Hant.js';
|
|
|
13
13
|
* substrings so inflected forms count. Seeded from the product locale files in `repos/web/src/locales/<locale>/`
|
|
14
14
|
* (agent, workflow, and "Efficient"/"Smart" strings) and the existing Docs wording. Where the product keeps the
|
|
15
15
|
* English word (zh-CN and zh-Hant "Agent"), the English word is the approved term. `HagiCode`, `OpenSpec`,
|
|
16
|
-
* `Hero
|
|
16
|
+
* `Hero Scenario`, `Microsoft Store`, and `Windows` are pinned untranslated in every locale and are not listed here.
|
|
17
17
|
* Internal to the catalog: it is not part of the package's public entry points.
|
|
18
18
|
*/
|
|
19
19
|
export const GLOSSARY = {
|
|
@@ -25,8 +25,8 @@ export default {
|
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
id: 'heroes',
|
|
28
|
-
caption: 'Hero
|
|
29
|
-
alt: 'HagiCode の Hero
|
|
28
|
+
caption: 'Hero Scenario:ヒーローが作業を進め、進行状況・レベル・物語を見守れます。',
|
|
29
|
+
alt: 'HagiCode の Hero Scenario パネル「Ember Keep」。実行中の 3 人のヒーローのレベル、進行状況、物語のテキストが並ぶ。',
|
|
30
30
|
},
|
|
31
31
|
],
|
|
32
32
|
windowsLabel: 'Windows 版をダウンロード',
|
|
@@ -25,8 +25,8 @@ export default {
|
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
id: 'heroes',
|
|
28
|
-
caption: 'Hero
|
|
29
|
-
alt: 'Ember Keep이라는 이름의 HagiCode Hero
|
|
28
|
+
caption: 'Hero Scenario: 영웅이 작업을 진행하고, 당신은 진행 상황과 레벨, 이야기를 지켜봅니다.',
|
|
29
|
+
alt: 'Ember Keep이라는 이름의 HagiCode Hero Scenario 패널. 실행 중인 영웅 세 명의 레벨, 진행률, 이야기 문구가 표시됩니다.',
|
|
30
30
|
},
|
|
31
31
|
],
|
|
32
32
|
windowsLabel: 'Windows용 다운로드',
|
|
@@ -25,8 +25,8 @@ export default {
|
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
id: 'heroes',
|
|
28
|
-
caption: 'Hero
|
|
29
|
-
alt: 'Painel Hero
|
|
28
|
+
caption: 'Hero Scenario: os heróis tocam o trabalho enquanto você acompanha progresso, níveis e história.',
|
|
29
|
+
alt: 'Painel Hero Scenario do HagiCode chamado Ember Keep, com três heróis em execução e seu nível, progresso e texto da história.',
|
|
30
30
|
},
|
|
31
31
|
],
|
|
32
32
|
windowsLabel: 'Baixar para Windows',
|
|
@@ -25,8 +25,8 @@ export default {
|
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
id: 'heroes',
|
|
28
|
-
caption: 'Hero
|
|
29
|
-
alt: 'Панель Hero
|
|
28
|
+
caption: 'Hero Scenario: герои ведут работу, а вы следите за прогрессом, уровнями и сюжетом.',
|
|
29
|
+
alt: 'Панель Hero Scenario в HagiCode под названием Ember Keep: три работающих героя с уровнем, прогрессом и текстом сюжета.',
|
|
30
30
|
},
|
|
31
31
|
],
|
|
32
32
|
windowsLabel: 'Скачать для Windows',
|
|
@@ -25,8 +25,8 @@ export default {
|
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
id: 'heroes',
|
|
28
|
-
caption: 'Hero
|
|
29
|
-
alt: 'HagiCode Hero
|
|
28
|
+
caption: 'Hero Scenario:英雄推进工作,你随时查看进度、等级与剧情。',
|
|
29
|
+
alt: 'HagiCode Hero Scenario 面板截图,名为 Ember Keep,列出三位运行中的英雄及其等级、进度与剧情文字。',
|
|
30
30
|
},
|
|
31
31
|
],
|
|
32
32
|
windowsLabel: '下载 Windows 版',
|
|
@@ -25,8 +25,8 @@ export default {
|
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
id: 'heroes',
|
|
28
|
-
caption: 'Hero
|
|
29
|
-
alt: 'HagiCode Hero
|
|
28
|
+
caption: 'Hero Scenario:英雄推進工作,你隨時查看進度、等級與劇情。',
|
|
29
|
+
alt: 'HagiCode Hero Scenario 面板畫面,名為 Ember Keep,列出三位執行中的英雄及其等級、進度與劇情文字。',
|
|
30
30
|
},
|
|
31
31
|
],
|
|
32
32
|
windowsLabel: '下載 Windows 版',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hagicode/hagilight-starlight",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.1-dev.138.1.3a7d332",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Starlight plugin and components for HagiCode documentation",
|
|
6
6
|
"repository": {
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"assets/showcase/*"
|
|
54
54
|
],
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@hagicode/hagilight-core": "0.13.
|
|
56
|
+
"@hagicode/hagilight-core": "0.13.1-dev.138.1.3a7d332"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
59
|
"@astrojs/starlight": "^0.42.4",
|