@takazudo/zudo-doc 5.20.0 → 5.21.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 +11 -0
- package/dist/compiled.css +72 -0
- package/dist/config.d.ts +1 -1
- package/dist/config.js +1 -1
- package/dist/content.css +55 -0
- package/dist/factory-context/index.d.ts +2 -0
- package/dist/home-intro/index.d.ts +10 -0
- package/dist/home-intro/index.js +20 -0
- package/dist/home-intro/prepare.d.ts +9 -0
- package/dist/home-intro/prepare.js +93 -0
- package/dist/home-intro/resolve.d.ts +5 -0
- package/dist/home-intro/resolve.js +10 -0
- package/dist/home-intro/types.d.ts +10 -0
- package/dist/home-intro/types.js +0 -0
- package/dist/home-page/index.js +42 -22
- package/dist/i18n-defaults/index.js +2 -0
- package/dist/plugins/routes.js +4 -1
- package/dist/preset.d.ts +5 -1
- package/dist/preset.js +3 -1
- package/dist/route-context/index.js +1 -0
- package/dist/route-context-payload/index.d.ts +2 -0
- package/dist/route-context-payload/index.js +2 -1
- package/dist/route-context-payload/types.d.ts +2 -0
- package/dist/safelist.css +1 -1
- package/dist/settings.d.ts +8 -0
- package/package.json +11 -2
- package/routes-src/_virtual.d.ts +3 -1
- package/virtual-modules.d.ts +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,17 @@ 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.21.0] - 2026-09-09
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
- Added compact Markdown introductions to the home pages. `home.introMarkdown` renders serializable Markdown below the home identity on `/`, and each non-default locale can override it with `LocaleConfig.introMarkdown`. Empty values keep the previous layout, so existing sites are unaffected. (`77ed96b3f`, `8e10ecbc1`)
|
|
16
|
+
- Added `home.sitemapHeading` and `LocaleConfig.sitemapHeading` to override the home sitemap section title. A blank value restores the translated package default. (`77ed96b3f`)
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
- Rendered the home sitemap and tag section headings through one shared component, so both align with the full-width content band instead of the sitemap heading sitting on the narrower inner column. (`849e04a57`)
|
|
21
|
+
|
|
11
22
|
## [5.20.0] - 2026-09-09
|
|
12
23
|
|
|
13
24
|
### Features
|
package/dist/compiled.css
CHANGED
|
@@ -2155,6 +2155,11 @@
|
|
|
2155
2155
|
max-width: 52.5rem;
|
|
2156
2156
|
}
|
|
2157
2157
|
}
|
|
2158
|
+
.lg\:flex-1 {
|
|
2159
|
+
@media (width >= 1024px) {
|
|
2160
|
+
flex: 1;
|
|
2161
|
+
}
|
|
2162
|
+
}
|
|
2158
2163
|
.lg\:grid-cols-3 {
|
|
2159
2164
|
@media (width >= 1024px) {
|
|
2160
2165
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
@@ -2727,6 +2732,73 @@ a.text-accent.underline {
|
|
|
2727
2732
|
border-radius: var(--zdc-admonition-radius, 0 var(--radius-DEFAULT) var(--radius-DEFAULT) 0);
|
|
2728
2733
|
border-left-width: var(--zdc-admonition-border-width, 4px);
|
|
2729
2734
|
}
|
|
2735
|
+
.zd-home-inner {
|
|
2736
|
+
inline-size: 100%;
|
|
2737
|
+
max-inline-size: 60rem;
|
|
2738
|
+
min-inline-size: 0;
|
|
2739
|
+
margin-inline: auto;
|
|
2740
|
+
overflow-wrap: anywhere;
|
|
2741
|
+
}
|
|
2742
|
+
.zd-home-copy, .zd-home-links {
|
|
2743
|
+
min-inline-size: 0;
|
|
2744
|
+
}
|
|
2745
|
+
.zd-home-links {
|
|
2746
|
+
overflow-wrap: anywhere;
|
|
2747
|
+
}
|
|
2748
|
+
.zd-home-rule {
|
|
2749
|
+
inline-size: 100%;
|
|
2750
|
+
margin-block: var(--spacing-vsp-xl);
|
|
2751
|
+
margin-inline: 0;
|
|
2752
|
+
border: 0;
|
|
2753
|
+
border-block-start: 1px solid var(--color-muted);
|
|
2754
|
+
}
|
|
2755
|
+
.zd-compact-prose {
|
|
2756
|
+
min-inline-size: 0;
|
|
2757
|
+
text-align: left;
|
|
2758
|
+
font-size: 1rem;
|
|
2759
|
+
line-height: 1.75;
|
|
2760
|
+
overflow-wrap: anywhere;
|
|
2761
|
+
}
|
|
2762
|
+
.zd-compact-prose > :where(* + *) {
|
|
2763
|
+
margin-top: var(--flow-space, 1rem);
|
|
2764
|
+
}
|
|
2765
|
+
.zd-compact-prose :where(h2, h3, h4, h5, h6) {
|
|
2766
|
+
font-weight: var(--font-weight-bold, 700);
|
|
2767
|
+
line-height: 1.4;
|
|
2768
|
+
padding: 0;
|
|
2769
|
+
border: 0;
|
|
2770
|
+
background: none;
|
|
2771
|
+
}
|
|
2772
|
+
.zd-compact-prose :where(h2) {
|
|
2773
|
+
font-size: 1.3rem;
|
|
2774
|
+
--flow-space: 1.75rem;
|
|
2775
|
+
}
|
|
2776
|
+
.zd-compact-prose :where(h3) {
|
|
2777
|
+
font-size: 1.125rem;
|
|
2778
|
+
--flow-space: 1.5rem;
|
|
2779
|
+
}
|
|
2780
|
+
.zd-compact-prose :where(h4) {
|
|
2781
|
+
font-size: 1rem;
|
|
2782
|
+
--flow-space: 1.25rem;
|
|
2783
|
+
}
|
|
2784
|
+
.zd-compact-prose :where(h5, h6) {
|
|
2785
|
+
font-size: .9375rem;
|
|
2786
|
+
--flow-space: 1.25rem;
|
|
2787
|
+
}
|
|
2788
|
+
.zd-compact-prose > :where(h2, h3, h4, h5, h6) + * {
|
|
2789
|
+
margin-top: .5rem;
|
|
2790
|
+
}
|
|
2791
|
+
.zd-compact-prose > :first-child {
|
|
2792
|
+
margin-top: 0;
|
|
2793
|
+
}
|
|
2794
|
+
.zd-compact-prose :where(pre) {
|
|
2795
|
+
max-inline-size: 100%;
|
|
2796
|
+
overflow-x: auto;
|
|
2797
|
+
}
|
|
2798
|
+
.zd-compact-prose :where(img) {
|
|
2799
|
+
max-inline-size: 100%;
|
|
2800
|
+
block-size: auto;
|
|
2801
|
+
}
|
|
2730
2802
|
.page-loading-overlay {
|
|
2731
2803
|
position: fixed;
|
|
2732
2804
|
inset: 0;
|
package/dist/config.d.ts
CHANGED
|
@@ -143,7 +143,7 @@ export interface ZudoDocConfig {
|
|
|
143
143
|
/**
|
|
144
144
|
* Package-owned home-page layout. Set `wide: true` to let the category grid
|
|
145
145
|
* fill most of the viewport on both `/` and locale home routes.
|
|
146
|
-
* @default { wide: false }
|
|
146
|
+
* @default { wide: false, introMarkdown: "", sitemapHeading: "" }
|
|
147
147
|
*/
|
|
148
148
|
home?: HomeConfig;
|
|
149
149
|
/**
|
package/dist/config.js
CHANGED
package/dist/content.css
CHANGED
|
@@ -533,3 +533,58 @@ a.text-accent.underline {
|
|
|
533
533
|
}
|
|
534
534
|
|
|
535
535
|
/* END --zdc-* component tokens */
|
|
536
|
+
|
|
537
|
+
/* Compact homepage Markdown uses the same non-heading components and tokens.
|
|
538
|
+
* Shared width primitive is also available to the home identity group. */
|
|
539
|
+
.zd-home-inner {
|
|
540
|
+
inline-size: 100%;
|
|
541
|
+
max-inline-size: 60rem;
|
|
542
|
+
min-inline-size: 0;
|
|
543
|
+
margin-inline: auto;
|
|
544
|
+
overflow-wrap: anywhere;
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
.zd-home-copy,
|
|
548
|
+
.zd-home-links {
|
|
549
|
+
min-inline-size: 0;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
.zd-home-links {
|
|
553
|
+
overflow-wrap: anywhere;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
.zd-home-rule {
|
|
557
|
+
inline-size: 100%;
|
|
558
|
+
margin-block: var(--spacing-vsp-xl);
|
|
559
|
+
margin-inline: 0;
|
|
560
|
+
border: 0;
|
|
561
|
+
border-block-start: 1px solid var(--color-muted);
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
.zd-compact-prose {
|
|
565
|
+
min-inline-size: 0;
|
|
566
|
+
text-align: left;
|
|
567
|
+
font-size: 1rem;
|
|
568
|
+
line-height: 1.75;
|
|
569
|
+
overflow-wrap: anywhere;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
.zd-compact-prose > :where(* + *) {
|
|
573
|
+
margin-top: var(--flow-space, 1rem);
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
.zd-compact-prose :where(h2, h3, h4, h5, h6) {
|
|
577
|
+
font-weight: var(--font-weight-bold, 700);
|
|
578
|
+
line-height: 1.4;
|
|
579
|
+
padding: 0;
|
|
580
|
+
border: 0;
|
|
581
|
+
background: none;
|
|
582
|
+
}
|
|
583
|
+
.zd-compact-prose :where(h2) { font-size: 1.3rem; --flow-space: 1.75rem; }
|
|
584
|
+
.zd-compact-prose :where(h3) { font-size: 1.125rem; --flow-space: 1.5rem; }
|
|
585
|
+
.zd-compact-prose :where(h4) { font-size: 1rem; --flow-space: 1.25rem; }
|
|
586
|
+
.zd-compact-prose :where(h5, h6) { font-size: .9375rem; --flow-space: 1.25rem; }
|
|
587
|
+
.zd-compact-prose > :where(h2, h3, h4, h5, h6) + * { margin-top: .5rem; }
|
|
588
|
+
.zd-compact-prose > :first-child { margin-top: 0; }
|
|
589
|
+
.zd-compact-prose :where(pre) { max-inline-size: 100%; overflow-x: auto; }
|
|
590
|
+
.zd-compact-prose :where(img) { max-inline-size: 100%; block-size: auto; }
|
|
@@ -124,6 +124,8 @@ export interface RouteContext<S = Settings> extends UrlHelpers, NavSourceDocsAPI
|
|
|
124
124
|
themePackRegistry: ThemePackRegistry | null;
|
|
125
125
|
/** Author-facing asset index, or `null` when the viewer is disabled. */
|
|
126
126
|
assetManifest: AssetManifest | null;
|
|
127
|
+
/** Prepared, serializable homepage introductions. */
|
|
128
|
+
homeIntros: import("../home-intro/types.js").PreparedHomeIntros;
|
|
127
129
|
/** The reconstructed i18n surface. */
|
|
128
130
|
i18n: FactoryI18n;
|
|
129
131
|
/** Default locale code (un-prefixed `/docs/...`). */
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** @jsxRuntime automatic */
|
|
2
|
+
/** @jsxImportSource preact */
|
|
3
|
+
import { h } from "preact";
|
|
4
|
+
import type { PreparedHomeIntro } from "./types.js";
|
|
5
|
+
export type { IntroNode, PreparedHomeIntro, PreparedHomeIntros } from "./types.js";
|
|
6
|
+
export { resolveHomeIntro } from "./resolve.js";
|
|
7
|
+
/** Synchronous SSR view of output produced by home-intro/prepare. No raw HTML sink. */
|
|
8
|
+
export declare function CompactProse({ intro }: {
|
|
9
|
+
intro: PreparedHomeIntro | null | undefined;
|
|
10
|
+
}): h.JSX.Element | null;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx } from "preact/jsx-runtime";
|
|
2
|
+
import { h } from "preact";
|
|
3
|
+
import { defaultComponents } from "../content/index.js";
|
|
4
|
+
import { makeAdmonition } from "../content-admonition/index.js";
|
|
5
|
+
import { resolveHomeIntro } from "./resolve.js";
|
|
6
|
+
const { h2: _h2, h3: _h3, h4: _h4, ...typography } = defaultComponents;
|
|
7
|
+
const components = { ...typography };
|
|
8
|
+
for (const variant of ["note", "tip", "info", "warning", "danger", "caution", "important"]) components[variant] = makeAdmonition(variant);
|
|
9
|
+
function renderNode(node) {
|
|
10
|
+
if (typeof node === "string") return node;
|
|
11
|
+
return h(components[node.tag] ?? node.tag, node.attrs, node.children.map(renderNode));
|
|
12
|
+
}
|
|
13
|
+
function CompactProse({ intro }) {
|
|
14
|
+
if (!intro?.nodes.length) return null;
|
|
15
|
+
return /* @__PURE__ */ jsx("div", { class: "zd-content zd-compact-prose", children: intro.nodes.map(renderNode) });
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
CompactProse,
|
|
19
|
+
resolveHomeIntro
|
|
20
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Settings } from "../settings.js";
|
|
2
|
+
import type { PreparedHomeIntro, PreparedHomeIntros } from "./types.js";
|
|
3
|
+
export type HomeIntroSettings = Pick<Settings, "home" | "locales" | "defaultLocale" | "base" | "mermaid" | "transclude">;
|
|
4
|
+
/** URL context is the localized homepage, never an invented Markdown file. */
|
|
5
|
+
export declare function resolveIntroUrl(value: string, settings: Pick<HomeIntroSettings, "base" | "defaultLocale">, locale: string, image?: boolean): string;
|
|
6
|
+
/** Async preparation seam. No author JavaScript is ever compiled or evaluated. */
|
|
7
|
+
export declare function prepareHomeIntro(source: string, settings: HomeIntroSettings, locale: string): Promise<PreparedHomeIntro | null>;
|
|
8
|
+
/** Prepare every configured locale once in the async virtual-context loader. */
|
|
9
|
+
export declare function prepareHomeIntros(settings: HomeIntroSettings): Promise<PreparedHomeIntros>;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { parseFragment } from "parse5";
|
|
2
|
+
import { buildMarkdownFeatures } from "../preset.js";
|
|
3
|
+
import { resolveHomeIntro } from "./resolve.js";
|
|
4
|
+
const origin = "https://home-intro.invalid";
|
|
5
|
+
function resolveIntroUrl(value, settings, locale, image = false) {
|
|
6
|
+
const url = value.trim();
|
|
7
|
+
if (/[\u0000-\u001f\u007f\\]/u.test(url)) throw new Error("home.introMarkdown: URL contains controls or backslashes");
|
|
8
|
+
if (url.startsWith("#")) return url;
|
|
9
|
+
if (url.startsWith("//")) throw new Error("home.introMarkdown: protocol-relative URLs are unsupported");
|
|
10
|
+
const base = `/${settings.base.split("/").filter(Boolean).join("/")}`;
|
|
11
|
+
const prefix = base === "/" ? "" : base;
|
|
12
|
+
const home = `${prefix}/${locale === settings.defaultLocale ? "" : `${locale}/`}`;
|
|
13
|
+
if (url.startsWith("/")) {
|
|
14
|
+
const based = prefix && url !== prefix && !url.startsWith(`${prefix}/`) && !url.startsWith(`${prefix}?`) && !url.startsWith(`${prefix}#`) ? `${prefix}${url}` : url;
|
|
15
|
+
const parsed2 = new URL(based, origin);
|
|
16
|
+
return `${parsed2.pathname}${parsed2.search}${parsed2.hash}`;
|
|
17
|
+
}
|
|
18
|
+
const parsed = new URL(url, `${origin}${home}`);
|
|
19
|
+
const allowed = image ? ["https:", "http:"] : ["https:", "http:", "mailto:", "tel:"];
|
|
20
|
+
if (!allowed.includes(parsed.protocol)) throw new Error(`home.introMarkdown: unsafe URL scheme ${parsed.protocol}`);
|
|
21
|
+
if (!/^[a-z][a-z0-9+.-]*:/iu.test(url)) return `${parsed.pathname}${parsed.search}${parsed.hash}`;
|
|
22
|
+
return url;
|
|
23
|
+
}
|
|
24
|
+
function inspect(node, settings, locale, source = "") {
|
|
25
|
+
if (node.type === "mdxTextExpression" && (source.slice(node.position.end.offset, node.position.end.offset + 2) === "^{" || source[node.position.start.offset - 1] === "^")) return;
|
|
26
|
+
if (node.type === "html" || node.type.startsWith("mdx") || node.type === "yaml" || node.type.endsWith("Directive")) {
|
|
27
|
+
throw new Error(`home.introMarkdown: unsupported ${node.type} at line ${node.position.start.line}; use plain Markdown, without HTML, JSX, imports, frontmatter or directives`);
|
|
28
|
+
}
|
|
29
|
+
if (node.type === "paragraph" && Array.isArray(node.children) && node.children[0]?.type === "text") {
|
|
30
|
+
const first = node.children[0].value.trimStart();
|
|
31
|
+
if (["import", "export"].includes(first.split(/\s+/u)[0] ?? "")) {
|
|
32
|
+
throw new Error("home.introMarkdown: import/export statements are unsupported");
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
if ("url" in node && typeof node.url === "string") resolveIntroUrl(node.url, settings, locale, node.type === "image");
|
|
36
|
+
if ("children" in node && Array.isArray(node.children)) for (const child of node.children) inspect(child, settings, locale, source);
|
|
37
|
+
}
|
|
38
|
+
const allowedTags = new Set("p h1 h2 h3 h4 h5 h6 a img em strong del ul ol li blockquote pre code span br hr table thead tbody tr th td input div ruby rb rt rp note tip info warning danger caution important".split(" "));
|
|
39
|
+
const plainAttrs = /* @__PURE__ */ new Set(["title", "alt", "class", "id", "start", "align", "width", "height", "data-mermaid", "data-lang"]);
|
|
40
|
+
function prepareNode(node, settings, locale) {
|
|
41
|
+
if (node.nodeName === "#text") return node.value;
|
|
42
|
+
if (!("tagName" in node)) return null;
|
|
43
|
+
if (!allowedTags.has(node.tagName) || node.namespaceURI !== "http://www.w3.org/1999/xhtml") throw new Error(`home.introMarkdown: unsupported rendered element ${node.tagName}`);
|
|
44
|
+
if (node.tagName === "a" && node.attrs.some((attr) => attr.name === "class" && attr.value.split(" ").includes("hash-link"))) return null;
|
|
45
|
+
const attrs = {};
|
|
46
|
+
for (const { name, value } of node.attrs) {
|
|
47
|
+
if (name === "href" && node.tagName === "a") attrs.href = resolveIntroUrl(value, settings, locale);
|
|
48
|
+
else if (name === "src" && node.tagName === "img") attrs.src = resolveIntroUrl(value, settings, locale, true);
|
|
49
|
+
else if (name === "style" && ["th", "td"].includes(node.tagName) && ["text-align: left", "text-align: center", "text-align: right"].includes(value)) attrs.style = value;
|
|
50
|
+
else if (plainAttrs.has(name)) attrs[name === "class" ? "className" : name] = value;
|
|
51
|
+
else if (node.tagName === "input" && name === "type" && value === "checkbox") attrs.type = value;
|
|
52
|
+
else if (node.tagName === "input" && (name === "checked" || name === "disabled")) attrs[name] = true;
|
|
53
|
+
else throw new Error(`home.introMarkdown: unsupported rendered attribute ${name}`);
|
|
54
|
+
}
|
|
55
|
+
if (node.tagName === "input") {
|
|
56
|
+
attrs.type = "checkbox";
|
|
57
|
+
attrs.disabled = true;
|
|
58
|
+
}
|
|
59
|
+
return { tag: node.tagName === "h1" ? "h2" : node.tagName, attrs, children: node.childNodes.map((child) => prepareNode(child, settings, locale)).filter((child) => child !== null) };
|
|
60
|
+
}
|
|
61
|
+
async function prepareHomeIntro(source, settings, locale) {
|
|
62
|
+
if (!source.trim()) return null;
|
|
63
|
+
const [{ parseToAst }, { renderHtml }] = await Promise.all([
|
|
64
|
+
import("@takazudo/zfb-md-wasm/parse"),
|
|
65
|
+
import("@takazudo/zfb-md-wasm/render")
|
|
66
|
+
]).catch((cause) => {
|
|
67
|
+
throw new Error("home.introMarkdown: the public @takazudo/zfb-md-wasm parse/render peer is required for nonblank introductions", { cause });
|
|
68
|
+
});
|
|
69
|
+
const parsed = await parseToAst(source, { dialect: "markdown", directives: true, frontmatter: "node" });
|
|
70
|
+
if (!parsed.ast) throw new Error(`home.introMarkdown: ${parsed.diagnostics.map((d) => d.message).join("; ")}`);
|
|
71
|
+
inspect(parsed.ast, settings, locale);
|
|
72
|
+
const mdx = await parseToAst(source, { dialect: "mdx", frontmatter: "none" });
|
|
73
|
+
if (mdx.ast) inspect(mdx.ast, settings, locale, source);
|
|
74
|
+
const features = buildMarkdownFeatures(settings, {});
|
|
75
|
+
for (const feature of ["transclude", "imageDimensions", "linkValidation", "codeTabs", "codeEnrichment", "tocExport", "readingTime", "headingMarkerToc"]) delete features[feature];
|
|
76
|
+
const rendered = await renderHtml(source, { dialect: "markdown", pipeline: { gfm: { taskListItem: true, strikethrough: true, table: true, autolinkLiteral: true }, codeHighlight: { mode: "class" }, features } });
|
|
77
|
+
if (rendered.html === null || rendered.diagnostics.length) throw new Error(`home.introMarkdown: ${rendered.diagnostics.map((d) => d.message).join("; ")}`);
|
|
78
|
+
const nodes = parseFragment(rendered.html).childNodes.map((node) => prepareNode(node, settings, locale)).filter((node) => node !== null);
|
|
79
|
+
return nodes.length ? { nodes } : null;
|
|
80
|
+
}
|
|
81
|
+
async function prepareHomeIntros(settings) {
|
|
82
|
+
const result = {};
|
|
83
|
+
if (!settings.home?.introMarkdown?.trim() && !Object.values(settings.locales ?? {}).some((locale) => locale.introMarkdown?.trim())) return result;
|
|
84
|
+
for (const locale of /* @__PURE__ */ new Set([settings.defaultLocale, ...Object.keys(settings.locales ?? {})])) {
|
|
85
|
+
result[locale] = await prepareHomeIntro(resolveHomeIntro(settings, locale, "").introMarkdown, settings, locale);
|
|
86
|
+
}
|
|
87
|
+
return result;
|
|
88
|
+
}
|
|
89
|
+
export {
|
|
90
|
+
prepareHomeIntro,
|
|
91
|
+
prepareHomeIntros,
|
|
92
|
+
resolveIntroUrl
|
|
93
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
function resolveHomeIntro(settings, locale, translatedSitemapHeading) {
|
|
2
|
+
const localized = settings.locales[locale];
|
|
3
|
+
return {
|
|
4
|
+
introMarkdown: localized?.introMarkdown ?? settings.home?.introMarkdown ?? "",
|
|
5
|
+
sitemapHeading: (localized?.sitemapHeading ?? settings.home?.sitemapHeading)?.trim() || translatedSitemapHeading
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
resolveHomeIntro
|
|
10
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** Safe, serializable production-renderer output. Only the preparation helper creates it. */
|
|
2
|
+
export type IntroNode = string | {
|
|
3
|
+
tag: string;
|
|
4
|
+
attrs: Record<string, string | boolean>;
|
|
5
|
+
children: IntroNode[];
|
|
6
|
+
};
|
|
7
|
+
export interface PreparedHomeIntro {
|
|
8
|
+
nodes: IntroNode[];
|
|
9
|
+
}
|
|
10
|
+
export type PreparedHomeIntros = Record<string, PreparedHomeIntro | null>;
|
|
File without changes
|
package/dist/home-page/index.js
CHANGED
|
@@ -3,6 +3,7 @@ import { Fragment as Fragment2 } from "preact";
|
|
|
3
3
|
import { Island } from "@takazudo/zfb";
|
|
4
4
|
import { AutoLogo } from "../auto-logo/index.js";
|
|
5
5
|
import { DocLayoutWithDefaults } from "../doclayout/index.js";
|
|
6
|
+
import { CompactProse, resolveHomeIntro } from "../home-intro/index.js";
|
|
6
7
|
import { SiteTreeNav } from "../site-tree-nav-island/index.js";
|
|
7
8
|
import { TagNav } from "../nav-indexing/tag-nav.js";
|
|
8
9
|
import { CategoryLinkIcon } from "../tree-nav-shared/index.js";
|
|
@@ -12,6 +13,9 @@ import { deriveComposeMetaTitle, deriveBodyEndIslands, deriveDateFormats } from
|
|
|
12
13
|
import { derivePrimaryChromeSlots } from "../chrome/primary-slots.js";
|
|
13
14
|
import { assertChromeContext } from "../chrome/assert-chrome-context.js";
|
|
14
15
|
import { prepareHomeData } from "./prepare-home-data.js";
|
|
16
|
+
function HomeSectionHeading({ children }) {
|
|
17
|
+
return /* @__PURE__ */ jsx("h2", { class: "text-title font-bold mb-vsp-md", children });
|
|
18
|
+
}
|
|
15
19
|
function cssUrl(url) {
|
|
16
20
|
return `url("${url.replace(/[\\"]/g, "\\$&")}")`;
|
|
17
21
|
}
|
|
@@ -28,6 +32,7 @@ function createHomePageView(ctx) {
|
|
|
28
32
|
const { Header: HeaderWithDefaults, Footer: FooterWithDefaults } = derivePrimaryChromeSlots(ctx);
|
|
29
33
|
const BodyEndIslands = deriveBodyEndIslands(ctx);
|
|
30
34
|
const homeExtras = ctx.hostBindings.homeExtras;
|
|
35
|
+
const homeIntros = ctx.homeIntros;
|
|
31
36
|
const dataThemePack = resolveThemePackSsrSlug(
|
|
32
37
|
ctx.themePackRegistry,
|
|
33
38
|
ctx.settings
|
|
@@ -49,11 +54,18 @@ function createHomePageView(ctx) {
|
|
|
49
54
|
const primary = heroLink ? { href: withBase(`${prefix}${heroLink.path}`), label: t(heroLink.labelKey, locale) } : ctaNav ? { href: withBase(`${prefix}${ctaNav.path}`), label: t("nav.overview", locale) } : null;
|
|
50
55
|
const logoSetting = settings.logo ?? "auto";
|
|
51
56
|
const resolvedExtras = extras ?? homeExtras?.({ locale });
|
|
57
|
+
const intro = homeIntros?.[locale] ?? null;
|
|
58
|
+
const hasIntro = Boolean(intro?.nodes.length);
|
|
59
|
+
const sitemapHeading = resolveHomeIntro(
|
|
60
|
+
settings,
|
|
61
|
+
locale,
|
|
62
|
+
t("home.sitemapHeading", locale)
|
|
63
|
+
).sitemapHeading;
|
|
52
64
|
const hasExtras = resolvedExtras != null && typeof resolvedExtras !== "boolean";
|
|
53
65
|
const rowItems = [];
|
|
54
66
|
if (primary) {
|
|
55
67
|
rowItems.push(
|
|
56
|
-
/* @__PURE__ */ jsx("a", { href: primary.href, class: "
|
|
68
|
+
/* @__PURE__ */ jsx("a", { href: primary.href, class: "text-fg underline hover:text-accent", children: primary.label })
|
|
57
69
|
);
|
|
58
70
|
}
|
|
59
71
|
if (settings.githubUrl) {
|
|
@@ -62,7 +74,7 @@ function createHomePageView(ctx) {
|
|
|
62
74
|
"a",
|
|
63
75
|
{
|
|
64
76
|
href: settings.githubUrl,
|
|
65
|
-
class: "inline-flex items-center gap-[0.3em]
|
|
77
|
+
class: "inline-flex items-center gap-[0.3em] text-fg underline hover:text-accent",
|
|
66
78
|
target: "_blank",
|
|
67
79
|
rel: "noopener noreferrer",
|
|
68
80
|
children: [
|
|
@@ -99,7 +111,7 @@ function createHomePageView(ctx) {
|
|
|
99
111
|
bodyEndComponents: /* @__PURE__ */ jsx(BodyEndIslands, { basePath: settings.base ?? "/" }),
|
|
100
112
|
enableClientRouter: settings.dynamicPageTransition,
|
|
101
113
|
children: [
|
|
102
|
-
/* @__PURE__ */ jsx("div", { class: "
|
|
114
|
+
/* @__PURE__ */ jsx("div", { class: "zd-home-hero mb-vsp-xl", children: /* @__PURE__ */ jsxs("div", { class: "zd-home-inner flex flex-col items-center justify-center text-center gap-hsp-md lg:flex-row lg:text-left lg:gap-hsp-xl", children: [
|
|
103
115
|
logoSetting === "auto" ? /* @__PURE__ */ jsx(
|
|
104
116
|
AutoLogo,
|
|
105
117
|
{
|
|
@@ -117,32 +129,40 @@ function createHomePageView(ctx) {
|
|
|
117
129
|
"aria-hidden": "true"
|
|
118
130
|
}
|
|
119
131
|
) : null,
|
|
120
|
-
/* @__PURE__ */ jsxs("div", { class: "min-w-0", children: [
|
|
132
|
+
/* @__PURE__ */ jsxs("div", { class: "zd-home-copy min-w-0 lg:flex-1", children: [
|
|
121
133
|
/* @__PURE__ */ jsx("h1", { class: "text-heading font-bold mb-vsp-2xs break-words", children: settings.siteName }),
|
|
122
134
|
/* @__PURE__ */ jsx("p", { class: "text-muted text-small mb-vsp-sm", children: settings.locales[locale]?.description ?? settings.siteDescription }),
|
|
123
|
-
/* @__PURE__ */ jsx("div", { class: "flex flex-wrap items-center justify-center lg:justify-start gap-hsp-md text-small", children: rowItems.map((item, index) => /* @__PURE__ */ jsxs(Fragment2, { children: [
|
|
135
|
+
/* @__PURE__ */ jsx("div", { class: "zd-home-links flex flex-wrap items-center justify-center lg:justify-start gap-hsp-md text-small", children: rowItems.map((item, index) => /* @__PURE__ */ jsxs(Fragment2, { children: [
|
|
124
136
|
index > 0 && /* @__PURE__ */ jsx("span", { class: "text-muted", children: "/" }),
|
|
125
137
|
item
|
|
126
138
|
] }, index)) })
|
|
127
139
|
] })
|
|
128
140
|
] }) }),
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
children: /* @__PURE__ */ jsx(
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
141
|
+
hasIntro && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
142
|
+
/* @__PURE__ */ jsx("hr", { class: "zd-home-rule", "data-home-rule": "upper" }),
|
|
143
|
+
/* @__PURE__ */ jsx("div", { class: "zd-home-intro", children: /* @__PURE__ */ jsx("div", { class: "zd-home-inner", children: /* @__PURE__ */ jsx(CompactProse, { intro }) }) })
|
|
144
|
+
] }),
|
|
145
|
+
/* @__PURE__ */ jsx("hr", { class: "zd-home-rule", "data-home-rule": "lower" }),
|
|
146
|
+
/* @__PURE__ */ jsxs("section", { class: "zd-home-sitemap", children: [
|
|
147
|
+
/* @__PURE__ */ jsx(HomeSectionHeading, { children: sitemapHeading }),
|
|
148
|
+
Island({
|
|
149
|
+
when: "idle",
|
|
150
|
+
children: /* @__PURE__ */ jsx(
|
|
151
|
+
SiteTreeNav,
|
|
152
|
+
{
|
|
153
|
+
tree,
|
|
154
|
+
categoryOrder,
|
|
155
|
+
categoryIgnore,
|
|
156
|
+
initiallyCollapsedCategorySlugs,
|
|
157
|
+
locale,
|
|
158
|
+
updatedLabel: t("doc.updated", locale),
|
|
159
|
+
dateFormats: dateFormatsFor(locale)
|
|
160
|
+
}
|
|
161
|
+
)
|
|
162
|
+
})
|
|
163
|
+
] }),
|
|
144
164
|
settings.docTags && tagCount > 0 && /* @__PURE__ */ jsx("section", { class: "mt-vsp-xl", children: tags && tags.length > 0 ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
145
|
-
/* @__PURE__ */ jsx(
|
|
165
|
+
/* @__PURE__ */ jsx(HomeSectionHeading, { children: t("doc.tags", locale) }),
|
|
146
166
|
/* @__PURE__ */ jsx(
|
|
147
167
|
TagNav,
|
|
148
168
|
{
|
|
@@ -171,7 +191,7 @@ function createHomePageView(ctx) {
|
|
|
171
191
|
// reproduce the pre-#3027 single "All Tags" link so existing
|
|
172
192
|
// `@takazudo/zudo-doc/home-page` consumers are unaffected.
|
|
173
193
|
/* @__PURE__ */ jsxs(Fragment, { children: [
|
|
174
|
-
/* @__PURE__ */ jsx(
|
|
194
|
+
/* @__PURE__ */ jsx(HomeSectionHeading, { children: t("doc.allTags", locale) }),
|
|
175
195
|
/* @__PURE__ */ jsx(
|
|
176
196
|
"a",
|
|
177
197
|
{
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const defaultTranslations = {
|
|
2
2
|
en: {
|
|
3
|
+
"home.sitemapHeading": "Explore the documentation",
|
|
3
4
|
"nav.gettingStarted": "Getting Started",
|
|
4
5
|
"nav.learn": "Learn",
|
|
5
6
|
"nav.guides": "Guides",
|
|
@@ -128,6 +129,7 @@ const defaultTranslations = {
|
|
|
128
129
|
"version.page.docs": "Docs"
|
|
129
130
|
},
|
|
130
131
|
ja: {
|
|
132
|
+
"home.sitemapHeading": "\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u3092\u63A2\u3059",
|
|
131
133
|
"nav.gettingStarted": "\u306F\u3058\u3081\u306B",
|
|
132
134
|
"nav.learn": "\u5B66\u3076",
|
|
133
135
|
"nav.guides": "\u30AC\u30A4\u30C9",
|
package/dist/plugins/routes.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { prepareHomeIntros } from "../home-intro/prepare.js";
|
|
1
2
|
import { createRequire } from "node:module";
|
|
2
3
|
import { existsSync, statSync, readFileSync, cpSync, rmSync, mkdirSync } from "node:fs";
|
|
3
4
|
import { dirname, basename, join } from "node:path";
|
|
@@ -242,6 +243,7 @@ const plugin = definePlugin({
|
|
|
242
243
|
async () => {
|
|
243
244
|
beginLoader("context");
|
|
244
245
|
if (assetViewer && !highlightCodeReady) await assetBodiesLoader(false);
|
|
246
|
+
const homeIntros = await prepareHomeIntros(settings);
|
|
245
247
|
const assetManifest = assetViewer ? (await getSnapshot()).manifest : null;
|
|
246
248
|
return `export const routeContext = ${JSON.stringify({
|
|
247
249
|
settings,
|
|
@@ -249,7 +251,8 @@ const plugin = definePlugin({
|
|
|
249
251
|
tagVocabulary,
|
|
250
252
|
colorSchemes,
|
|
251
253
|
themePackRegistry,
|
|
252
|
-
assetManifest
|
|
254
|
+
assetManifest,
|
|
255
|
+
homeIntros
|
|
253
256
|
})};
|
|
254
257
|
`;
|
|
255
258
|
},
|
package/dist/preset.d.ts
CHANGED
|
@@ -34,11 +34,12 @@
|
|
|
34
34
|
*/
|
|
35
35
|
import { z } from "zod";
|
|
36
36
|
import type { ColorScheme } from "./color-scheme-utils.js";
|
|
37
|
-
import type { AssetViewerIndexingConfig, TagVocabularyEntry, FaviconConfig } from "./settings.js";
|
|
37
|
+
import type { AssetViewerIndexingConfig, TagVocabularyEntry, FaviconConfig, HomeConfig } from "./settings.js";
|
|
38
38
|
import type { DirectiveSpec } from "@takazudo/zfb/config";
|
|
39
39
|
/** A single locale's content directory (`settings.locales[code]`). */
|
|
40
40
|
export interface PresetLocaleConfig {
|
|
41
41
|
dir: string;
|
|
42
|
+
introMarkdown?: string;
|
|
42
43
|
}
|
|
43
44
|
/** A single docs version (`settings.versions[n]`). */
|
|
44
45
|
export interface PresetVersionConfig {
|
|
@@ -94,6 +95,8 @@ export interface PresetSettings {
|
|
|
94
95
|
base: string;
|
|
95
96
|
siteName: string;
|
|
96
97
|
siteDescription: string;
|
|
98
|
+
/** Serializable home prose requires the preparation virtual module even with host routes. */
|
|
99
|
+
home?: HomeConfig;
|
|
97
100
|
/**
|
|
98
101
|
* Home-hero logo. `zudoDocPreset()` doesn't otherwise consume this field —
|
|
99
102
|
* rendering happens in `home-page/index.tsx` against the full `Settings`
|
|
@@ -311,3 +314,4 @@ export interface ZudoDocPresetResult {
|
|
|
311
314
|
* ```
|
|
312
315
|
*/
|
|
313
316
|
export declare function zudoDocPreset({ settings, buildDocsSchema, directiveVocabulary, translations, tagVocabulary, colorSchemes, }: ZudoDocPresetArgs): ZudoDocPresetResult;
|
|
317
|
+
export declare function buildMarkdownFeatures(settings: Pick<PresetSettings, "mermaid" | "transclude">, directiveVocabulary: DirectiveVocabulary): Record<string, boolean | Record<string, unknown>>;
|
package/dist/preset.js
CHANGED
|
@@ -129,6 +129,7 @@ function buildPlugins(settings, routeContext) {
|
|
|
129
129
|
Object.entries(settings.locales).map(([code, locale]) => [code, { dir: locale.dir }])
|
|
130
130
|
);
|
|
131
131
|
const effectivePackageOwnedRoutes = settings.packageOwnedRoutes ?? true;
|
|
132
|
+
const homeIntro = Boolean(settings.home?.introMarkdown?.trim()) || Object.values(settings.locales).some((locale) => Boolean(locale.introMarkdown?.trim()));
|
|
132
133
|
const assetViewer = settings.assetViewer === true;
|
|
133
134
|
const assetViewerDir = settings.assetViewerDir ?? "assets";
|
|
134
135
|
const assetViewerRoutePrefix = settings.assetViewerRoutePrefix ?? "files";
|
|
@@ -177,7 +178,7 @@ function buildPlugins(settings, routeContext) {
|
|
|
177
178
|
// the route catalog from `settings.locales` / `settings.versions`. Listed
|
|
178
179
|
// FIRST so an injected route is registered before the other plugins'
|
|
179
180
|
// preBuild work runs (ordering is cosmetic — injection happens in `setup`).
|
|
180
|
-
...effectivePackageOwnedRoutes || assetViewer ? [
|
|
181
|
+
...effectivePackageOwnedRoutes || assetViewer || homeIntro ? [
|
|
181
182
|
{
|
|
182
183
|
name: "@takazudo/zudo-doc/plugins/routes",
|
|
183
184
|
options: {
|
|
@@ -294,5 +295,6 @@ function buildPlugins(settings, routeContext) {
|
|
|
294
295
|
];
|
|
295
296
|
}
|
|
296
297
|
export {
|
|
298
|
+
buildMarkdownFeatures,
|
|
297
299
|
zudoDocPreset
|
|
298
300
|
};
|
|
@@ -55,6 +55,8 @@ export interface CreateRouteContextPayloadInput {
|
|
|
55
55
|
themePackRegistry?: ThemePackRegistry | null;
|
|
56
56
|
/** Author-facing asset index replacement. `null` forces the feature inert. */
|
|
57
57
|
assetManifest?: AssetManifest | null;
|
|
58
|
+
/** Trusted output of the async server home-intro/prepare helper. */
|
|
59
|
+
homeIntros?: import("../home-intro/types.js").PreparedHomeIntros;
|
|
58
60
|
}
|
|
59
61
|
/**
|
|
60
62
|
* Build the serializable payload consumed by `createRouteContext` from plain
|
|
@@ -41,7 +41,8 @@ function createRouteContextPayload(input) {
|
|
|
41
41
|
tagVocabulary: input.tagVocabulary ?? [],
|
|
42
42
|
colorSchemes: input.colorSchemes === void 0 ? defaultColorSchemes : input.colorSchemes,
|
|
43
43
|
themePackRegistry,
|
|
44
|
-
assetManifest: input.assetManifest ?? null
|
|
44
|
+
assetManifest: input.assetManifest ?? null,
|
|
45
|
+
homeIntros: input.homeIntros ?? {}
|
|
45
46
|
};
|
|
46
47
|
}
|
|
47
48
|
export {
|
|
@@ -149,4 +149,6 @@ export interface RouteContextPayload<S = Settings> {
|
|
|
149
149
|
themePackRegistry?: ThemePackRegistry | null;
|
|
150
150
|
/** Asset-viewer index payload. Omitted by older hosts; omission is inert. */
|
|
151
151
|
assetManifest?: AssetManifest | null;
|
|
152
|
+
/** Safe per-locale homepage content prepared by the server plugin. */
|
|
153
|
+
homeIntros?: import("../home-intro/types.js").PreparedHomeIntros;
|
|
152
154
|
}
|
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] [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-top all allow allow-same-origin allow-scripts allowed alone already already-executed already-multiline already-picked also 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 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 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 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 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-kbd-shortcut data-lang data-language-menu data-language-switcher data-language-toggle data-loading-index 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 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 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 identical idle idx if iframe ignoring image image-enlarge image-overlay-inset image/avif image/gif image/jpeg image/png image/webp image/x-icon img implementation import 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 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-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 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 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 paren-balance-aware parent parse 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 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 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 rs 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 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 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 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 unset unsupported unterminated until unusable unwrapped up up-to-date update updated uppercase 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-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-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] [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 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 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 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 ignoring image image-enlarge image-overlay-inset image/avif image/gif image/jpeg image/png image/webp image/x-icon img 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 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 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 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");
|
package/dist/settings.d.ts
CHANGED
|
@@ -74,6 +74,10 @@ export interface LocaleConfig {
|
|
|
74
74
|
* intentional and renders a blank description.
|
|
75
75
|
*/
|
|
76
76
|
description?: string;
|
|
77
|
+
/** Serializable Markdown introduction. Empty disables the home fallback. @default undefined */
|
|
78
|
+
introMarkdown?: string;
|
|
79
|
+
/** Sitemap title override. Blank restores the translated default. @default undefined */
|
|
80
|
+
sitemapHeading?: string;
|
|
77
81
|
}
|
|
78
82
|
export interface FooterLinkItem {
|
|
79
83
|
label: string;
|
|
@@ -168,6 +172,10 @@ export interface AssetViewerIndexingConfig {
|
|
|
168
172
|
export interface HomeConfig {
|
|
169
173
|
/** Widen the home content band for larger multi-column navigation grids. */
|
|
170
174
|
wide?: boolean;
|
|
175
|
+
/** Optional serializable Markdown below the home identity. @default "" */
|
|
176
|
+
introMarkdown?: string;
|
|
177
|
+
/** Sitemap title; blank uses the translated package label. @default "" */
|
|
178
|
+
sitemapHeading?: string;
|
|
171
179
|
}
|
|
172
180
|
export type TagPlacement = "after-title" | "before-pager";
|
|
173
181
|
/** Per-role date-format patterns. Each key independently opts into a pattern. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@takazudo/zudo-doc",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.21.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",
|
|
@@ -251,6 +251,14 @@
|
|
|
251
251
|
"types": "./dist/theme-packs-registry/index.d.ts",
|
|
252
252
|
"default": "./dist/theme-packs-registry/index.js"
|
|
253
253
|
},
|
|
254
|
+
"./home-intro": {
|
|
255
|
+
"types": "./dist/home-intro/index.d.ts",
|
|
256
|
+
"default": "./dist/home-intro/index.js"
|
|
257
|
+
},
|
|
258
|
+
"./home-intro/prepare": {
|
|
259
|
+
"types": "./dist/home-intro/prepare.d.ts",
|
|
260
|
+
"default": "./dist/home-intro/prepare.js"
|
|
261
|
+
},
|
|
254
262
|
"./theme.css": "./dist/theme.css",
|
|
255
263
|
"./theme-no-reset.css": "./dist/theme-no-reset.css",
|
|
256
264
|
"./safelist.css": "./dist/safelist.css",
|
|
@@ -700,6 +708,7 @@
|
|
|
700
708
|
"esbuild": ">=0.28.1",
|
|
701
709
|
"fs-extra": "^11.3.0",
|
|
702
710
|
"minimist": "^1.2.8",
|
|
711
|
+
"parse5": "^8.0.1",
|
|
703
712
|
"picocolors": "^1.1.1",
|
|
704
713
|
"pluralize": "^8.0.0",
|
|
705
714
|
"smol-toml": "^1.8.0",
|
|
@@ -721,7 +730,7 @@
|
|
|
721
730
|
"typescript": "^5.0.0",
|
|
722
731
|
"vitest": "^4.1.0",
|
|
723
732
|
"zod": "^4.3.6",
|
|
724
|
-
"@takazudo/zudo-doc-history-server": "5.
|
|
733
|
+
"@takazudo/zudo-doc-history-server": "5.21.0"
|
|
725
734
|
},
|
|
726
735
|
"scripts": {
|
|
727
736
|
"gen:search-widget-script": "node scripts/gen-search-widget-script.mjs",
|
package/routes-src/_virtual.d.ts
CHANGED
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
//
|
|
6
6
|
// The payload is SERIALIZABLE DATA ONLY (ADR Decision 1): `settings`,
|
|
7
7
|
// `translations`, `tagVocabulary`, `colorSchemes`. `_context.ts` narrows it
|
|
8
|
-
// to the concrete `RouteContextPayload` at the seam.
|
|
8
|
+
// to the concrete `RouteContextPayload` at the seam. The route-only loader
|
|
9
|
+
// also carries prepared homepage introductions in `homeIntros`.
|
|
9
10
|
//
|
|
10
11
|
// SINGLE SOURCE OF TRUTH for three shipped copies (#2656) — edit HERE only:
|
|
11
12
|
// 1. This file itself — typechecks the package's own `src/routes/*.tsx`.
|
|
@@ -34,6 +35,7 @@ declare module "virtual:zudo-doc-route-context" {
|
|
|
34
35
|
* did not thread one. */
|
|
35
36
|
themePackRegistry: Array<Record<string, unknown>> | null;
|
|
36
37
|
assetManifest: import("@takazudo/zudo-doc/route-context-payload").AssetManifest | null;
|
|
38
|
+
homeIntros: import("@takazudo/zudo-doc/home-intro").PreparedHomeIntros;
|
|
37
39
|
};
|
|
38
40
|
}
|
|
39
41
|
|
package/virtual-modules.d.ts
CHANGED
|
@@ -18,7 +18,8 @@
|
|
|
18
18
|
//
|
|
19
19
|
// The payload is SERIALIZABLE DATA ONLY (ADR Decision 1): `settings`,
|
|
20
20
|
// `translations`, `tagVocabulary`, `colorSchemes`. `_context.ts` narrows it
|
|
21
|
-
// to the concrete `RouteContextPayload` at the seam.
|
|
21
|
+
// to the concrete `RouteContextPayload` at the seam. The route-only loader
|
|
22
|
+
// also carries prepared homepage introductions in `homeIntros`.
|
|
22
23
|
//
|
|
23
24
|
// SINGLE SOURCE OF TRUTH for three shipped copies (#2656) — edit HERE only:
|
|
24
25
|
// 1. This file itself — typechecks the package's own `src/routes/*.tsx`.
|
|
@@ -47,6 +48,7 @@ declare module "virtual:zudo-doc-route-context" {
|
|
|
47
48
|
* did not thread one. */
|
|
48
49
|
themePackRegistry: Array<Record<string, unknown>> | null;
|
|
49
50
|
assetManifest: import("@takazudo/zudo-doc/route-context-payload").AssetManifest | null;
|
|
51
|
+
homeIntros: import("@takazudo/zudo-doc/home-intro").PreparedHomeIntros;
|
|
50
52
|
};
|
|
51
53
|
}
|
|
52
54
|
|