@hagicode/hagilight-starlight 0.21.0 → 0.21.1-dev.203.1.69dc8e7

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/README.md CHANGED
@@ -173,7 +173,7 @@ To check a deployed site, run `curl -sI https://<site>/_astro/<file>.avif` with
173
173
 
174
174
  The copy and assets mirror `repos/web` and `repos/docs` in the HagiCode monorepo, which this package never edits.
175
175
 
176
- - **Copy:** edit `src/article-promotion-copy/<locale>.ts` (every locale must keep the same fields and feature 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.
176
+ - **Copy:** edit `src/article-promotion-copy/<locale>.ts` (every locale must keep the same fields and feature ids). Terminology is pinned in `GLOSSARY` in `src/article-promotion-copy/index.ts`, seeded from the product locale files in `repos/web/web/src/locales/<locale>/`. `HagiCode`, `OpenSpec`, `Hero Scenario`, `Microsoft Store`, and `Windows` are never translated.
177
177
  - **Images:** the article footer shows no image now. To show one again, 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 its `manifest.json` entry, and import it in `ArticlePromotion.astro`. `pnpm test` (`test/showcase-assets.test.mjs`) checks that the manifest, the files, and the component imports agree.
178
178
  - **Random illustration (R2 pool):** the `cat-head` entry in `assets/showcase/manifest.json` carries `source` (`repo: img-gen`, `album`, `objectKey`), its audit, and `pool` (`album`, `maxBytes` 200 KiB, `entries` with `key` and `bytes`). `ArticlePromotion.astro` leads the primary "visit HagiCode" call to action with the illustration as a decorative, captionless `<picture>`. When the `randomAvatar` option is on it carries `data-random-fan` and renders `ArticlePromotionPicker.astro`, so the button shows the turning fan; when it is off the illustration stays a static round avatar. Refresh: take keys from the `cat-head-gallery` album `index.json`, keep 12 to 200 unique keys each within `maxBytes`, audit them text-free and current, update `pool.entries`, and keep the footer pool in `repos/hagilight/packages/core/assets/footer/manifest.json` in step. To rebuild the WebP, resize the source to 1200 px (lanczos3) and encode at quality 88. `pnpm test` (`test/showcase-assets.test.mjs`) checks the entry, the pool, the byte caps and the budgets.
179
179
  - **Options:** `hagicodePromotion: { randomAvatar: false }` keeps the default illustration and loads no picker; `footer: { avatar: false }` removes the footer avatar, and `footer: { randomAvatar: false }` keeps its default. A site whose `img-src` policy blocks `https://img-gen.hagicode.com` keeps the defaults.
@@ -21,7 +21,7 @@ export interface ShowcaseGlossaryEntry {
21
21
  }
22
22
  /**
23
23
  * Approved terminology per locale, checked by `test/article-promotion.test.mjs`. Terms are matched as
24
- * substrings so inflected forms count. Seeded from the product locale files in `repos/web/src/locales/<locale>/`
24
+ * substrings so inflected forms count. Seeded from the product locale files in `repos/web/web/src/locales/<locale>/`
25
25
  * (agent, workflow, and "Efficient"/"Smart" strings) and the existing Docs wording. Where the product keeps the
26
26
  * English word (zh-CN and zh-Hant "Agent"), the English word is the approved term. `HagiCode`, `OpenSpec`,
27
27
  * `Hero Scenario`, `Microsoft Store`, and `Windows` are pinned untranslated in every locale and are not listed here.
@@ -10,7 +10,7 @@ import zhCN from './zh-CN.js';
10
10
  import zhHant from './zh-Hant.js';
11
11
  /**
12
12
  * Approved terminology per locale, checked by `test/article-promotion.test.mjs`. Terms are matched as
13
- * substrings so inflected forms count. Seeded from the product locale files in `repos/web/src/locales/<locale>/`
13
+ * substrings so inflected forms count. Seeded from the product locale files in `repos/web/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
16
  * `Hero Scenario`, `Microsoft Store`, and `Windows` are pinned untranslated in every locale and are not listed here.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hagicode/hagilight-starlight",
3
- "version": "0.21.0",
3
+ "version": "0.21.1-dev.203.1.69dc8e7",
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.21.0"
56
+ "@hagicode/hagilight-core": "0.21.1-dev.203.1.69dc8e7"
57
57
  },
58
58
  "peerDependencies": {
59
59
  "@astrojs/starlight": "^0.42.4",