@takazudo/zudo-doc 5.22.1 → 5.23.0

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
@@ -8,6 +8,18 @@ The format is based on Keep a Changelog, and release notes are generated from th
8
8
 
9
9
  No unreleased changes.
10
10
 
11
+ ## [5.23.0] - 2026-09-13
12
+
13
+ ### Features
14
+
15
+ - Added strict `zudo-doc check images` validation for missing local image and media references in built HTML. (90e513fa8)
16
+ - Expanded asset scanning to relative `src` values, `srcset`, media elements, SVG references, `<base href>`, and containment-safe path resolution. (9f1cf6e31)
17
+
18
+ ### Bug Fixes
19
+
20
+ - Made generated Claude resource frontmatter stable across the MDX formatter, including legacy YAML scalar aliases. (9165c0547, db90c9685)
21
+ - Covered qualified SVG `xlink:href`, pnpm argument separators, empty base URLs, and literal percent characters in page paths. (48b0aa781, 994e6aec3, c9b772b76)
22
+
11
23
  ## [5.22.1] - 2026-09-13
12
24
 
13
25
  ### Bug Fixes
package/bin/zudo-doc.mjs CHANGED
@@ -3,20 +3,16 @@
3
3
  //
4
4
  // Package bin: `zudo-doc eject <component>` swizzle CLI, plus
5
5
  // `zudo-doc theme list|apply <slug>` (issue #2824; ADR
6
- // docs/adr/theme-packs.md), plus `zudo-doc eject logo` (issue #3050; epic
7
- // #3047).
6
+ // docs/adr/theme-packs.md), `zudo-doc eject logo` (issue #3050; epic #3047),
7
+ // and the strict `zudo-doc check images` post-build gate (issue #4185).
8
8
  //
9
9
  // Self-contained ESM — runs on plain `node` with NO `tsx` requirement. The
10
- // eject, theme-cli, and eject-logo logic are imported from the package's
11
- // COMPILED `../dist/eject/index.js` / `../dist/theme-cli/index.js` /
12
- // `../dist/eject-logo/index.js`, and the only runtime deps are `minimist` +
13
- // `picocolors` (declared deps of this package, so they are present
14
- // transitively in any consumer's node_modules). This is the key difference
15
- // from the tsx-runner pattern used by `bin/tags-audit.mjs`: tags-audit must
16
- // load the *project's* TypeScript config files at runtime (hence tsx),
17
- // whereas eject/theme-cli/eject-logo only copy files / rewrite text — no TS
18
- // eval needed — so all three work in a default generated project that never
19
- // installed tsx (#2367).
10
+ // eject, theme-cli, eject-logo, and image-check logic are imported from the
11
+ // package's COMPILED `../dist/...` files. The bin never loads package
12
+ // TypeScript source or requires `tsx`. This is the key difference from the
13
+ // tsx-runner pattern used by `bin/tags-audit.mjs`: tags-audit must load the
14
+ // *project's* TypeScript config files at runtime (hence tsx), whereas these
15
+ // commands only copy files, rewrite text, or scan already-built HTML.
20
16
  //
21
17
  // `eject logo` is special-cased below, BEFORE the EJECTABLE lookup — it is
22
18
  // NOT a source-copy swizzle (EJECTABLE's contract), it renders a fresh SVG
@@ -27,20 +23,37 @@
27
23
  // zudo-doc eject logo # render public/img/logo.svg + rewrite the logo field
28
24
  // zudo-doc theme list # list installed theme packs + the active one
29
25
  // zudo-doc theme apply <slug> # rewrite zfb.config.ts's themePack field
26
+ // zudo-doc check images # fail when built HTML references a missing asset
30
27
  // zudo-doc --help # show help
31
28
 
32
29
  import minimist from "minimist";
33
30
  import pc from "picocolors";
31
+ import { existsSync, readFileSync, statSync } from "node:fs";
32
+ import { resolve } from "node:path";
34
33
  import { eject, EJECTABLE } from "../dist/eject/index.js";
35
34
  import { ejectLogo } from "../dist/eject-logo/index.js";
35
+ import { scanImgSrcs } from "../dist/plugins/internal/img-src-check/index.js";
36
36
  import { applyThemePack, formatThemeList, listThemePacks } from "../dist/theme-cli/index.js";
37
37
 
38
- const argv = minimist(process.argv.slice(2), {
39
- string: ["seed"],
38
+ const cliArgs = process.argv.slice(2);
39
+ if (cliArgs[0] === "check" && cliArgs[1] === "images" && cliArgs[2] === "--") {
40
+ cliArgs.splice(2, 1);
41
+ }
42
+
43
+ const argv = minimist(cliArgs, {
44
+ string: ["allowlist", "base", "dist", "seed"],
40
45
  boolean: ["help", "force"],
41
46
  alias: { h: "help" },
42
47
  });
43
48
 
49
+ const CHECK_IMAGES_USAGE = `Usage: zudo-doc check images [options]
50
+
51
+ Options:
52
+ -h, --help Show this help message
53
+ --dist <dir> Built HTML directory (default: dist)
54
+ --base <path> Public URL base (default: /)
55
+ --allowlist <file> File of <page>:<url> exceptions`;
56
+
44
57
  function printHelp() {
45
58
  const validNames = Object.keys(EJECTABLE).sort().join(", ");
46
59
  console.log(`
@@ -54,6 +67,8 @@ ${pc.bold("Subcommands:")}
54
67
  logo field to point at it.
55
68
  theme list List the installed theme packs and which one is active.
56
69
  theme apply <slug> Rewrite zfb.config.ts's themePack field to <slug>.
70
+ check images [options]
71
+ Fail when built HTML references a missing local asset.
57
72
 
58
73
  ${pc.bold("Ejectable components:")}
59
74
  ${validNames}
@@ -78,9 +93,16 @@ ${pc.bold("Examples:")}
78
93
 
79
94
  ${pc.dim("# Switch to the foundry theme pack")}
80
95
  zudo-doc theme apply foundry
96
+
97
+ ${pc.dim("# Check built HTML for missing local images and assets")}
98
+ zudo-doc check images
81
99
  `);
82
100
  }
83
101
 
102
+ function printCheckImagesHelp() {
103
+ console.log(CHECK_IMAGES_USAGE);
104
+ }
105
+
84
106
  async function runEject(componentArg) {
85
107
  if (!componentArg) {
86
108
  console.error(
@@ -152,7 +174,100 @@ async function runTheme(themeArgs) {
152
174
  process.exit(1);
153
175
  }
154
176
 
177
+ function readImageAllowlist(allowlistPath) {
178
+ if (!allowlistPath) return new Set();
179
+
180
+ // Keep this parser in lockstep with scripts/check-links.js: trim each line,
181
+ // ignore blank/comment-only lines, and compare the remaining entries
182
+ // literally. The image checker key is the compact `<page>:<url>` form.
183
+ const path = resolve(process.cwd(), allowlistPath);
184
+ if (!existsSync(path)) return new Set();
185
+ const text = readFileSync(path, "utf8");
186
+ return new Set(
187
+ text
188
+ .split("\n")
189
+ .map((line) => line.trim())
190
+ .filter((line) => line.length > 0 && !line.startsWith("#")),
191
+ );
192
+ }
193
+
194
+ function imageAllowlistKey(reference) {
195
+ return `${reference.pagePath}:${reference.src}`;
196
+ }
197
+
198
+ function runCheckImages(checkArgs) {
199
+ const knownArgvKeys = new Set(["_", "allowlist", "base", "dist", "force", "h", "help"]);
200
+ const unknownOption = Object.keys(argv).find((key) => !knownArgvKeys.has(key));
201
+ const unsupportedOption = unknownOption ?? (argv.force ? "force" : undefined);
202
+ if (unsupportedOption !== undefined) {
203
+ console.error(pc.red(`Unknown option "--${unsupportedOption}".`) + `\n${CHECK_IMAGES_USAGE}`);
204
+ process.exit(1);
205
+ }
206
+
207
+ const [unexpected] = checkArgs;
208
+ if (unexpected !== undefined) {
209
+ console.error(pc.red(`Unexpected argument "${unexpected}".`) + `\n${CHECK_IMAGES_USAGE}`);
210
+ process.exit(1);
211
+ }
212
+
213
+ const distArg = argv.dist ?? "dist";
214
+ const baseArg = argv.base ?? "/";
215
+ const allowlistArg = argv.allowlist;
216
+ if (typeof distArg !== "string" || distArg.length === 0) {
217
+ console.error(pc.red("Missing value for --dist.") + `\n${CHECK_IMAGES_USAGE}`);
218
+ process.exit(1);
219
+ }
220
+ if (typeof baseArg !== "string" || baseArg.length === 0) {
221
+ console.error(pc.red("Missing value for --base.") + `\n${CHECK_IMAGES_USAGE}`);
222
+ process.exit(1);
223
+ }
224
+ if (allowlistArg !== undefined && (typeof allowlistArg !== "string" || allowlistArg.length === 0)) {
225
+ console.error(pc.red("Missing value for --allowlist.") + `\n${CHECK_IMAGES_USAGE}`);
226
+ process.exit(1);
227
+ }
228
+
229
+ const outDir = resolve(process.cwd(), distArg ?? "dist");
230
+ try {
231
+ if (!statSync(outDir).isDirectory()) throw new Error("not a directory");
232
+ } catch {
233
+ console.error(
234
+ pc.red(`Build output directory not found: ${outDir}.`) +
235
+ "\nRun the build first, then run `zudo-doc check images` again.",
236
+ );
237
+ process.exit(1);
238
+ }
239
+
240
+ const allowlist = readImageAllowlist(allowlistArg);
241
+ const result = scanImgSrcs({ outDir, base: baseArg });
242
+ const broken = result.broken.filter((reference) => !allowlist.has(imageAllowlistKey(reference)));
243
+
244
+ for (const reference of broken) {
245
+ // The CLI's contract is deliberately compact and stable, unlike the
246
+ // plugin logger's prefixed prose.
247
+ const element = reference.element ? `${reference.element} ` : "";
248
+ console.log(`${reference.pagePath}: ${element}${reference.src} (${reference.reason})`);
249
+ }
250
+
251
+ if (broken.length > 0) {
252
+ console.log(
253
+ `Found ${broken.length} broken image reference${broken.length === 1 ? "" : "s"} in ${result.htmlFileCount} HTML file${result.htmlFileCount === 1 ? "" : "s"} after allowlist.`,
254
+ );
255
+ process.exit(1);
256
+ }
257
+
258
+ const allowlisted = result.broken.length - broken.length;
259
+ const allowlistNote = allowlisted > 0 ? `; ${allowlisted} allowlisted` : "";
260
+ console.log(
261
+ `No broken image references found (${result.htmlFileCount} HTML file${result.htmlFileCount === 1 ? "" : "s"}, ${result.imageCount} local reference${result.imageCount === 1 ? "" : "s"}${allowlistNote}).`,
262
+ );
263
+ }
264
+
155
265
  async function main() {
266
+ if (argv._[0] === "check" && argv._[1] === "images" && argv["help"]) {
267
+ printCheckImagesHelp();
268
+ process.exit(0);
269
+ }
270
+
156
271
  if (argv["help"] || argv._.length === 0) {
157
272
  printHelp();
158
273
  process.exit(0);
@@ -163,6 +278,7 @@ async function main() {
163
278
  if (subcommand === "eject" && rest[0] === "logo") return runEjectLogo();
164
279
  if (subcommand === "eject") return runEject(rest[0]);
165
280
  if (subcommand === "theme") return runTheme(rest);
281
+ if (subcommand === "check" && rest[0] === "images") return runCheckImages(rest.slice(1));
166
282
 
167
283
  console.error(
168
284
  pc.red(`Unknown subcommand "${subcommand}".`) +
@@ -6,9 +6,8 @@ import {
6
6
  downgradeRepoRelativeLinks,
7
7
  ensureDir,
8
8
  escapeForMdx,
9
- escapeTitle,
10
- findNamedFiles,
11
9
  formatFrontmatterString,
10
+ findNamedFiles,
12
11
  generateSkillsCategory,
13
12
  parseFrontmatter,
14
13
  removeGeneratedIndex,
@@ -36,10 +35,6 @@ function defaultResourceLabel(config, key, fallbackLiteral) {
36
35
  fallbackLiteral
37
36
  );
38
37
  }
39
- function formatClaudeFrontmatterString(value) {
40
- const formatted = formatFrontmatterString(value);
41
- return formatted === value ? JSON.stringify(value) : formatted;
42
- }
43
38
  function generateClaudemdDocs(config) {
44
39
  const projectRoot = config.projectRoot ?? config.claudeDir;
45
40
  const scanRoot = config.scanRoot ?? projectRoot;
@@ -81,10 +76,10 @@ function generateClaudemdDocs(config) {
81
76
  emittedSlugs.set(item.slug, item.relPath);
82
77
  const content = fs.readFileSync(item.absPath, "utf8");
83
78
  const mdx = `---
84
- title: "${escapeTitle(item.displayPath)}"
85
- description: "CLAUDE.md at ${escapeTitle(item.displayPath)}"
79
+ title: ${formatFrontmatterString(item.displayPath)}
80
+ description: ${formatFrontmatterString(`CLAUDE.md at ${item.displayPath}`)}
86
81
  sidebar_position: ${index + 1}
87
- sidebar_label: "${escapeTitle(item.relPath)}"
82
+ sidebar_label: ${formatFrontmatterString(item.relPath)}
88
83
  generated: true
89
84
  ---
90
85
 
@@ -102,7 +97,8 @@ ${escapeForMdx(downgradeRepoRelativeLinks(content.trim()))}
102
97
  config,
103
98
  "resource.claudeMd.description",
104
99
  "Project-specific instructions"
105
- )
100
+ ),
101
+ formatFrontmatterString
106
102
  );
107
103
  return items;
108
104
  }
@@ -127,9 +123,9 @@ function generateCommandsDocs(config) {
127
123
  const description = parsed.data.description || "";
128
124
  items.push({ name, description });
129
125
  const mdx = `---
130
- title: "${escapeTitle(name)}"
131
- description: "${escapeTitle(description)}"
132
- sidebar_label: "${escapeTitle(name)}"
126
+ title: ${formatFrontmatterString(name)}
127
+ description: ${formatFrontmatterString(description)}
128
+ sidebar_label: ${formatFrontmatterString(name)}
133
129
  generated: true
134
130
  ---
135
131
 
@@ -146,7 +142,8 @@ ${escapeForMdx(downgradeRepoRelativeLinks(parsed.content.trim()))}
146
142
  config,
147
143
  "resource.claudeCommands.description",
148
144
  "Custom slash commands"
149
- )
145
+ ),
146
+ formatFrontmatterString
150
147
  );
151
148
  return items;
152
149
  }
@@ -161,7 +158,8 @@ function generateSkillsDocs(config) {
161
158
  "resource.claudeSkills.description",
162
159
  "Skill packages"
163
160
  ),
164
- sourceLabel: ".claude/skills"
161
+ sourceLabel: ".claude/skills",
162
+ renderFrontmatterString: formatFrontmatterString
165
163
  });
166
164
  }
167
165
  function generateAgentsDocs(config) {
@@ -189,9 +187,9 @@ function generateAgentsDocs(config) {
189
187
  const modelBadge = model ? `**Model:** \`${model}\`
190
188
  ` : "";
191
189
  const mdx = `---
192
- title: "${escapeTitle(name)}"
193
- description: "${escapeTitle(description)}"
194
- sidebar_label: "${escapeTitle(name)}"
190
+ title: ${formatFrontmatterString(name)}
191
+ description: ${formatFrontmatterString(description)}
192
+ sidebar_label: ${formatFrontmatterString(name)}
195
193
  generated: true
196
194
  ---
197
195
 
@@ -209,7 +207,8 @@ ${escapeForMdx(downgradeRepoRelativeLinks(parsed.content.trim()))}
209
207
  config,
210
208
  "resource.claudeAgents.description",
211
209
  "Custom subagents"
212
- )
210
+ ),
211
+ formatFrontmatterString
213
212
  );
214
213
  return items;
215
214
  }
@@ -259,8 +258,8 @@ function generateOverviewIndex(config, {
259
258
  }
260
259
  function renderOverviewIndex(config, locale, categorySlugs) {
261
260
  return `---
262
- title: ${formatClaudeFrontmatterString(resourceLabel(config, locale, "resource.claude.title", "Claude"))}
263
- description: ${formatClaudeFrontmatterString(resourceLabel(
261
+ title: ${formatFrontmatterString(resourceLabel(config, locale, "resource.claude.title", "Claude"))}
262
+ description: ${formatFrontmatterString(resourceLabel(
264
263
  config,
265
264
  locale,
266
265
  "resource.claude.description",
@@ -341,7 +340,7 @@ function writeLocaleCategoryIndex(config, locale, localeDir, categoryDir, presen
341
340
  resourceLabel(config, locale, labelKey, fallbackLabel),
342
341
  position,
343
342
  resourceLabel(config, locale, descriptionKey, fallbackDescription),
344
- formatClaudeFrontmatterString,
343
+ formatFrontmatterString,
345
344
  (absolutePath, content) => writeGeneratedIndex(absolutePath, content, `/docs/${categoryDir}/`)
346
345
  );
347
346
  }
@@ -8,8 +8,10 @@ export interface ImgSrcCheckLogger {
8
8
  export interface BrokenImgSrc {
9
9
  /** HTML page path relative to the build output directory. */
10
10
  pagePath: string;
11
- /** The decoded attribute value as authored in the rendered HTML. */
11
+ /** The individual URL value as authored in the rendered HTML. */
12
12
  src: string;
13
+ /** The element and attribute that supplied `src` (for example `img[src]`). */
14
+ element?: string;
13
15
  /** Why the reference was considered broken. */
14
16
  reason: string;
15
17
  }
@@ -17,7 +19,7 @@ export interface BrokenImgSrc {
17
19
  export interface ImgSrcCheckResult {
18
20
  /** Number of HTML files visited under `outDir`. */
19
21
  htmlFileCount: number;
20
- /** Number of site-absolute `src` attributes inspected. */
22
+ /** Number of local media/asset references inspected. */
21
23
  imageCount: number;
22
24
  /** Every broken occurrence, including duplicate references. */
23
25
  broken: BrokenImgSrc[];
@@ -46,7 +48,7 @@ export declare function extractImgSrcs(html: string): string[];
46
48
  /** Normalize a zfb base to a slash-delimited URL prefix. */
47
49
  export declare function normalizeImgSrcBase(base: string | undefined): string;
48
50
  /**
49
- * Walk every built HTML file and validate its site-absolute image sources.
51
+ * Walk every built HTML file and validate its local media/asset references.
50
52
  *
51
53
  * This is intentionally synchronous: zfb's postBuild hook is async-compatible
52
54
  * but the operation is a deterministic local filesystem walk, and a sync
@@ -2,7 +2,9 @@ import { realpathSync, readdirSync, readFileSync, statSync } from "node:fs";
2
2
  import { relative, resolve, sep } from "node:path";
3
3
  import { parse } from "parse5";
4
4
  const HTML_NAMESPACE = "http://www.w3.org/1999/xhtml";
5
+ const SVG_NAMESPACE = "http://www.w3.org/2000/svg";
5
6
  const SCHEME_RE = /^[A-Za-z][A-Za-z0-9+.-]*:/u;
7
+ const SCANNER_ORIGIN = "https://zudo-doc-img-src-check.invalid";
6
8
  function extractImgSrcs(html) {
7
9
  const document = parse(html);
8
10
  const srcs = [];
@@ -32,27 +34,241 @@ function isWithin(root, candidate) {
32
34
  const rel = relative(root, candidate);
33
35
  return rel === "" || rel !== ".." && !rel.startsWith(`..${sep}`) && !rel.startsWith(sep);
34
36
  }
35
- function stripQueryAndFragment(src) {
36
- const query = src.indexOf("?");
37
- const fragment = src.indexOf("#");
38
- const end = [query, fragment].filter((index) => index >= 0).sort((a, b) => a - b)[0];
39
- return end === void 0 ? src : src.slice(0, end);
37
+ function attributeValue(element, name) {
38
+ return element.attrs.find((attribute) => {
39
+ const qualifiedName = attribute.prefix ? `${attribute.prefix}:${attribute.name}` : attribute.name;
40
+ return qualifiedName.toLowerCase() === name;
41
+ })?.value;
40
42
  }
41
- function resolveImgSrc(src, outDir, base, canonicalOutDir) {
43
+ function addAssetReference(references, element, attribute, value) {
44
+ if (value !== void 0) references.push({ src: value, element: `${element}[${attribute}]` });
45
+ }
46
+ function isHtmlElement(element, tagName) {
47
+ return element.namespaceURI === HTML_NAMESPACE && element.tagName.toLowerCase() === tagName;
48
+ }
49
+ function isSvgElement(element, tagName) {
50
+ return element.namespaceURI === SVG_NAMESPACE && element.tagName.toLowerCase() === tagName;
51
+ }
52
+ function parseSrcsetCandidates(value) {
53
+ const candidates = [];
54
+ let position = 0;
55
+ const isAsciiWhitespace = (character) => character === " " || character === " " || character === "\n" || character === "\f" || character === "\r";
56
+ const skipSplittingWhitespaceAndCommas = () => {
57
+ while (position < value.length) {
58
+ const character = value[position];
59
+ if (!isAsciiWhitespace(character) && character !== ",") break;
60
+ position += 1;
61
+ }
62
+ };
63
+ const parseDescriptors = (descriptors) => {
64
+ let width;
65
+ let density;
66
+ let futureCompatH = false;
67
+ for (const descriptor of descriptors) {
68
+ if (/^\d+w$/u.test(descriptor)) {
69
+ if (width !== void 0 || density !== void 0) return false;
70
+ const parsed = Number.parseInt(descriptor.slice(0, -1), 10);
71
+ if (!Number.isFinite(parsed) || parsed === 0) return false;
72
+ width = parsed;
73
+ continue;
74
+ }
75
+ if (/^-?(?:\d+(?:\.\d+)?|\.\d+)(?:[Ee][+-]?\d+)?x$/u.test(descriptor)) {
76
+ if (width !== void 0 || density !== void 0 || futureCompatH) return false;
77
+ const parsed = Number.parseFloat(descriptor.slice(0, -1));
78
+ if (!Number.isFinite(parsed) || parsed < 0) return false;
79
+ density = parsed;
80
+ continue;
81
+ }
82
+ if (/^\d+h$/u.test(descriptor)) {
83
+ if (futureCompatH || density !== void 0) return false;
84
+ const parsed = Number.parseInt(descriptor.slice(0, -1), 10);
85
+ if (!Number.isFinite(parsed) || parsed === 0) return false;
86
+ futureCompatH = true;
87
+ continue;
88
+ }
89
+ return false;
90
+ }
91
+ return !futureCompatH || width !== void 0;
92
+ };
93
+ while (position < value.length) {
94
+ skipSplittingWhitespaceAndCommas();
95
+ if (position >= value.length) break;
96
+ const urlStart = position;
97
+ while (position < value.length && !isAsciiWhitespace(value[position])) position += 1;
98
+ let url = value.slice(urlStart, position);
99
+ const hadTrailingComma = url.endsWith(",");
100
+ if (hadTrailingComma) url = url.replace(/,+$/u, "");
101
+ if (url.length === 0) {
102
+ continue;
103
+ }
104
+ const descriptors = [];
105
+ if (!hadTrailingComma) {
106
+ let current = "";
107
+ let inParens = false;
108
+ let descriptorDone = false;
109
+ while (!descriptorDone) {
110
+ const character = value[position];
111
+ if (inParens) {
112
+ if (character === void 0) {
113
+ if (current) descriptors.push(current);
114
+ descriptorDone = true;
115
+ } else {
116
+ current += character;
117
+ position += 1;
118
+ if (character === ")") inParens = false;
119
+ }
120
+ continue;
121
+ }
122
+ if (isAsciiWhitespace(character)) {
123
+ if (current) {
124
+ descriptors.push(current);
125
+ current = "";
126
+ }
127
+ while (isAsciiWhitespace(value[position])) position += 1;
128
+ if (value[position] === "," || position >= value.length) {
129
+ descriptorDone = true;
130
+ }
131
+ continue;
132
+ }
133
+ if (character === ",") {
134
+ position += 1;
135
+ if (current) descriptors.push(current);
136
+ descriptorDone = true;
137
+ continue;
138
+ }
139
+ if (character === void 0) {
140
+ if (current) descriptors.push(current);
141
+ descriptorDone = true;
142
+ continue;
143
+ }
144
+ current += character;
145
+ position += 1;
146
+ if (character === "(") inParens = true;
147
+ }
148
+ }
149
+ if (parseDescriptors(descriptors)) candidates.push(url);
150
+ }
151
+ return candidates;
152
+ }
153
+ function extractAssetReferences(document) {
154
+ const references = [];
155
+ const baseHrefs = [];
156
+ const visit = (node, insideTemplate) => {
157
+ if (!("tagName" in node)) return;
158
+ const element = node;
159
+ if (!insideTemplate && isHtmlElement(element, "base")) {
160
+ const href = attributeValue(element, "href");
161
+ if (href !== void 0) baseHrefs.push(href);
162
+ }
163
+ if (isHtmlElement(element, "img")) {
164
+ addAssetReference(references, "img", "src", attributeValue(element, "src"));
165
+ const srcset = attributeValue(element, "srcset");
166
+ if (srcset !== void 0) {
167
+ for (const candidate of parseSrcsetCandidates(srcset)) {
168
+ addAssetReference(references, "img", "srcset", candidate);
169
+ }
170
+ }
171
+ } else if (isHtmlElement(element, "source")) {
172
+ addAssetReference(references, "source", "src", attributeValue(element, "src"));
173
+ const srcset = attributeValue(element, "srcset");
174
+ if (srcset !== void 0) {
175
+ for (const candidate of parseSrcsetCandidates(srcset)) {
176
+ addAssetReference(references, "source", "srcset", candidate);
177
+ }
178
+ }
179
+ } else if (isHtmlElement(element, "video")) {
180
+ addAssetReference(references, "video", "src", attributeValue(element, "src"));
181
+ addAssetReference(references, "video", "poster", attributeValue(element, "poster"));
182
+ } else if (isHtmlElement(element, "audio")) {
183
+ addAssetReference(references, "audio", "src", attributeValue(element, "src"));
184
+ } else if (isHtmlElement(element, "track")) {
185
+ addAssetReference(references, "track", "src", attributeValue(element, "src"));
186
+ } else if (isHtmlElement(element, "input")) {
187
+ const type = attributeValue(element, "type");
188
+ if (type?.trim().toLowerCase() === "image") {
189
+ addAssetReference(references, "input", "src", attributeValue(element, "src"));
190
+ }
191
+ } else if (isSvgElement(element, "image")) {
192
+ addAssetReference(references, "image", "href", attributeValue(element, "href"));
193
+ addAssetReference(references, "image", "xlink:href", attributeValue(element, "xlink:href"));
194
+ }
195
+ for (const child of element.childNodes) visit(child, insideTemplate);
196
+ if (element.nodeName === "template") {
197
+ const template = element;
198
+ for (const child of template.content.childNodes) visit(child, true);
199
+ }
200
+ };
201
+ for (const child of document.childNodes) visit(child, false);
202
+ return { references, baseHrefs };
203
+ }
204
+ function makePageUrl(pagePath, base) {
205
+ const pageName = /(?:^|\/)index\.html$/iu.test(pagePath) ? pagePath.slice(0, -"index.html".length) : pagePath;
206
+ const pathname = `${base}${pageName}`;
207
+ const pageUrl = new URL(SCANNER_ORIGIN);
208
+ const filePathname = (pathname.startsWith("/") ? pathname : `/${pathname}`).replaceAll(
209
+ "%",
210
+ "%25"
211
+ );
212
+ pageUrl.pathname = filePathname;
213
+ return pageUrl;
214
+ }
215
+ function effectiveDocumentBase(pageUrl, hrefs) {
216
+ for (const href of hrefs) {
217
+ const value = href.trim();
218
+ try {
219
+ return new URL(value, pageUrl);
220
+ } catch {
221
+ }
222
+ }
223
+ return pageUrl;
224
+ }
225
+ function hasAbsolutePathTraversal(value) {
226
+ if (!value.startsWith("/") || value.startsWith("//")) return false;
227
+ const pathPart = value.split(/[?#]/u, 1)[0] ?? value;
228
+ let decodedPath;
229
+ try {
230
+ decodedPath = decodeURIComponent(pathPart);
231
+ } catch {
232
+ return false;
233
+ }
234
+ const stack = [];
235
+ for (const segment of decodedPath.replaceAll("\\", "/").split("/")) {
236
+ if (!segment || segment === ".") continue;
237
+ if (segment === "..") {
238
+ if (stack.length === 0) return true;
239
+ stack.pop();
240
+ } else {
241
+ stack.push(segment);
242
+ }
243
+ }
244
+ return false;
245
+ }
246
+ function resolveImgSrc(src, outDir, base, canonicalOutDir, documentBase) {
42
247
  const value = src.trim();
43
- if (!value.startsWith("/") || value.startsWith("//") || SCHEME_RE.test(value)) {
248
+ if (!value || value.startsWith("#") || value.startsWith("//") || SCHEME_RE.test(value)) {
44
249
  return { kind: "skip" };
45
250
  }
46
- const pathPart = stripQueryAndFragment(value);
251
+ if (documentBase.origin !== SCANNER_ORIGIN) return { kind: "skip" };
252
+ let resolvedUrl;
253
+ try {
254
+ resolvedUrl = new URL(value, documentBase);
255
+ } catch {
256
+ return { kind: "broken", reason: "invalid URL" };
257
+ }
258
+ if (resolvedUrl.origin !== SCANNER_ORIGIN) return { kind: "skip" };
259
+ if (hasAbsolutePathTraversal(value)) {
260
+ return { kind: "broken", reason: "resolves outside the build output directory" };
261
+ }
47
262
  let decodedPath;
48
263
  try {
49
- decodedPath = decodeURIComponent(pathPart);
264
+ decodedPath = decodeURIComponent(resolvedUrl.pathname);
50
265
  } catch {
51
266
  return { kind: "broken", reason: "malformed percent escape" };
52
267
  }
53
268
  if (decodedPath.includes("\0")) {
54
269
  return { kind: "broken", reason: "invalid path" };
55
270
  }
271
+ decodedPath = decodedPath.replaceAll("\\", "/");
56
272
  let relativeUrlPath;
57
273
  if (base === "/") {
58
274
  relativeUrlPath = decodedPath.slice(1).replace(/^\/+/, "");
@@ -129,20 +345,24 @@ function scanImgSrcs(options) {
129
345
  for (const htmlFile of htmlFiles) {
130
346
  const pagePath = relative(outDir, htmlFile).split(sep).join("/");
131
347
  const html = readFileSync(htmlFile, "utf8");
132
- if (!/<img\b/iu.test(html)) continue;
133
- for (const src of extractImgSrcs(html)) {
134
- const resolved = resolveImgSrc(src, outDir, base, canonicalOutDir);
348
+ if (!/<(?:img|source|video|audio|track|input|image)\b/iu.test(html)) continue;
349
+ const document = parse(html);
350
+ const parsed = extractAssetReferences(document);
351
+ const documentBase = effectiveDocumentBase(makePageUrl(pagePath, base), parsed.baseHrefs);
352
+ for (const reference of parsed.references) {
353
+ const resolved = resolveImgSrc(reference.src, outDir, base, canonicalOutDir, documentBase);
135
354
  if (resolved.kind === "skip") continue;
136
355
  imageCount += 1;
137
356
  if (resolved.kind === "broken") {
138
- broken.push({ pagePath, src, reason: resolved.reason });
357
+ broken.push({ pagePath, src: reference.src, element: reference.element, reason: resolved.reason });
139
358
  }
140
359
  }
141
360
  }
142
361
  return { htmlFileCount: htmlFiles.length, imageCount, broken };
143
362
  }
144
363
  function formatBrokenImgSrc(reference) {
145
- return `[img-src-check] Broken image source in ${reference.pagePath}: ${reference.src} (${reference.reason})`;
364
+ const element = reference.element ? `${reference.element} ` : "";
365
+ return `[img-src-check] Broken image source in ${reference.pagePath}: ${element}${reference.src} (${reference.reason})`;
146
366
  }
147
367
  function checkImgSrcs(options) {
148
368
  const severity = options.onBroken ?? "warn";
@@ -12,13 +12,14 @@ function escapeTitle(s) {
12
12
  return s.replace(/\\/g, "\\\\").replace(/"/g, '\\"');
13
13
  }
14
14
  function formatFrontmatterString(value) {
15
+ const formatterRequiresQuotes = /["']/.test(value) || /^[?:-]/.test(value) || /^(?:yes|no|on|off)$/iu.test(value) || /^\+?(?:nan|inf(?:inity)?)$/iu.test(value);
15
16
  if (!/[\r\n]/.test(value)) {
16
17
  try {
17
18
  const parsed = matter(`---
18
19
  value: ${value}
19
20
  ---
20
21
  `).data.value;
21
- if (parsed === value) return value;
22
+ if (parsed === value && !formatterRequiresQuotes) return value;
22
23
  } catch {
23
24
  }
24
25
  }
package/dist/safelist.css CHANGED
@@ -1,2 +1,2 @@
1
1
  /* generated by gen-safelist.mjs — do not edit by hand */
2
- @source inline("-domtweaker-enabled -elpath-enabled -left-[calc(var(--spacing-icon-lg)/2)] -link -mb-px -ml-hsp-sm -mt-px -noscript -open -state -state-v2 -state-v3 -state-v4 -translate-x-full 2xl:w-[24px] [&::-webkit-details-marker]:hidden [&_a]:pointer-events-auto [&_a]:text-accent [&_a]:underline [&_li]:mb-0 [&_nav]:mb-0 [asset-viewer] [data-admonition] [data-kbd-shortcut] [data-switcher-launcher] [doc-history-meta] [doc-history] [doc-layout] [img-src-check] [llms-txt] [zudo-doc] a a2 abbr about above absent absolute accent accent- accent:accent- access across activated active actual actually add added admonition admonition- admonition-body admonition-title admonition/callout after after-breadcrumb after-content after-navigate after-sidebar after-title against agent agents ai-chat ai-chat-md ai-chat-trigger alert align align-top all allow allow-same-origin allow-scripts allowed alone already already-executed already-multiline already-picked also alt always an anchor and and/or animate-pulse animate-spin announce ansehen antialiased any anywhere anzeigen app appear application/json application/octet-stream application/pdf application/sql application/toml application/x-httpd-php application/xml application/yaml applied applies apply applying approach approval are area arg argument aria-atomic aria-busy aria-controls aria-current aria-disabled aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-orientation aria-pressed aria-selected aria-valuemax aria-valuemin aria-valuenow arm arms around arrows article as asc ascii aside aspect-[1200/630] aspect-square asset asset- asset-components assets assets/client assistant async at at-rule attach attribute attributes auf author authored auto auto-logo-mask autogenerated availability available avc1 avif avis avoid await away b back backdrop:bg-bg/30 backdrop:bg-bg/80 backdrop:bg-overlay/60 backdrop:z-modal-backdrop background background-color backslashes backtick backticks baked band banner bar bare base base- base64 base:base- based bash batch be bearbeiten because becomes been before below best best-effort between bg bg-[#fff] bg-accent bg-bg bg-chat-assistant-bg bg-chat-user-bg bg-code-bg bg-fg bg-info/10 bg-info/5 bg-muted bg-overlay/30 bg-surface bg-surface/50 bg-transparent bg-warning/10 bg-warning/5 bi big bigint bin binaries bind binding blank blanks block blockquote blocks blur bodies body body-end-components body-end-scripts bold boolean bootstrap border border-accent border-b border-b-2 border-b-[5px] border-bg/30 border-collapse border-danger border-dashed border-fg border-image border-info/30 border-l border-l-0 border-l-[3px] border-left-width border-muted border-none border-r border-r-0 border-radius border-solid border-t border-t-[2px] border-t-[3px] border-transparent border-warning/30 border-width border-y both bottom-hsp-lg bottom-vsp-xl boundaries box box-border br brackets brand breadcrumb:end breadcrumb:start break-words brief broken brown browser browser-tab browsers browses btn budget bug build builder built built-in bundler but button buttons by bypassed byte-identical bytes c cache cached calendar-valid call callable called caller calls can cancellation candidate cannot canonical canvas caption captured captures card card-grid cards carry case-insensitive cases cat-nav- catalog catch categories category caught caution center center/contain ch chains change changed changelog changelogs changes characters check checkbox checked checker child children choose chrome chrome-font ci circle cite cjs class class-less class-mode claude claude-agents claude-commands claude-md claude-resources claude-skills cleaned cleanly clear clearing click client client-router client-side clip clobber clobbering close closed closes closing closure code code-block-sr-announce code-group code-group-panel codex codex-agents codex-agents-md codex-config codex-hooks codex-resources codex-rules codex-skills col col-resize col-span-full col-start-1 colgroup collapse collapses collapsible collision color color-scheme color-scheme-changed color-scheme-provider color-tweak colorization colors column comma command commands commas comment commercial commercial-font-denylist commit compare complete component component:github-link component:language-switcher component:search component:theme-toggle component:version-switcher composes composition compute computed concrete conf config configuration configurations configure configured conflicting conflicts confuse connect const construction consumer consumes contain container containers containing contains content content-admonition content-layer content-link content-type content-wrapper:end content-wrapper:start contents context contract control controller controls converts cookie-blocking copied copy copy-url core corners correct correctly corrupt could count covered covers cpp crashes created cross-component crumb- cs csharp css css-presence csv ctx cur current current-path/index.ts current-route currently cursor cursor-not-allowed cursor-pointer custom cycle d danger dark dash data data-active data-admonition data-asset-details-hidden data-auto-logo data-base data-close-search data-current-locale data-default-locale data-doc-date data-doc-description data-doc-metainfo data-doc-pager data-doc-unavailable-versions data-find-active data-find-match data-footer data-group-id data-header data-header-logo data-header-nav data-header-right data-home-rule data-kbd-shortcut data-lang data-language-menu data-language-switcher data-language-toggle data-loading-index data-mermaid data-mermaid-enlarge-ready data-mermaid-rendered data-mermaid-src data-nav-active data-nav-category data-nav-item data-nav-item-dropdown data-nav-more data-nav-more-menu data-nav-more-toggle data-no-results data-note-tray-group data-note-tray-row data-open-search data-pan-active data-processed data-props data-result-count-template data-search-count data-search-count-narrow data-search-dialog data-search-input data-search-placeholder data-search-results data-search-unavailable data-sidebar-hidden data-sidebar-resizer data-site-nav data-switcher-card data-switcher-launcher data-tab-btn data-tab-default data-tab-label data-tab-value data-tabs data-taglist-group data-testid data-theme data-theme-pack data-theme-pack-switcher data-theme/style data-toc-hidden data-trailing-slash data-unavailable-label data-variant data-version-banner data-version-latest data-version-menu data-version-rewire data-version-slug data-version-switcher data-version-toggle data-version-trigger-label data-zd-asset-action data-zd-asset-actions data-zd-asset-details data-zd-asset-details-chevron data-zd-asset-details-list data-zd-asset-details-toggle data-zd-asset-index-action data-zd-asset-index-empty data-zd-asset-index-page data-zd-asset-page data-zd-asset-tree data-zd-copy-url data-zd-html-preview-reservation data-zd-label-collapse data-zd-label-expand data-zd-mobile-sidebar data-zd-mobile-toc data-zd-nav-section data-zd-nosidebar data-zd-pending data-zd-props-preserve data-zd-sidebar-open-key data-zd-theme-pack-css data-zd-theme-pack-css-loading data-zd-theme-pack-loading data-zd-toc data-zd-wide data-zfb-island data-zfb-island-remount data-zfb-reload data-zfb-transition-persist date dated dd decimal decision declaration declare declared declares decoration decoration-muted deepest deepest-match default default-transition-duration defaults deferral deferred del delegated delete deliberately delimiter dependency depends depth der desc description design design-token design-token-panel design-token-trigger desktop desktop-sidebar desktop-sidebar-toggle desktop-sidebar-toggle-island desktop-toc-toggle destroys destructive detach detached details determine deterministic dev dfn diagram diagrams dialog did die dieser diff diff-line-added diff-line-content diff-line-empty diff-line-num diff-line-removed diff-row differ different dir directives directly directories directory disabled disabled:cursor-default disabled:opacity-50 disabled:pointer-events-none disc display display:none dist distance distinct div dl do doc doc-card- doc-content-band doc-history doc-history-generate doc-history-panel doc-history-trigger doc-page doc-pager doc-prose doc-title docblock docs docs- docs-v- document document-level documentation documented documents does dog dot double-registration download draft drag drawer drift drifts drop dropdown dropdown-parent dropdowns dt duplicate duration duration-150 duration-200 during dynamically e e2e each eager earlier early ease-in-out edge editing einer either eject ejectable ejectables ejected el element elements els else em embedded emit emitting empty empty/undefined en enable enabled end enhanced enhancement enlarged entire entities entries entry entrypoint env equal error escape escaped escapes even event eventually every everything-enabled exactly example exceeds excerpt excludes exclusively exist existing exists exit expand expected explicit export extends extra f factories failed fall fallback fallbacks falling falls false family fast favicon feature fg field fields fieldset figcaption figure file files fill fills finally find find-match find-match-active fire fires first first-paint first:mt-0 fit fix fixed fixed-width fixtures flag flash flat flex flex-1 flex-col flex-wrap flip flipping flips flow flush-left focus focus-visible:bg-accent/10 focus-visible:border-accent focus-visible:decoration-accent focus-visible:outline-2 focus-visible:outline-accent focus-visible:outline-offset-2 focus-visible:text-accent focus-visible:underline focus-within:border-accent focus-within:z-local-1 focus:border-accent focus:outline-none focus:text-accent focus:underline folder folders follows font font-bold font-face-parity font-family font-file-missing font-medium font-mono font-sans font-scale font-semibold font-size font-weight font-weight-bold font-weight-medium font-weight-normal font-weight-semibold font/woff2 fonts footer footer- for form format former found four-link fox fragment frame free freeze fresh from frontmatter frontmatter-preview frozen frozen-script fs-extra ftyp full fully function further g gains gap-[0.3em] gap-[clamp(1.5rem,3vw,4rem)] gap-hsp-2xs gap-hsp-lg gap-hsp-md gap-hsp-sm gap-hsp-xl gap-hsp-xs gap-vsp-2xs gap-vsp-3xs gap-vsp-lg gap-vsp-md gap-vsp-xs gap-x-hsp-2xs gap-x-hsp-lg gap-x-hsp-md gap-x-hsp-sm gap-x-hsp-xs gap-y-vsp-2xs gap-y-vsp-3xs gap-y-vsp-lg gap-y-vsp-md gap-y-vsp-xs gaps gate geladen2026 generate generated generation genuine geometry get getting-started gif git github github-dark github-link give go got grab gradient granular graph grid grid-cols-1 grid-cols-2 grid-cols-[auto_1fr] grid-rows-[auto_auto] grid-rows-subgrid group group-focus-visible:decoration-accent group-focus-visible:text-accent group-focus-visible:text-accent-hover group-focus-visible:text-fg group-focus-visible:underline group-focus-within:block group-hover:bg-fg group-hover:block group-hover:decoration-accent group-hover:text-accent group-hover:text-accent-hover group-hover:text-bg group-hover:text-fg group-hover:underline group-open:rotate-90 grouped grouping guard guards gz h h-[0.5rem] h-[0.625rem] h-[0.875rem] h-[1.125rem] h-[1.25rem] h-[1.575rem] h-[10rem] h-[14px] h-[1em] h-[1lh] h-[2.5rem] h-[2rem] h-[3.5rem] h-[3rem] h-[70vh] h-[90vh] h-[calc(100%-3rem)] h-[calc(100vh-3.5rem)] h-dvh h-full h-icon-lg h-icon-md h-icon-sm h-icon-xs h1 h1s h2 h22013h4 h2s h3 h4 h5 h6 half hand-copied hand-editable handle handled handler handlers happens hard-loaded hardcoded has hash-link have head head-links head-scripts header header- header-call:end header-call:start header-right heading heading-h2 heading-h3 heading-h4 heading-rule headings height here hex hi-root hidden hide hierarchical highlight highlighting history home hook hooks hooks-json horizontal host hover:bg-[color-mix(in_srgb,var(--color-surface)_80%,var(--color-fg)_20%)] hover:bg-accent-hover hover:bg-accent/10 hover:bg-danger/10 hover:bg-surface hover:border-accent hover:border-accent-hover hover:border-fg hover:decoration-accent hover:text-accent hover:text-accent-hover hover:text-fg hover:underline hover:z-local-1 hpp hr href hrefs hsp hsp-2xl hsp-2xs hsp-lg hsp-md hsp-sm hsp-xl hsp-xs html i i18n/theme. i2 i3 i4 ico icon icon-lg icon-md icon-sm icon-xs id identical idle idx if iframe ignore ignoring image image-enlarge image-overlay-inset image/avif image/gif image/jpeg image/png image/webp image/x-icon img img-src-check implementation import import/export important important-allowlist imports in inactive includes including incomplete independently index index2026 indirectly info inherit inherited ini initial initialised injected inline inline-block inline-flex inner input input-clear ins inserted-after-color-mode inserted-after-color-scheme inserted-after-site-name inserted-first insertion inset-0 inside inside-only inspect install installation installed instance instanceof instead instructions intended intent intentionally intercept interface internal interpolation into introductions invalid invalidated inverse inversion invocation invoke is is-checker island island-root iso2 iso3 iso4 iso5 iso6 isom ispe issues it italic item item- items items-baseline items-center items-end items-start iteration its itself ja java javascript jpeg jpg js json jsx jumps just justification justify-between justify-center justify-end justify-start katex kbd keep keeping keeps kept key keyboard keyboard-shortcut keydown keys keystroke keyword keywords khroma known-token-names kopieren kotlin kt label landing lands language-menu language-switcher language-toggle larger last:border-b-0 last:pb-0 later latest launch layout lazy leading leading-none leading-normal leading-relaxed leading-snug leading-tight leaf leaf- leak leaves leaving left left-0 left:calc legend legitimate length lets letter-spacing lg lg:block lg:border lg:border-fg lg:border-solid lg:flex lg:flex-1 lg:flex-col lg:flex-row lg:gap-hsp-xl lg:grid-cols-3 lg:grid-cols-[repeat(auto-fit,minmax(12rem,1fr))] lg:h-[90vh] lg:hidden lg:justify-start lg:m-auto lg:max-h-[90vh] lg:max-w-[52.5rem] lg:ml-[var(--zd-sidebar-w)] lg:pr-hsp-sm lg:pt-vsp-2xl lg:px-hsp-2xl lg:py-vsp-2xl lg:text-left lg:w-[90vw] lg:w-[clamp(16rem,25%,22rem)] li li2 library license lifecycle light light/dark like likely line line-height line/statement lines linger link link- links list list-disc list-none listener lists literal literally literals live lives llms llms-txt load loaded loader loading local local-1 local-2 local-3 locale locales log logo long longer longest-match look loses lostpointercapture lower luminance m m-0 m-auto m10 m14 m16 m21 m6 machinery main major make malformed malformed-markup malicious managed manifest manual manually maps mark markdown marks match matches matching math math-display math-inline max max-h-[85vh] max-h-[90vh] max-h-full max-h-none max-w-[16rem] max-w-[64rem] max-w-[85%] max-w-[85vw] max-w-[90vw] max-w-[calc(100vw-2rem)] max-w-[calc(100vw-var(--spacing-hsp-xl))] max-w-[clamp(50rem,75vw,90rem)] max-w-full max-w-none max-w-sm max-width maximum may mb-0 mb-vsp-2xs mb-vsp-lg mb-vsp-md mb-vsp-sm mb-vsp-xl mb-vsp-xs md mdx means measured measurement measures measuring mechanism menu mermaid message messages meta meta-knob meta-schema metadata migration min-h-0 min-h-[20rem] min-h-[44px] min-h-[60vh] min-h-[calc(100vh-3.5rem)] min-h-screen min-w-0 min-w-[10rem] min-w-[3rem] min-w-[44px] min-w-[8rem] minifier minor mirror mirroring mirrors missing mit mjs ml-[calc(var(--spacing-hsp-xl)+1px)] ml-auto ml-hsp-2xl ml-hsp-lg ml-hsp-md ml-hsp-sm ml-hsp-xl mobile mod modal modal-backdrop mode model modify module moment monospace month more most mount mounted mouseenter mouseleave mov move mp4 mp41 mp42 mr-[calc(var(--spacing-hsp-xl)+1px)] mr-hsp-sm ms mt-0 mt-vsp-2xl mt-vsp-2xs mt-vsp-3xs mt-vsp-lg mt-vsp-md mt-vsp-sm mt-vsp-xl mt-vsp-xs multi-changelog multiple must mutates mutation mutations muted mvhd mx-auto my-vsp-lg my-vsp-md n name named names native natural nav nav-active nav-card- nav/doc navigating navigation navigations near needed needs neither nested neutral never new newly-swapped next nicht no no-color-scheme no-data-theme-selector no-enlarge no-op no-repeat no-underline noch node node:buffer node:fs node:fs/promises node:module node:path node:url node:util nodes nofollow noindex non-draggable non-empty non-index non-light-dark non-literal non-null non-persisted nonblank none noopener noreferrer normal noscript not notable note note-tray notes now null number numeric object object-contain observe observer occurred of off offered offsets ofl-required og:description og:image og:image:alt og:image:height og:image:width og:title og:type og:url oklch ol old older omit omitting on once one only onto opacity-60 open open/close option or order original other others otherwise out outgoing outline-none output outside over overflow overflow-auto overflow-hidden overflow-x-auto overflow-y-auto overflow-y:auto overlaps override overrides overscroll-contain overwrite own owned p p-0 p-hsp-2xs p-hsp-lg p-hsp-md p-hsp-sm p-hsp-xl pack pack-scoped package package-default package-injected package-owned packages packs padding page page-loading page-loading-overlay page-loading-spinner page-navigate-end page-title page-wide pages pages/. paint paint-and-read palette pan panel panels paragraph paren-balance-aware parent parse parse/render parse5 parsed parser parses part pass passed passes patch path paths pattern payload payload-budget pb-[50vh] pb-vsp-2xs pb-vsp-lg pb-vsp-md pb-vsp-xl pb-vsp-xs pdf peer peer-focus-visible:border-accent peer-focus-visible:text-accent peer-hover:border-accent peer-hover:text-accent pending per per-block per-link per-package per-release percent permanently persisted persistence php pi pick picked picks picocolors pins pipelines pl-[1.25rem] pl-hsp-lg pl-hsp-md pl-hsp-sm pl-hsp-xl place place-items-center placeholder placeholder:text-muted plain plural plus png png16 png32 pnpm point pointer pointer-events-none pointercancel pointerdown pointermove pointerup policy polite polygon polyline popover populates port position position:fixed pr-hsp-lg pr-hsp-md pr-hsp-sm pr-hsp-xl pr-hsp-xs pre pre-lowercased preact preact/compat preact/hooks preact/jsx-runtime preconnect preference prefix preload pres present preserving preview preview-swatch-color previews2026 previously primary print prior private produce produced produces producing production profiles project project-owned project-root-relative properties property props prose protocol-relative provided proxy pt-[0.15rem] pt-[2px] pt-vsp-3xs pt-vsp-md pt-vsp-sm pt-vsp-xl pt-vsp-xs ptag- public purely puts px px-hsp-2xl px-hsp-2xs px-hsp-lg px-hsp-md px-hsp-sm px-hsp-xl px-hsp-xs py py-0 py-[2px] py-[4px] py-[calc(var(--spacing-vsp-xs)+0.15rem)] py-hsp-2xs py-hsp-3xs py-hsp-sm py-hsp-xs py-vsp-2xs py-vsp-3xs py-vsp-lg py-vsp-md py-vsp-sm py-vsp-xl py-vsp-xs python q qt query question quick r radius radius-full radius-lg rail ramp range rar rather raw rb re-encode/decode re-exports re-init re-initialized re-querying re-render re-renders re-run re-running re-runs re-selects re-syncs reach reached reaches read reader reader-facing reading readings reads/rewrites real real-value received receives recorded recovers rect redefine redistribution ref- reference referenced references refetch refresh refreshes refusing regardless regenerate regenerates regex registry reinit reinits rejected rel relative release released releases reload relying rem remapped remembered remove remove/rename removed removing rename render rendered renderer renderers renders reorder repaint repair repeated repeating replace replaced replacement replaces repopulate report repository republished requested require required requires reserved resize resize-x resolve resolved resolves responded response restore restores restyle result result-click results results-area retry return returns rev-parse reveal revision revisions rewire rewrite rewrites right right- right-0 right-hsp-lg ring-2 ring-accent risking ro robots role roles root rotate-180 rotate-90 round round-trip rounded rounded-[0.75rem] rounded-bl-[0.25rem] rounded-bl-[1rem] rounded-bl-lg rounded-br-[0.25rem] rounded-br-[1rem] rounded-full rounded-lg rounded-md rounded-t-[1rem] rounds route routed router routes routes-src routes/sitemap.xml row row-span-2 row-start-1 row-start-2 rp rs rt ruby rule rules run running runs runtime rust s safe safely safer same same-locale samp sans sans-serif scale scanned scanning scheme scoped scoping score scored script script- script-eval script-evaluation script-injection scripts scroll scrollbar scrolled scrollend scrolling scss seam search search-index section section- see seed segment segments sehen select select-none selection-bg selection-fg selector self self-contained self-hosted self-start self-stretch semantic semibold semver sentinel separator serialised serialize server server-rendered session set sets setting settles setup sh shadow shadow-[0_1px_3px_color-mix(in_srgb,var(--color-fg)_8%,transparent)] shadow-lg shadow-md shadowed shape share shared sharing shell ship shipped ships short shortcut should show shown shrink-0 sidebar sidebar- sidebar-toggle-island sidebar-tree-island sidebar-w sidecar signal silently similarity simple since single single-line single-object-literal singular site site-search site-tree-nav-island sitemap- sites size size-icon-lg skill skills skip skipped skipping skips slash slot slug slug-dir-parity slugs sm:block sm:border sm:border-muted sm:col-start-2 sm:flex sm:flex-row sm:gap-x-hsp-xl sm:grid sm:grid-cols-2 sm:grid-cols-[minmax(0,1fr)_auto] sm:grid-cols-subgrid sm:h-auto sm:hidden sm:items-center sm:justify-between sm:max-h-[80vh] sm:max-w-[52rem] sm:mr-0 sm:mx-auto sm:my-[10vh] sm:rounded-lg sm:row-span-2 sm:row-start-1 small smol-toml smooth snapping snapshot snapshots so soft soft-nav solid some somehow sort source sources space-y-vsp-2xs space-y-vsp-lg space-y-vsp-sm spacing spacing-0 spacing-px span spans spec specifiers specify spelling splitter spread spurious sql square sr-only src stable stack stale standalone start state state- state:state- statement statements status stay staying sticky still stock stop stops stored straddles stray strict string strings strip stripe strips stroke-linecap stroke-linejoin stroke-width strong stronger stub-rendered style style-attribute styled styles stylesheet sub subagents subsequent substitute substitution subtracting success successful summary sup supply supported surface surfaces survives svg swap swapped swaps swift switcher switching symlink synchronous synchronously syntactically syntax t tab tab-item tab-panel tabindex table tablist tabpanel tabs tabs-container tabs-content tabs-nav tabular-nums tag tag- tag-item- tagged tags tags:audit take tar tbody td temp-element template temporary temporary-element terminal terms test-results tested text text-accent text-bg text-body text-caption text-center text-chat-assistant-text text-chat-user-text text-code-fg text-danger text-decoration text-display text-fg text-fg/60 text-heading text-info text-left text-micro text-muted text-muted/50 text-right text-scale-2xl text-scale-2xs text-scale-lg text-scale-md text-scale-sm text-scale-xl text-scale-xs text-small text-title text-warning text/css text/csv text/html text/javascript text/jsx text/markdown text/mdx text/plain text/tab-separated-values text/tsx text/typescript text/x-c text/x-csharp text/x-go text/x-java-source text/x-kotlin text/x-python text/x-ruby text/x-rust text/x-scss text/x-shellscript text/x-swift textarea tfoot tgz th than that the thead their them theme theme-color theme-pack theme-pack-changed theme-packs theme-packs/index.json theme-toggle theme/token then there these they this those though three threw through throw throws tighten time timeline tip title tkhd to toast toc toggle toggle- toggle-ai-chat toggle-design-token-panel toggles toggling token tokens tolerates toml too toolbar tooltip top top-0 top-[3.5rem] top-full top-hsp-2xs top-level total touches tr tracked tracking-wide tracking-wider trade-off trailing transclude transferred transition transition-[background,color,border-color] transition-[left,color] transition-[right,color] transition-colors transition-transform translate-x-0 translated translations transparent tray treats tree tree-child- tree-item- tree-top- trigger trigger:ai-chat trigger:design-token-panel triggers true truncate truncated try ts tsv tsx turn twitter:card twitter:creator twitter:description twitter:image twitter:site twitter:title two txt type typeface typeof typescript typography u ul umschalten unable unavailable unbalanced unchanged und undefined under underline underlines understand unit-tested unknown unlike unlisted unmaintained unmatchable unobserve unreadable unrelated unreleased unresolvable unresolved unsafe unset unsupported unterminated until unusable unwrapped up up-to-date update updated upper uppercase url use used useful user uses using usual utf-8 utf8 utilities utility v v2 val value value-reader values var variable variant verbatim version version- version-menu version-switcher versions vertical via video video/mp4 video/quicktime video/webm viewer viewing viewport viewports virtual:zudo-doc-asset-bodies virtual:zudo-doc-chrome-bindings virtual:zudo-doc-design-token-panel-config virtual:zudo-doc-route-context visibility visible vocabulary void von vsp vsp-2xl vsp-2xs vsp-3xs vsp-lg vsp-md vsp-sm vsp-xl vsp-xs w w-1/2 w-[0.5rem] w-[0.625rem] w-[0.875rem] w-[1.125rem] w-[1.575rem] w-[1.5rem] w-[1.75rem] w-[12rem] w-[14px] w-[16px] w-[16rem] w-[18px] w-[1em] w-[2.5rem] w-[280px] w-[2rem] w-[320px] w-[360px] w-[6.5rem] w-[90vw] w-[calc(100vw-2rem)] w-[var(--zd-sidebar-w)] w-dvw w-full w-icon-lg w-icon-md w-icon-sm w-icon-xs walk walks want warn warning was watching way wbr wbr- we webm webp website weight went were what when where whereas whether which while whitespace-nowrap whitespace-pre whole whose wide wide-gamut wider-than-scrollbar width will window wins wird wired with without word wordmark working works worktrees would wrap wrapped wrapper wrappers wrapping wraps writing written wrong wrote wurde x xl:flex xl:hidden xml y-scrollbar yaml year yet yielded yields yml you your z-dropdown z-local-1 z-modal z-modal-backdrop z-popover z-sidebar z-toolbar zd-asset-code zd-asset-details-rail zd-asset-details-toggle zd-asset-filebar zd-asset-media-grid zd-asset-media-rail zd-asset-page zd-asset-pdf zd-asset-stage zd-compact-prose zd-content zd-desktop-sidebar-toggle zd-desktop-toc-toggle zd-doc-content-band zd-enlarge-btn zd-enlarge-dialog zd-enlarge-dialog-close zd-enlargeable zd-home-copy zd-home-hero zd-home-inner zd-home-intro zd-home-links zd-home-rule zd-home-sitemap zd-html-preview-code zd-mermaid-dialog zd-mermaid-enlargeable zd-mermaid-tool-btn zd-mermaid-toolbar zd-mermaid-transform zd-mermaid-viewport zd-sidebar-content-wrapper zd-sidebar-open zd-theme-pack-dialog-title zd-toc-col zdtp zfb zfb:after-swap zfb:before-preparation zfb:before-swap zip zod zoom zudo-design-token-panel zudo-design-tokens/v3 zudo-doc zudo-doc-asset-details-visible zudo-doc-code-wrap zudo-doc-design-token-panel-modal zudo-doc-design-tokens zudo-doc-sidebar-visible zudo-doc-sidebar-width zudo-doc-theme zudo-doc-theme-pack zudo-doc-toc-visible zudo-doc-tweak zum");
2
+ @source inline("-domtweaker-enabled -elpath-enabled -left-[calc(var(--spacing-icon-lg)/2)] -link -mb-px -ml-hsp-sm -mt-px -noscript -open -state -state-v2 -state-v3 -state-v4 -translate-x-full 2xl:w-[24px] [&::-webkit-details-marker]:hidden [&_a]:pointer-events-auto [&_a]:text-accent [&_a]:underline [&_li]:mb-0 [&_nav]:mb-0 [asset-viewer] [data-admonition] [data-kbd-shortcut] [data-switcher-launcher] [doc-history-meta] [doc-history] [doc-layout] [img-src-check] [llms-txt] [zudo-doc] a a2 abbr about above absent absolute accent accent- accent:accent- access across activated active actual actually add added admonition admonition- admonition-body admonition-title admonition/callout after after-breadcrumb after-content after-navigate after-sidebar after-title against agent agents ai-chat ai-chat-md ai-chat-trigger alert align align-top all allow allow-same-origin allow-scripts allowed alone already already-executed already-multiline already-picked also alt always an anchor and and/or animate-pulse animate-spin announce ansehen antialiased any anywhere anzeigen app appear application/json application/octet-stream application/pdf application/sql application/toml application/x-httpd-php application/xml application/yaml applied applies apply applying approach approval are area arg argument aria-atomic aria-busy aria-controls aria-current aria-disabled aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-orientation aria-pressed aria-selected aria-valuemax aria-valuemin aria-valuenow arm arms around arrows article as asc ascii aside aspect-[1200/630] aspect-square asset asset- asset-components assets assets/client assistant async at at-rule attach attribute attributes audio auf author authored auto auto-logo-mask autogenerated availability available avc1 avif avis avoid await away b back backdrop:bg-bg/30 backdrop:bg-bg/80 backdrop:bg-overlay/60 backdrop:z-modal-backdrop background background-color backslashes backtick backticks baked band banner bar bare base base- base64 base:base- based bash batch be bearbeiten because becomes been before below best best-effort between bg bg-[#fff] bg-accent bg-bg bg-chat-assistant-bg bg-chat-user-bg bg-code-bg bg-fg bg-info/10 bg-info/5 bg-muted bg-overlay/30 bg-surface bg-surface/50 bg-transparent bg-warning/10 bg-warning/5 bi big bigint bin binaries bind binding blank blanks block blockquote blocks blur bodies body body-end-components body-end-scripts bold boolean bootstrap border border-accent border-b border-b-2 border-b-[5px] border-bg/30 border-collapse border-danger border-dashed border-fg border-image border-info/30 border-l border-l-0 border-l-[3px] border-left-width border-muted border-none border-r border-r-0 border-radius border-solid border-t border-t-[2px] border-t-[3px] border-transparent border-warning/30 border-width border-y both bottom-hsp-lg bottom-vsp-xl boundaries box box-border br brackets brand breadcrumb:end breadcrumb:start break-words brief broken brown browser browser-tab browsers browses btn budget bug build builder built built-in bundler but button buttons by bypassed byte-identical bytes c cache cached calendar-valid call callable called caller calls can cancellation candidate cannot canonical canvas caption captured captures card card-grid cards carry case-insensitive cases cat-nav- catalog catch categories category caught caution center center/contain ch chains change changed changelog changelogs changes characters check checkbox checked checker child children choose chrome chrome-font ci circle cite cjs class class-less class-mode claude claude-agents claude-commands claude-md claude-resources claude-skills cleaned cleanly clear clearing click client client-router client-side clip clobber clobbering close closed closes closing closure code code-block-sr-announce code-group code-group-panel codex codex-agents codex-agents-md codex-config codex-hooks codex-resources codex-rules codex-skills col col-resize col-span-full col-start-1 colgroup collapse collapses collapsible collision color color-scheme color-scheme-changed color-scheme-provider color-tweak colorization colors column comma command commands commas comment commercial commercial-font-denylist commit compare complete component component:github-link component:language-switcher component:search component:theme-toggle component:version-switcher composes composition compute computed concrete conf config configuration configurations configure configured conflicting conflicts confuse connect const construction consumer consumes contain container containers containing contains content content-admonition content-layer content-link content-type content-wrapper:end content-wrapper:start contents context contract control controller controls converts cookie-blocking copied copy copy-url core corners correct correctly corrupt could count covered covers cpp crashes created cross-component crumb- cs csharp css css-presence csv ctx cur current current-path/index.ts current-route currently cursor cursor-not-allowed cursor-pointer custom cycle d danger dark dash data data-active data-admonition data-asset-details-hidden data-auto-logo data-base data-close-search data-current-locale data-default-locale data-doc-date data-doc-description data-doc-metainfo data-doc-pager data-doc-unavailable-versions data-find-active data-find-match data-footer data-group-id data-header data-header-logo data-header-nav data-header-right data-home-rule data-kbd-shortcut data-lang data-language-menu data-language-switcher data-language-toggle data-loading-index data-mermaid data-mermaid-enlarge-ready data-mermaid-rendered data-mermaid-src data-nav-active data-nav-category data-nav-item data-nav-item-dropdown data-nav-more data-nav-more-menu data-nav-more-toggle data-no-results data-note-tray-group data-note-tray-row data-open-search data-pan-active data-processed data-props data-result-count-template data-search-count data-search-count-narrow data-search-dialog data-search-input data-search-placeholder data-search-results data-search-unavailable data-sidebar-hidden data-sidebar-resizer data-site-nav data-switcher-card data-switcher-launcher data-tab-btn data-tab-default data-tab-label data-tab-value data-tabs data-taglist-group data-testid data-theme data-theme-pack data-theme-pack-switcher data-theme/style data-toc-hidden data-trailing-slash data-unavailable-label data-variant data-version-banner data-version-latest data-version-menu data-version-rewire data-version-slug data-version-switcher data-version-toggle data-version-trigger-label data-zd-asset-action data-zd-asset-actions data-zd-asset-details data-zd-asset-details-chevron data-zd-asset-details-list data-zd-asset-details-toggle data-zd-asset-index-action data-zd-asset-index-empty data-zd-asset-index-page data-zd-asset-page data-zd-asset-tree data-zd-copy-url data-zd-html-preview-reservation data-zd-label-collapse data-zd-label-expand data-zd-mobile-sidebar data-zd-mobile-toc data-zd-nav-section data-zd-nosidebar data-zd-pending data-zd-props-preserve data-zd-sidebar-open-key data-zd-theme-pack-css data-zd-theme-pack-css-loading data-zd-theme-pack-loading data-zd-toc data-zd-wide data-zfb-island data-zfb-island-remount data-zfb-reload data-zfb-transition-persist date dated dd decimal decision declaration declare declared declares decoration decoration-muted deepest deepest-match default default-transition-duration defaults deferral deferred del delegated delete deliberately delimiter dependency depends depth der desc description design design-token design-token-panel design-token-trigger desktop desktop-sidebar desktop-sidebar-toggle desktop-sidebar-toggle-island desktop-toc-toggle destroys destructive detach detached details determine deterministic dev dfn diagram diagrams dialog did die dieser diff diff-line-added diff-line-content diff-line-empty diff-line-num diff-line-removed diff-row differ different dir directives directly directories directory disabled disabled:cursor-default disabled:opacity-50 disabled:pointer-events-none disc display display:none dist distance distinct div dl do doc doc-card- doc-content-band doc-history doc-history-generate doc-history-panel doc-history-trigger doc-page doc-pager doc-prose doc-title docblock docs docs- docs-v- document document-level documentation documented documents does dog dot double-registration download draft drag drawer drift drifts drop dropdown dropdown-parent dropdowns dt duplicate duration duration-150 duration-200 during dynamically e e2e each eager earlier early ease-in-out edge editing einer either eject ejectable ejectables ejected el element elements els else em embedded emit emitting empty empty/undefined en enable enabled end enhanced enhancement enlarged entire entities entries entry entrypoint env equal error escape escaped escapes even event eventually every everything-enabled exactly example exceeds excerpt excludes exclusively exist existing exists exit expand expected explicit export extends extra f factories failed fall fallback fallbacks falling falls false family fast favicon feature fg field fields fieldset figcaption figure file files fill fills finally find find-match find-match-active fire fires first first-paint first:mt-0 fit fix fixed fixed-width fixtures flag flash flat flex flex-1 flex-col flex-wrap flip flipping flips flow flush-left focus focus-visible:bg-accent/10 focus-visible:border-accent focus-visible:decoration-accent focus-visible:outline-2 focus-visible:outline-accent focus-visible:outline-offset-2 focus-visible:text-accent focus-visible:underline focus-within:border-accent focus-within:z-local-1 focus:border-accent focus:outline-none focus:text-accent focus:underline folder folders follows font font-bold font-face-parity font-family font-file-missing font-medium font-mono font-sans font-scale font-semibold font-size font-weight font-weight-bold font-weight-medium font-weight-normal font-weight-semibold font/woff2 fonts footer footer- for form format former found four-link fox fragment frame free freeze fresh from frontmatter frontmatter-preview frozen frozen-script fs-extra ftyp full fully function further g gains gap-[0.3em] gap-[clamp(1.5rem,3vw,4rem)] gap-hsp-2xs gap-hsp-lg gap-hsp-md gap-hsp-sm gap-hsp-xl gap-hsp-xs gap-vsp-2xs gap-vsp-3xs gap-vsp-lg gap-vsp-md gap-vsp-xs gap-x-hsp-2xs gap-x-hsp-lg gap-x-hsp-md gap-x-hsp-sm gap-x-hsp-xs gap-y-vsp-2xs gap-y-vsp-3xs gap-y-vsp-lg gap-y-vsp-md gap-y-vsp-xs gaps gate geladen2026 generate generated generation genuine geometry get getting-started gif git github github-dark github-link give go got grab gradient granular graph grid grid-cols-1 grid-cols-2 grid-cols-[auto_1fr] grid-rows-[auto_auto] grid-rows-subgrid group group-focus-visible:decoration-accent group-focus-visible:text-accent group-focus-visible:text-accent-hover group-focus-visible:text-fg group-focus-visible:underline group-focus-within:block group-hover:bg-fg group-hover:block group-hover:decoration-accent group-hover:text-accent group-hover:text-accent-hover group-hover:text-bg group-hover:text-fg group-hover:underline group-open:rotate-90 grouped grouping guard guards gz h h-[0.5rem] h-[0.625rem] h-[0.875rem] h-[1.125rem] h-[1.25rem] h-[1.575rem] h-[10rem] h-[14px] h-[1em] h-[1lh] h-[2.5rem] h-[2rem] h-[3.5rem] h-[3rem] h-[70vh] h-[90vh] h-[calc(100%-3rem)] h-[calc(100vh-3.5rem)] h-dvh h-full h-icon-lg h-icon-md h-icon-sm h-icon-xs h1 h1s h2 h22013h4 h2s h3 h4 h5 h6 half hand-copied hand-editable handle handled handler handlers happens hard-loaded hardcoded has hash-link have head head-links head-scripts header header- header-call:end header-call:start header-right heading heading-h2 heading-h3 heading-h4 heading-rule headings height here hex hi-root hidden hide hierarchical highlight highlighting history home hook hooks hooks-json horizontal host hover:bg-[color-mix(in_srgb,var(--color-surface)_80%,var(--color-fg)_20%)] hover:bg-accent-hover hover:bg-accent/10 hover:bg-danger/10 hover:bg-surface hover:border-accent hover:border-accent-hover hover:border-fg hover:decoration-accent hover:text-accent hover:text-accent-hover hover:text-fg hover:underline hover:z-local-1 hpp hr href hrefs hsp hsp-2xl hsp-2xs hsp-lg hsp-md hsp-sm hsp-xl hsp-xs html i i18n/theme. i2 i3 i4 ico icon icon-lg icon-md icon-sm icon-xs id identical idle idx if iframe ignore ignoring image image-enlarge image-overlay-inset image/avif image/gif image/jpeg image/png image/webp image/x-icon img img-src-check implementation import import/export important important-allowlist imports in inactive includes including incomplete independently index index2026 indirectly info inherit inherited ini initial initialised injected inline inline-block inline-flex inner input input-clear ins inserted-after-color-mode inserted-after-color-scheme inserted-after-site-name inserted-first insertion inset-0 inside inside-only inspect install installation installed instance instanceof instead instructions intended intent intentionally intercept interface internal interpolation into introductions invalid invalidated inverse inversion invocation invoke is is-checker island island-root iso2 iso3 iso4 iso5 iso6 isom ispe issues it italic item item- items items-baseline items-center items-end items-start iteration its itself ja java javascript jpeg jpg js json jsx jumps just justification justify-between justify-center justify-end justify-start katex kbd keep keeping keeps kept key keyboard keyboard-shortcut keydown keys keystroke keyword keywords khroma known-token-names kopieren kotlin kt label landing lands language-menu language-switcher language-toggle larger last:border-b-0 last:pb-0 later latest launch layout lazy leading leading-none leading-normal leading-relaxed leading-snug leading-tight leaf leaf- leak leaves leaving left left-0 left:calc legend legitimate length lets letter-spacing lg lg:block lg:border lg:border-fg lg:border-solid lg:flex lg:flex-1 lg:flex-col lg:flex-row lg:gap-hsp-xl lg:grid-cols-3 lg:grid-cols-[repeat(auto-fit,minmax(12rem,1fr))] lg:h-[90vh] lg:hidden lg:justify-start lg:m-auto lg:max-h-[90vh] lg:max-w-[52.5rem] lg:ml-[var(--zd-sidebar-w)] lg:pr-hsp-sm lg:pt-vsp-2xl lg:px-hsp-2xl lg:py-vsp-2xl lg:text-left lg:w-[90vw] lg:w-[clamp(16rem,25%,22rem)] li li2 library license lifecycle light light/dark like likely line line-height line/statement lines linger link link- links list list-disc list-none listener lists literal literally literals live lives llms llms-txt load loaded loader loading local local-1 local-2 local-3 locale locales log logo long longer longest-match look loses lostpointercapture lower luminance m m-0 m-auto m10 m14 m16 m21 m6 machinery main major make malformed malformed-markup malicious managed manifest manual manually maps mark markdown marks match matches matching math math-display math-inline max max-h-[85vh] max-h-[90vh] max-h-full max-h-none max-w-[16rem] max-w-[64rem] max-w-[85%] max-w-[85vw] max-w-[90vw] max-w-[calc(100vw-2rem)] max-w-[calc(100vw-var(--spacing-hsp-xl))] max-w-[clamp(50rem,75vw,90rem)] max-w-full max-w-none max-w-sm max-width maximum may mb-0 mb-vsp-2xs mb-vsp-lg mb-vsp-md mb-vsp-sm mb-vsp-xl mb-vsp-xs md mdx means measured measurement measures measuring mechanism menu mermaid message messages meta meta-knob meta-schema metadata migration min-h-0 min-h-[20rem] min-h-[44px] min-h-[60vh] min-h-[calc(100vh-3.5rem)] min-h-screen min-w-0 min-w-[10rem] min-w-[3rem] min-w-[44px] min-w-[8rem] minifier minor mirror mirroring mirrors missing mit mjs ml-[calc(var(--spacing-hsp-xl)+1px)] ml-auto ml-hsp-2xl ml-hsp-lg ml-hsp-md ml-hsp-sm ml-hsp-xl mobile mod modal modal-backdrop mode model modify module moment monospace month more most mount mounted mouseenter mouseleave mov move mp4 mp41 mp42 mr-[calc(var(--spacing-hsp-xl)+1px)] mr-hsp-sm ms mt-0 mt-vsp-2xl mt-vsp-2xs mt-vsp-3xs mt-vsp-lg mt-vsp-md mt-vsp-sm mt-vsp-xl mt-vsp-xs multi-changelog multiple must mutates mutation mutations muted mvhd mx-auto my-vsp-lg my-vsp-md n name named names native natural nav nav-active nav-card- nav/doc navigating navigation navigations near needed needs neither nested neutral never new newly-swapped next nicht no no-color-scheme no-data-theme-selector no-enlarge no-op no-repeat no-underline noch node node:buffer node:fs node:fs/promises node:module node:path node:url node:util nodes nofollow noindex non-draggable non-empty non-index non-light-dark non-literal non-null non-persisted nonblank none noopener noreferrer normal noscript not notable note note-tray notes now null number numeric object object-contain observe observer occurred of off offered offsets ofl-required og:description og:image og:image:alt og:image:height og:image:width og:title og:type og:url oklch ol old older omit omitting on once one only onto opacity-60 open open/close option or order original other others otherwise out outgoing outline-none output outside over overflow overflow-auto overflow-hidden overflow-x-auto overflow-y-auto overflow-y:auto overlaps override overrides overscroll-contain overwrite own owned p p-0 p-hsp-2xs p-hsp-lg p-hsp-md p-hsp-sm p-hsp-xl pack pack-scoped package package-default package-injected package-owned packages packs padding page page-loading page-loading-overlay page-loading-spinner page-navigate-end page-title page-wide pages pages/. paint paint-and-read palette pan panel panels paragraph paren-balance-aware parent parse parse/render parse5 parsed parser parses part pass passed passes patch path paths pattern payload payload-budget pb-[50vh] pb-vsp-2xs pb-vsp-lg pb-vsp-md pb-vsp-xl pb-vsp-xs pdf peer peer-focus-visible:border-accent peer-focus-visible:text-accent peer-hover:border-accent peer-hover:text-accent pending per per-block per-link per-package per-release percent permanently persisted persistence php pi pick picked picks picocolors pins pipelines pl-[1.25rem] pl-hsp-lg pl-hsp-md pl-hsp-sm pl-hsp-xl place place-items-center placeholder placeholder:text-muted plain plural plus png png16 png32 pnpm point pointer pointer-events-none pointercancel pointerdown pointermove pointerup policy polite polygon polyline popover populates port position position:fixed poster pr-hsp-lg pr-hsp-md pr-hsp-sm pr-hsp-xl pr-hsp-xs pre pre-lowercased preact preact/compat preact/hooks preact/jsx-runtime preconnect preference prefix preload pres present preserving preview preview-swatch-color previews2026 previously primary print prior private produce produced produces producing production profiles project project-owned project-root-relative properties property props prose protocol-relative provided proxy pt-[0.15rem] pt-[2px] pt-vsp-3xs pt-vsp-md pt-vsp-sm pt-vsp-xl pt-vsp-xs ptag- public purely puts px px-hsp-2xl px-hsp-2xs px-hsp-lg px-hsp-md px-hsp-sm px-hsp-xl px-hsp-xs py py-0 py-[2px] py-[4px] py-[calc(var(--spacing-vsp-xs)+0.15rem)] py-hsp-2xs py-hsp-3xs py-hsp-sm py-hsp-xs py-vsp-2xs py-vsp-3xs py-vsp-lg py-vsp-md py-vsp-sm py-vsp-xl py-vsp-xs python q qt query question quick r radius radius-full radius-lg rail ramp range rar rather raw rb re-encode/decode re-exports re-init re-initialized re-querying re-render re-renders re-run re-running re-runs re-selects re-syncs reach reached reaches read reader reader-facing reading readings reads/rewrites real real-value received receives recorded recovers rect redefine redistribution ref- reference referenced references refetch refresh refreshes refusing regardless regenerate regenerates regex registry reinit reinits rejected rel relative release released releases reload relying rem remapped remembered remove remove/rename removed removing rename render rendered renderer renderers renders reorder repaint repair repeated repeating replace replaced replacement replaces repopulate report repository republished requested require required requires reserved resize resize-x resolve resolved resolves responded response restore restores restyle result result-click results results-area retry return returns rev-parse reveal revision revisions rewire rewrite rewrites right right- right-0 right-hsp-lg ring-2 ring-accent risking ro robots role roles root rotate-180 rotate-90 round round-trip rounded rounded-[0.75rem] rounded-bl-[0.25rem] rounded-bl-[1rem] rounded-bl-lg rounded-br-[0.25rem] rounded-br-[1rem] rounded-full rounded-lg rounded-md rounded-t-[1rem] rounds route routed router routes routes-src routes/sitemap.xml row row-span-2 row-start-1 row-start-2 rp rs rt ruby rule rules run running runs runtime rust s safe safely safer same same-locale samp sans sans-serif scale scanned scanning scheme scoped scoping score scored script script- script-eval script-evaluation script-injection scripts scroll scrollbar scrolled scrollend scrolling scss seam search search-index section section- see seed segment segments sehen select select-none selection-bg selection-fg selector self self-contained self-hosted self-start self-stretch semantic semibold semver sentinel separator serialised serialize server server-rendered session set sets setting settles setup sh shadow shadow-[0_1px_3px_color-mix(in_srgb,var(--color-fg)_8%,transparent)] shadow-lg shadow-md shadowed shape share shared sharing shell ship shipped ships short shortcut should show shown shrink-0 sidebar sidebar- sidebar-toggle-island sidebar-tree-island sidebar-w sidecar signal silently similarity simple since single single-line single-object-literal singular site site-search site-tree-nav-island sitemap- sites size size-icon-lg skill skills skip skipped skipping skips slash slot slug slug-dir-parity slugs sm:block sm:border sm:border-muted sm:col-start-2 sm:flex sm:flex-row sm:gap-x-hsp-xl sm:grid sm:grid-cols-2 sm:grid-cols-[minmax(0,1fr)_auto] sm:grid-cols-subgrid sm:h-auto sm:hidden sm:items-center sm:justify-between sm:max-h-[80vh] sm:max-w-[52rem] sm:mr-0 sm:mx-auto sm:my-[10vh] sm:rounded-lg sm:row-span-2 sm:row-start-1 small smol-toml smooth snapping snapshot snapshots so soft soft-nav solid some somehow sort source sources space-y-vsp-2xs space-y-vsp-lg space-y-vsp-sm spacing spacing-0 spacing-px span spans spec specifiers specify spelling splitter spread spurious sql square sr-only src srcset stable stack stale standalone start state state- state:state- statement statements status stay staying sticky still stock stop stops stored straddles stray strict string strings strip stripe strips stroke-linecap stroke-linejoin stroke-width strong stronger stub-rendered style style-attribute styled styles stylesheet sub subagents subsequent substitute substitution subtracting success successful summary sup supply supported surface surfaces survives svg swap swapped swaps swift switcher switching symlink synchronous synchronously syntactically syntax t tab tab-item tab-panel tabindex table tablist tabpanel tabs tabs-container tabs-content tabs-nav tabular-nums tag tag- tag-item- tagged tags tags:audit take tar tbody td temp-element template temporary temporary-element terminal terms test-results tested text text-accent text-bg text-body text-caption text-center text-chat-assistant-text text-chat-user-text text-code-fg text-danger text-decoration text-display text-fg text-fg/60 text-heading text-info text-left text-micro text-muted text-muted/50 text-right text-scale-2xl text-scale-2xs text-scale-lg text-scale-md text-scale-sm text-scale-xl text-scale-xs text-small text-title text-warning text/css text/csv text/html text/javascript text/jsx text/markdown text/mdx text/plain text/tab-separated-values text/tsx text/typescript text/x-c text/x-csharp text/x-go text/x-java-source text/x-kotlin text/x-python text/x-ruby text/x-rust text/x-scss text/x-shellscript text/x-swift textarea tfoot tgz th than that the thead their them theme theme-color theme-pack theme-pack-changed theme-packs theme-packs/index.json theme-toggle theme/token then there these they this those though three threw through throw throws tighten time timeline tip title tkhd to toast toc toggle toggle- toggle-ai-chat toggle-design-token-panel toggles toggling token tokens tolerates toml too toolbar tooltip top top-0 top-[3.5rem] top-full top-hsp-2xs top-level total touches tr track tracked tracking-wide tracking-wider trade-off trailing transclude transferred transition transition-[background,color,border-color] transition-[left,color] transition-[right,color] transition-colors transition-transform translate-x-0 translated translations transparent tray treats tree tree-child- tree-item- tree-top- trigger trigger:ai-chat trigger:design-token-panel triggers true truncate truncated try ts tsv tsx turn twitter:card twitter:creator twitter:description twitter:image twitter:site twitter:title two txt type typeface typeof typescript typography u ul umschalten unable unavailable unbalanced unchanged und undefined under underline underlines understand unit-tested unknown unlike unlisted unmaintained unmatchable unobserve unreadable unrelated unreleased unresolvable unresolved unsafe unset unsupported unterminated until unusable unwrapped up up-to-date update updated upper uppercase url use used useful user uses using usual utf-8 utf8 utilities utility v v2 val value value-reader values var variable variant verbatim version version- version-menu version-switcher versions vertical via video video/mp4 video/quicktime video/webm viewer viewing viewport viewports virtual:zudo-doc-asset-bodies virtual:zudo-doc-chrome-bindings virtual:zudo-doc-design-token-panel-config virtual:zudo-doc-route-context visibility visible vocabulary void von vsp vsp-2xl vsp-2xs vsp-3xs vsp-lg vsp-md vsp-sm vsp-xl vsp-xs w w-1/2 w-[0.5rem] w-[0.625rem] w-[0.875rem] w-[1.125rem] w-[1.575rem] w-[1.5rem] w-[1.75rem] w-[12rem] w-[14px] w-[16px] w-[16rem] w-[18px] w-[1em] w-[2.5rem] w-[280px] w-[2rem] w-[320px] w-[360px] w-[6.5rem] w-[90vw] w-[calc(100vw-2rem)] w-[var(--zd-sidebar-w)] w-dvw w-full w-icon-lg w-icon-md w-icon-sm w-icon-xs walk walks want warn warning was watching way wbr wbr- we webm webp website weight went were what when where whereas whether which while whitespace-nowrap whitespace-pre whole whose wide wide-gamut wider-than-scrollbar width will window wins wird wired with without word wordmark working works worktrees would wrap wrapped wrapper wrappers wrapping wraps writing written wrong wrote wurde x xl:flex xl:hidden xlink:href xml y-scrollbar yaml year yet yielded yields yml you your z-dropdown z-local-1 z-modal z-modal-backdrop z-popover z-sidebar z-toolbar zd-asset-code zd-asset-details-rail zd-asset-details-toggle zd-asset-filebar zd-asset-media-grid zd-asset-media-rail zd-asset-page zd-asset-pdf zd-asset-stage zd-compact-prose zd-content zd-desktop-sidebar-toggle zd-desktop-toc-toggle zd-doc-content-band zd-enlarge-btn zd-enlarge-dialog zd-enlarge-dialog-close zd-enlargeable zd-home-copy zd-home-hero zd-home-inner zd-home-intro zd-home-links zd-home-rule zd-home-sitemap zd-html-preview-code zd-mermaid-dialog zd-mermaid-enlargeable zd-mermaid-tool-btn zd-mermaid-toolbar zd-mermaid-transform zd-mermaid-viewport zd-sidebar-content-wrapper zd-sidebar-open zd-theme-pack-dialog-title zd-toc-col zdtp zfb zfb:after-swap zfb:before-preparation zfb:before-swap zip zod zoom zudo-design-token-panel zudo-design-tokens/v3 zudo-doc zudo-doc-asset-details-visible zudo-doc-code-wrap zudo-doc-design-token-panel-modal zudo-doc-design-tokens zudo-doc-sidebar-visible zudo-doc-sidebar-width zudo-doc-theme zudo-doc-theme-pack zudo-doc-toc-visible zudo-doc-tweak zum");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takazudo/zudo-doc",
3
- "version": "5.22.1",
3
+ "version": "5.23.0",
4
4
  "type": "module",
5
5
  "description": "zudo-doc framework primitives layer that sits on top of zfb's engine — sidebar, theme, TOC, breadcrumb, layouts, head injection, View Transitions, SSR-skip wrappers (per ADR-003).",
6
6
  "license": "MIT",
@@ -720,6 +720,7 @@
720
720
  "yaml": "^2.9.0"
721
721
  },
722
722
  "devDependencies": {
723
+ "@takazudo/mdx-formatter": "1.3.0-next.4",
723
724
  "@takazudo/zfb": "2.16.0",
724
725
  "@takazudo/zfb-md-wasm": "2.16.0",
725
726
  "@takazudo/zfb-runtime": "2.16.0",
@@ -734,7 +735,7 @@
734
735
  "typescript": "^5.0.0",
735
736
  "vitest": "^4.1.0",
736
737
  "zod": "^4.3.6",
737
- "@takazudo/zudo-doc-history-server": "5.22.1"
738
+ "@takazudo/zudo-doc-history-server": "5.23.0"
738
739
  },
739
740
  "scripts": {
740
741
  "gen:search-widget-script": "node scripts/gen-search-widget-script.mjs",