@takazudo/zudo-doc 10.0.3 → 12.0.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 +47 -0
- package/dist/agent-docs/search.js +6 -3
- package/dist/asset-index-page/index.js +1 -1
- package/dist/asset-page/index.js +1 -1
- package/dist/asset-path/index.d.ts +2 -0
- package/dist/asset-path/index.js +1 -0
- package/dist/catalog.js +1 -1
- package/dist/chrome/derive.js +14 -2
- package/dist/compiled.css +178 -30
- package/dist/config-assertions/index.d.ts +54 -0
- package/dist/config-assertions/index.js +205 -0
- package/dist/config.d.ts +12 -9
- package/dist/config.js +13 -0
- package/dist/content/index.d.ts +1 -0
- package/dist/content/index.js +2 -0
- package/dist/content/wide-section-heading.d.ts +12 -0
- package/dist/content/wide-section-heading.js +8 -0
- package/dist/content-admonition/index.d.ts +2 -1
- package/dist/content-admonition/index.js +2 -1
- package/dist/doc-body-end-islands/index.d.ts +0 -7
- package/dist/doc-body-end-islands/index.js +0 -6
- package/dist/doc-card-nav/index.d.ts +78 -0
- package/dist/doc-card-nav/index.js +82 -0
- package/dist/doc-card-nav/slug.d.ts +6 -0
- package/dist/doc-card-nav/slug.js +6 -0
- package/dist/doc-page-renderer/index.d.ts +5 -0
- package/dist/doc-page-renderer/index.js +7 -0
- package/dist/doc-page-shell/index.d.ts +12 -0
- package/dist/doc-page-shell/index.js +6 -1
- package/dist/docs-schema/index.d.ts +2 -0
- package/dist/docs-schema/index.js +9 -0
- package/dist/features.css +201 -0
- package/dist/frontmatter-preview-defaults/index.js +3 -1
- package/dist/head-with-defaults/index.d.ts +20 -0
- package/dist/head-with-defaults/index.js +25 -3
- package/dist/home-hero/index.d.ts +36 -0
- package/dist/home-hero/index.js +128 -0
- package/dist/home-page/index.js +157 -58
- package/dist/i18n-defaults/index.js +8 -0
- package/dist/mcp/constants.d.ts +11 -0
- package/dist/mcp/constants.js +20 -0
- package/dist/mcp/discovery.d.ts +45 -0
- package/dist/mcp/discovery.js +138 -0
- package/dist/mcp/handler.js +5 -9
- package/dist/mcp/index.d.ts +3 -0
- package/dist/mcp/index.js +37 -1
- package/dist/md-utils/index.d.ts +6 -1
- package/dist/md-utils/index.js +3 -2
- package/dist/mdx-components/index.js +4 -7
- package/dist/mdx-components/vocabulary.d.ts +19 -0
- package/dist/mdx-components/vocabulary.js +32 -0
- package/dist/nav-indexing/doc-card-grid.d.ts +6 -0
- package/dist/nav-indexing/doc-card-grid.js +26 -16
- package/dist/plugins/internal/agent-export/components.d.ts +27 -0
- package/dist/plugins/internal/agent-export/components.js +125 -0
- package/dist/plugins/internal/agent-export/index.d.ts +4 -0
- package/dist/plugins/internal/agent-export/index.js +29 -8
- package/dist/plugins/internal/agent-export/normalize.d.ts +18 -1
- package/dist/plugins/internal/agent-export/normalize.js +91 -5
- package/dist/plugins/internal/llms-txt/dev-middleware.d.ts +2 -0
- package/dist/plugins/internal/llms-txt/dev-middleware.js +6 -1
- package/dist/plugins/internal/llms-txt/emit.js +8 -1
- package/dist/plugins/internal/llms-txt/generate.d.ts +2 -0
- package/dist/plugins/internal/llms-txt/generate.js +3 -0
- package/dist/plugins/internal/llms-txt/load.js +2 -2
- package/dist/plugins/internal/llms-txt/types.d.ts +4 -0
- package/dist/plugins/internal/search-index/collect.js +5 -4
- package/dist/plugins/internal/search-index/types.d.ts +2 -0
- package/dist/plugins/routes.js +6 -1
- package/dist/preset.d.ts +6 -1
- package/dist/preset.js +13 -1
- package/dist/robots.d.ts +14 -0
- package/dist/robots.js +22 -4
- package/dist/route-enumerators/index.d.ts +63 -2
- package/dist/route-enumerators/index.js +124 -21
- package/dist/routes/404.js +1 -1
- package/dist/routes/_context.d.ts +1 -1
- package/dist/routes/_context.js +6 -0
- package/dist/routes/ai-catalog.d.ts +5 -0
- package/dist/routes/ai-catalog.js +28 -0
- package/dist/routes/mcp-server-card.d.ts +5 -0
- package/dist/routes/mcp-server-card.js +24 -0
- package/dist/routes/sitemap.xml.js +19 -9
- package/dist/settings-defaults.js +1 -1
- package/dist/settings.d.ts +102 -6
- package/dist/sidebar/client-data.d.ts +1 -1
- package/dist/sidebar/client-data.js +2 -0
- package/dist/sidebar/types.d.ts +4 -0
- package/dist/sidebar-tree/build-tree.js +1 -0
- package/dist/sidebar-tree/types.d.ts +4 -0
- package/dist/site-schema/nav-tree.js +2 -0
- package/dist/site-schema/types.d.ts +3 -0
- package/dist/site-tree-nav/index.d.ts +18 -0
- package/dist/site-tree-nav/index.js +18 -3
- package/dist/site-tree-nav/normalize-island-props.d.ts +6 -0
- package/dist/site-tree-nav/normalize-island-props.js +15 -0
- package/dist/site-tree-nav-island/count.d.ts +3 -0
- package/dist/site-tree-nav-island/count.js +11 -0
- package/dist/site-tree-nav-island/index.d.ts +22 -2
- package/dist/site-tree-nav-island/index.js +272 -221
- package/dist/tag-pages/index.d.ts +1 -0
- package/dist/tag-pages/index.js +2 -2
- package/dist/theme-packs/bauhaus/meta.json +1 -1
- package/dist/theme-packs/bauhaus/pack.css +2 -2
- package/dist/theme-packs/beacon/meta.json +1 -1
- package/dist/theme-packs/beacon/pack.css +0 -15
- package/dist/theme-packs/eink/meta.json +1 -1
- package/dist/theme-packs/eink/pack.css +1 -14
- package/dist/theme.css +0 -16
- package/dist/versions-page/index.d.ts +1 -0
- package/dist/versions-page/index.js +1 -1
- package/dist/wind.json +4 -6
- package/eject/content-admonition/index.tsx +4 -9
- package/eject/sidebar/client-data.ts +3 -1
- package/eject/sidebar/types.ts +4 -0
- package/eject/site-tree-nav-island/count.ts +11 -0
- package/eject/site-tree-nav-island/index.tsx +359 -256
- package/package.json +19 -7
- package/routes-src/404.tsx +1 -1
- package/routes-src/_context.ts +3 -0
- package/routes-src/ai-catalog.tsx +26 -0
- package/routes-src/mcp-server-card.tsx +21 -0
- package/routes-src/sitemap.xml.tsx +36 -12
- package/dist/find-in-page/find-bar.d.ts +0 -11
- package/dist/find-in-page/find-bar.js +0 -103
- package/dist/find-in-page/find-in-page.d.ts +0 -17
- package/dist/find-in-page/find-in-page.js +0 -131
- package/dist/find-in-page/index.d.ts +0 -5
- package/dist/find-in-page/index.js +0 -52
package/dist/compiled.css
CHANGED
|
@@ -611,17 +611,6 @@ body {
|
|
|
611
611
|
}
|
|
612
612
|
}
|
|
613
613
|
|
|
614
|
-
.find-match {
|
|
615
|
-
background-color: color-mix(in oklch, var(--color-warning) 40%, transparent);
|
|
616
|
-
border-radius: 2px;
|
|
617
|
-
}
|
|
618
|
-
|
|
619
|
-
.find-match-active {
|
|
620
|
-
background-color: color-mix(in oklch, var(--color-warning) 70%, transparent);
|
|
621
|
-
border-radius: 2px;
|
|
622
|
-
outline: 2px solid color-mix(in oklch, var(--color-warning) 90%, transparent);
|
|
623
|
-
}
|
|
624
|
-
|
|
625
614
|
.zd-content {
|
|
626
615
|
color: var(--color-fg);
|
|
627
616
|
font-size: var(--text-body);
|
|
@@ -2193,6 +2182,171 @@ site-search [data-search-results] > :is([data-search-placeholder], p) {
|
|
|
2193
2182
|
border: 1px solid canvastext;
|
|
2194
2183
|
}
|
|
2195
2184
|
}
|
|
2185
|
+
|
|
2186
|
+
html[data-theme="dark"] [data-zd-home-image="light"], html:not([data-theme="dark"]) [data-zd-home-image="dark"] {
|
|
2187
|
+
display: none;
|
|
2188
|
+
}
|
|
2189
|
+
|
|
2190
|
+
.zd-home-backdrop {
|
|
2191
|
+
position: relative;
|
|
2192
|
+
display: grid;
|
|
2193
|
+
place-items: center;
|
|
2194
|
+
aspect-ratio: 1200 / 630;
|
|
2195
|
+
padding: var(--spacing-vsp-md) var(--spacing-hsp-lg);
|
|
2196
|
+
}
|
|
2197
|
+
|
|
2198
|
+
.zd-home-backdrop-image {
|
|
2199
|
+
position: absolute;
|
|
2200
|
+
inset: 0;
|
|
2201
|
+
}
|
|
2202
|
+
|
|
2203
|
+
.zd-home-backdrop-panel {
|
|
2204
|
+
position: relative;
|
|
2205
|
+
max-width: 40rem;
|
|
2206
|
+
padding: var(--spacing-vsp-sm) var(--spacing-hsp-xl);
|
|
2207
|
+
background: color-mix(in oklch, var(--zd-bg) 92%, transparent);
|
|
2208
|
+
}
|
|
2209
|
+
|
|
2210
|
+
.zd-site-tree {
|
|
2211
|
+
--zd-stn-slot: 1.75rem;
|
|
2212
|
+
--zd-stn-rail-x: calc(var(--zd-stn-slot) / 2);
|
|
2213
|
+
--zd-stn-indent: calc(var(--zd-stn-slot) + var(--spacing-hsp-sm));
|
|
2214
|
+
--zd-stn-row-pad: var(--spacing-vsp-2xs);
|
|
2215
|
+
container: zd-site-tree / inline-size;
|
|
2216
|
+
}
|
|
2217
|
+
|
|
2218
|
+
.zd-site-tree-card {
|
|
2219
|
+
--zd-stn-card-pad: var(--spacing-hsp-sm);
|
|
2220
|
+
padding: var(--zd-stn-card-pad);
|
|
2221
|
+
}
|
|
2222
|
+
|
|
2223
|
+
.zd-site-tree-card[data-described] {
|
|
2224
|
+
--zd-stn-card-pad: var(--spacing-hsp-xl);
|
|
2225
|
+
}
|
|
2226
|
+
|
|
2227
|
+
@container zd-site-tree (width <= 38.75rem) {
|
|
2228
|
+
.zd-site-tree-card[data-described] {
|
|
2229
|
+
--zd-stn-card-pad: var(--spacing-hsp-lg);
|
|
2230
|
+
}
|
|
2231
|
+
}
|
|
2232
|
+
|
|
2233
|
+
.zd-site-nav-cover {
|
|
2234
|
+
display: block;
|
|
2235
|
+
width: calc(100% + 2 * var(--zd-stn-card-pad));
|
|
2236
|
+
max-width: none;
|
|
2237
|
+
height: auto;
|
|
2238
|
+
aspect-ratio: 1200 / 630;
|
|
2239
|
+
object-fit: cover;
|
|
2240
|
+
margin: calc(-1 * var(--zd-stn-card-pad)) calc(-1 * var(--zd-stn-card-pad)) var(--zd-stn-card-pad);
|
|
2241
|
+
}
|
|
2242
|
+
|
|
2243
|
+
.zd-site-tree-body {
|
|
2244
|
+
display: flex;
|
|
2245
|
+
flex-direction: column;
|
|
2246
|
+
gap: var(--spacing-vsp-2xs);
|
|
2247
|
+
}
|
|
2248
|
+
|
|
2249
|
+
.zd-site-tree-card[data-described] .zd-site-tree-body {
|
|
2250
|
+
gap: var(--spacing-vsp-sm);
|
|
2251
|
+
}
|
|
2252
|
+
|
|
2253
|
+
@container zd-site-tree (width >= 48.75rem) {
|
|
2254
|
+
.zd-site-tree-body[data-split="true"] {
|
|
2255
|
+
display: grid;
|
|
2256
|
+
grid-template-columns: minmax(12rem, 20rem) minmax(0, 1fr);
|
|
2257
|
+
column-gap: var(--spacing-hsp-2xl);
|
|
2258
|
+
align-items: start;
|
|
2259
|
+
--zd-stn-split: 1;
|
|
2260
|
+
}
|
|
2261
|
+
}
|
|
2262
|
+
|
|
2263
|
+
.zd-site-tree-head, .zd-site-tree-row {
|
|
2264
|
+
font-size: var(--text-small);
|
|
2265
|
+
line-height: var(--leading-relaxed);
|
|
2266
|
+
}
|
|
2267
|
+
|
|
2268
|
+
.zd-site-tree-label {
|
|
2269
|
+
padding-block-start: calc((max(var(--zd-stn-slot), 1lh) - 1lh) / 2);
|
|
2270
|
+
}
|
|
2271
|
+
|
|
2272
|
+
.zd-site-tree-marker {
|
|
2273
|
+
inline-size: var(--zd-stn-slot);
|
|
2274
|
+
block-size: 1lh;
|
|
2275
|
+
}
|
|
2276
|
+
|
|
2277
|
+
.zd-site-tree-toggle {
|
|
2278
|
+
inline-size: var(--zd-stn-slot);
|
|
2279
|
+
block-size: var(--zd-stn-slot);
|
|
2280
|
+
padding: 0;
|
|
2281
|
+
background: none;
|
|
2282
|
+
}
|
|
2283
|
+
|
|
2284
|
+
.zd-site-tree-list {
|
|
2285
|
+
list-style: none;
|
|
2286
|
+
margin: 0;
|
|
2287
|
+
padding: 0;
|
|
2288
|
+
}
|
|
2289
|
+
|
|
2290
|
+
.zd-site-tree-row {
|
|
2291
|
+
--zd-stn-mid: calc(var(--zd-stn-row-pad) + max(var(--zd-stn-slot), 1lh) / 2);
|
|
2292
|
+
position: relative;
|
|
2293
|
+
min-inline-size: 0;
|
|
2294
|
+
margin: 0;
|
|
2295
|
+
padding-inline-start: var(--zd-stn-indent);
|
|
2296
|
+
}
|
|
2297
|
+
|
|
2298
|
+
.zd-site-tree-line {
|
|
2299
|
+
padding-block: var(--zd-stn-row-pad);
|
|
2300
|
+
}
|
|
2301
|
+
|
|
2302
|
+
.zd-site-tree-rail, .zd-site-tree-branch, .zd-site-tree-stem {
|
|
2303
|
+
position: absolute;
|
|
2304
|
+
inline-size: 0;
|
|
2305
|
+
border: 0 dashed var(--color-muted);
|
|
2306
|
+
pointer-events: none;
|
|
2307
|
+
}
|
|
2308
|
+
|
|
2309
|
+
.zd-site-tree-rail {
|
|
2310
|
+
inset-inline-start: var(--zd-stn-rail-x);
|
|
2311
|
+
inset-block: 0;
|
|
2312
|
+
border-inline-start-width: 1px;
|
|
2313
|
+
}
|
|
2314
|
+
|
|
2315
|
+
.zd-site-tree-rail[data-last="true"] {
|
|
2316
|
+
inset-block-end: auto;
|
|
2317
|
+
block-size: var(--zd-stn-mid);
|
|
2318
|
+
}
|
|
2319
|
+
|
|
2320
|
+
.zd-site-tree-rail[data-root][data-first="true"] {
|
|
2321
|
+
inset-block-start: calc(var(--zd-stn-mid) * var(--zd-stn-split, 0));
|
|
2322
|
+
}
|
|
2323
|
+
|
|
2324
|
+
.zd-site-tree-rail[data-root][data-first="true"][data-last="true"] {
|
|
2325
|
+
block-size: calc(var(--zd-stn-mid) * (1 - var(--zd-stn-split, 0)));
|
|
2326
|
+
}
|
|
2327
|
+
|
|
2328
|
+
.zd-site-tree-branch {
|
|
2329
|
+
inset-inline-start: var(--zd-stn-rail-x);
|
|
2330
|
+
inset-block-start: var(--zd-stn-mid);
|
|
2331
|
+
inline-size: calc(var(--zd-stn-indent) - var(--zd-stn-rail-x) - var(--spacing-hsp-xs));
|
|
2332
|
+
border-block-start-width: 1px;
|
|
2333
|
+
}
|
|
2334
|
+
|
|
2335
|
+
.zd-site-tree-row[data-group] > .zd-site-tree-branch {
|
|
2336
|
+
inline-size: calc(var(--zd-stn-indent) - var(--zd-stn-rail-x));
|
|
2337
|
+
}
|
|
2338
|
+
|
|
2339
|
+
.zd-site-tree-stem {
|
|
2340
|
+
inset-inline-start: var(--zd-stn-rail-x);
|
|
2341
|
+
inset-block: calc(var(--zd-stn-row-pad) + var(--zd-stn-slot)) 0;
|
|
2342
|
+
border-inline-start-width: 1px;
|
|
2343
|
+
}
|
|
2344
|
+
|
|
2345
|
+
@media (forced-colors: active) {
|
|
2346
|
+
.zd-site-tree-rail, .zd-site-tree-branch, .zd-site-tree-stem {
|
|
2347
|
+
border-color: canvastext;
|
|
2348
|
+
}
|
|
2349
|
+
}
|
|
2196
2350
|
.block {
|
|
2197
2351
|
display: block;
|
|
2198
2352
|
}
|
|
@@ -2446,6 +2600,9 @@ site-search [data-search-results] > :is([data-search-placeholder], p) {
|
|
|
2446
2600
|
.max-w-\[64rem\] {
|
|
2447
2601
|
max-width: 64rem;
|
|
2448
2602
|
}
|
|
2603
|
+
.max-w-\[80rem\] {
|
|
2604
|
+
max-width: 80rem;
|
|
2605
|
+
}
|
|
2449
2606
|
.max-w-\[85\%\] {
|
|
2450
2607
|
max-width: 85%;
|
|
2451
2608
|
}
|
|
@@ -2494,9 +2651,6 @@ site-search [data-search-results] > :is([data-search-placeholder], p) {
|
|
|
2494
2651
|
.min-w-\[10rem\] {
|
|
2495
2652
|
min-width: 10rem;
|
|
2496
2653
|
}
|
|
2497
|
-
.min-w-\[3rem\] {
|
|
2498
|
-
min-width: 3rem;
|
|
2499
|
-
}
|
|
2500
2654
|
.min-w-\[44px\] {
|
|
2501
2655
|
min-width: 44px;
|
|
2502
2656
|
}
|
|
@@ -2530,15 +2684,9 @@ site-search [data-search-results] > :is([data-search-placeholder], p) {
|
|
|
2530
2684
|
.w-\[1\.5rem\] {
|
|
2531
2685
|
width: 1.5rem;
|
|
2532
2686
|
}
|
|
2533
|
-
.w-\[1\.75rem\] {
|
|
2534
|
-
width: 1.75rem;
|
|
2535
|
-
}
|
|
2536
2687
|
.w-\[1\.875rem\] {
|
|
2537
2688
|
width: 1.875rem;
|
|
2538
2689
|
}
|
|
2539
|
-
.w-\[12rem\] {
|
|
2540
|
-
width: 12rem;
|
|
2541
|
-
}
|
|
2542
2690
|
.w-\[14px\] {
|
|
2543
2691
|
width: 14px;
|
|
2544
2692
|
}
|
|
@@ -2572,6 +2720,9 @@ site-search [data-search-results] > :is([data-search-placeholder], p) {
|
|
|
2572
2720
|
.w-\[40px\] {
|
|
2573
2721
|
width: 40px;
|
|
2574
2722
|
}
|
|
2723
|
+
.w-\[560px\] {
|
|
2724
|
+
width: 560px;
|
|
2725
|
+
}
|
|
2575
2726
|
.w-\[6\.5rem\] {
|
|
2576
2727
|
width: 6.5rem;
|
|
2577
2728
|
}
|
|
@@ -2680,10 +2831,6 @@ site-search [data-search-results] > :is([data-search-placeholder], p) {
|
|
|
2680
2831
|
padding-top: 2px;
|
|
2681
2832
|
padding-bottom: 2px;
|
|
2682
2833
|
}
|
|
2683
|
-
.py-\[4px\] {
|
|
2684
|
-
padding-top: 4px;
|
|
2685
|
-
padding-bottom: 4px;
|
|
2686
|
-
}
|
|
2687
2834
|
.py-\[calc\(var\(--spacing-vsp-xs\)_\+_0\.15rem\)\] {
|
|
2688
2835
|
padding-top: calc(var(--spacing-vsp-xs) + 0.15rem);
|
|
2689
2836
|
padding-bottom: calc(var(--spacing-vsp-xs) + 0.15rem);
|
|
@@ -2937,6 +3084,10 @@ site-search [data-search-results] > :is([data-search-placeholder], p) {
|
|
|
2937
3084
|
column-gap: var(--zw-spacing-hsp-xs);
|
|
2938
3085
|
row-gap: var(--zw-spacing-hsp-xs);
|
|
2939
3086
|
}
|
|
3087
|
+
.gap-vsp-2xl {
|
|
3088
|
+
column-gap: var(--zw-spacing-vsp-2xl);
|
|
3089
|
+
row-gap: var(--zw-spacing-vsp-2xl);
|
|
3090
|
+
}
|
|
2940
3091
|
.gap-vsp-2xs {
|
|
2941
3092
|
column-gap: var(--zw-spacing-vsp-2xs);
|
|
2942
3093
|
row-gap: var(--zw-spacing-vsp-2xs);
|
|
@@ -3158,9 +3309,6 @@ site-search [data-search-results] > :is([data-search-placeholder], p) {
|
|
|
3158
3309
|
.text-fg {
|
|
3159
3310
|
color: var(--zw-color-fg);
|
|
3160
3311
|
}
|
|
3161
|
-
.text-fg\/60 {
|
|
3162
|
-
color: color-mix(in oklab, var(--zw-color-fg) 60%, transparent);
|
|
3163
|
-
}
|
|
3164
3312
|
.text-info {
|
|
3165
3313
|
color: var(--zw-color-info);
|
|
3166
3314
|
}
|
|
@@ -3378,9 +3526,6 @@ site-search [data-search-results] > :is([data-search-placeholder], p) {
|
|
|
3378
3526
|
.rounded-bl-\[1rem\] {
|
|
3379
3527
|
border-bottom-left-radius: 1rem;
|
|
3380
3528
|
}
|
|
3381
|
-
.rounded-bl-lg {
|
|
3382
|
-
border-bottom-left-radius: var(--zw-radius-lg);
|
|
3383
|
-
}
|
|
3384
3529
|
.rounded-br-\[0\.25rem\] {
|
|
3385
3530
|
border-bottom-right-radius: 0.25rem;
|
|
3386
3531
|
}
|
|
@@ -3494,6 +3639,9 @@ site-search [data-search-results] > :is([data-search-placeholder], p) {
|
|
|
3494
3639
|
.object-contain {
|
|
3495
3640
|
object-fit: contain;
|
|
3496
3641
|
}
|
|
3642
|
+
.object-cover {
|
|
3643
|
+
object-fit: cover;
|
|
3644
|
+
}
|
|
3497
3645
|
.sr-only {
|
|
3498
3646
|
position: absolute;
|
|
3499
3647
|
width: 1px;
|
|
@@ -68,6 +68,60 @@ export interface HeaderBrandSubject {
|
|
|
68
68
|
* every page header. Fail loudly at config resolution, naming the field.
|
|
69
69
|
*/
|
|
70
70
|
export declare function assertValidHeaderBrand(settings: HeaderBrandSubject): void;
|
|
71
|
+
/** Structural subset of `Settings` {@link assertValidHomeImage} reads. */
|
|
72
|
+
export interface HomeImageSubject {
|
|
73
|
+
home?: unknown;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* True for a root-absolute site path: one leading `/` (never `//`, which is
|
|
77
|
+
* protocol-relative), no backslash and no C0/C1 control character. Such a
|
|
78
|
+
* path can only resolve to the site's own origin, which keeps `home.image`
|
|
79
|
+
* compatible with a strict `img-src 'self'` policy.
|
|
80
|
+
*/
|
|
81
|
+
export declare function isRootAbsoluteSitePath(value: string): boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Validate `home.imageLayout` (one of the four layouts, when present) and
|
|
84
|
+
* `home.image`: absent, or `{ src, alt?, width?, height?, darkSrc? }`
|
|
85
|
+
* with root-absolute `src`/`darkSrc`, a string `alt`, and positive-integer
|
|
86
|
+
* `width`/`height` given together. Unknown keys are rejected so a typo such
|
|
87
|
+
* as `dark` fails loudly instead of being ignored. Throws a `TypeError`
|
|
88
|
+
* naming the field.
|
|
89
|
+
*/
|
|
90
|
+
export declare function assertValidHomeImage(settings: HomeImageSubject): void;
|
|
91
|
+
/** Structural subset of `Settings` that `assertValidContentSignals` reads. */
|
|
92
|
+
export interface ContentSignalsSubject {
|
|
93
|
+
contentSignals?: unknown;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Reject a malformed `contentSignals` at config resolution: it must be
|
|
97
|
+
* `false`, absent, or an object whose only keys are `search`, `aiInput` and
|
|
98
|
+
* `aiTrain`, each `true`, `false` or omitted. A typo would otherwise drop the
|
|
99
|
+
* signal from robots.txt without any diagnostic.
|
|
100
|
+
*/
|
|
101
|
+
export declare function assertValidContentSignals(settings: ContentSignalsSubject): void;
|
|
102
|
+
/** Structural subset of `Settings` {@link assertValidLocaleOgImages} reads. */
|
|
103
|
+
export interface LocaleOgImageSubject {
|
|
104
|
+
locales?: unknown;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Validate every `locales.<code>.ogImage`: absent, `false`, or a root-absolute
|
|
108
|
+
* site path (it is base-prefixed and joined to `siteUrl`, so an external URL
|
|
109
|
+
* would produce a broken og:image). Throws a `TypeError` naming the locale.
|
|
110
|
+
*/
|
|
111
|
+
export declare function assertValidLocaleOgImages(settings: LocaleOgImageSubject): void;
|
|
112
|
+
/**
|
|
113
|
+
* Validate `home.sections`: absent, or an array holding exactly one
|
|
114
|
+
* `{ type: "site-tree" }` and at most one `{ type: "doc-cards", docs }`, in
|
|
115
|
+
* either order. Every field is serializable presentation data — unknown
|
|
116
|
+
* kinds, unknown keys, non-string text, invalid variants and non-canonical
|
|
117
|
+
* slugs (leading/trailing `/`, whitespace, URLs) throw a `TypeError` naming
|
|
118
|
+
* the entry. Whether a slug matches a published document is checked at
|
|
119
|
+
* render time against the content (see `DocCardNav`).
|
|
120
|
+
*/
|
|
121
|
+
export declare function assertValidHomeSections(settings: HomeImageSubject & {
|
|
122
|
+
defaultLocale?: unknown;
|
|
123
|
+
locales?: unknown;
|
|
124
|
+
}): void;
|
|
71
125
|
/** Structural subset of `Settings` the zdtp-bundling helpers read. */
|
|
72
126
|
export interface ZdtpBundlingSubject {
|
|
73
127
|
designTokenPanel?: boolean;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { CONTROL_CHARS } from "../asset-path/index.js";
|
|
2
|
+
import { CONTENT_SIGNAL_KEYS } from "../robots.js";
|
|
3
|
+
import { isCanonicalDocSlug } from "../doc-card-nav/slug.js";
|
|
1
4
|
function assertAgentDocsConsistent(settings) {
|
|
2
5
|
if (settings.agentExport !== void 0 && typeof settings.agentExport !== "boolean") {
|
|
3
6
|
throw new TypeError("agentExport must be a boolean.");
|
|
@@ -47,6 +50,203 @@ function assertValidHeaderBrand(settings) {
|
|
|
47
50
|
);
|
|
48
51
|
}
|
|
49
52
|
}
|
|
53
|
+
const HOME_IMAGE_KEYS = /* @__PURE__ */ new Set(["src", "alt", "width", "height", "darkSrc"]);
|
|
54
|
+
const HOME_IMAGE_LAYOUTS = /* @__PURE__ */ new Set(["logo", "large", "banner", "backdrop"]);
|
|
55
|
+
function isRootAbsoluteSitePath(value) {
|
|
56
|
+
if (!value.startsWith("/") || value.startsWith("//")) return false;
|
|
57
|
+
return !value.includes("\\") && !CONTROL_CHARS.test(value);
|
|
58
|
+
}
|
|
59
|
+
function assertValidHomeImage(settings) {
|
|
60
|
+
const home = settings.home;
|
|
61
|
+
if (home === void 0 || home === null || typeof home !== "object") return;
|
|
62
|
+
const layout = home.imageLayout;
|
|
63
|
+
if (layout !== void 0 && !HOME_IMAGE_LAYOUTS.has(layout)) {
|
|
64
|
+
throw new TypeError(
|
|
65
|
+
`Invalid home.imageLayout ${describeValue(layout)}: must be one of "logo", "large", "banner", "backdrop".`
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
const value = home.image;
|
|
69
|
+
if (value === void 0) return;
|
|
70
|
+
if (typeof value !== "object" || value === null || Array.isArray(value)) {
|
|
71
|
+
throw new TypeError(
|
|
72
|
+
`Invalid home.image ${describeValue(value)}: omit it, or pass an object { src: "/img/hero.png" }.`
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
for (const key of Object.keys(value)) {
|
|
76
|
+
if (!HOME_IMAGE_KEYS.has(key)) {
|
|
77
|
+
throw new TypeError(
|
|
78
|
+
`Invalid home.image: unknown key "${key}". Allowed keys: src, alt, width, height, darkSrc.`
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
const image = value;
|
|
83
|
+
const checkPath = (field) => {
|
|
84
|
+
const path = image[field];
|
|
85
|
+
if (typeof path !== "string" || !isRootAbsoluteSitePath(path)) {
|
|
86
|
+
throw new TypeError(
|
|
87
|
+
`Invalid home.image.${field} ${describeValue(path)}: must be a root-absolute site path such as "/img/hero.png" (no external URL, no "//", no backslash or control character).`
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
checkPath("src");
|
|
92
|
+
if (image.darkSrc !== void 0) checkPath("darkSrc");
|
|
93
|
+
if (image.alt !== void 0 && typeof image.alt !== "string") {
|
|
94
|
+
throw new TypeError(`Invalid home.image.alt ${describeValue(image.alt)}: must be a string.`);
|
|
95
|
+
}
|
|
96
|
+
const hasWidth = image.width !== void 0;
|
|
97
|
+
const hasHeight = image.height !== void 0;
|
|
98
|
+
if (hasWidth !== hasHeight) {
|
|
99
|
+
throw new TypeError(
|
|
100
|
+
"Invalid home.image: width and height must be given together, or both omitted."
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
for (const field of ["width", "height"]) {
|
|
104
|
+
const n = image[field];
|
|
105
|
+
if (n !== void 0 && (typeof n !== "number" || !Number.isInteger(n) || n <= 0)) {
|
|
106
|
+
throw new TypeError(
|
|
107
|
+
`Invalid home.image.${field} ${describeValue(n)}: must be a positive integer (pixels).`
|
|
108
|
+
);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
function assertValidContentSignals(settings) {
|
|
113
|
+
const value = settings.contentSignals;
|
|
114
|
+
if (value === void 0 || value === false) return;
|
|
115
|
+
if (typeof value !== "object" || value === null || Array.isArray(value)) {
|
|
116
|
+
throw new TypeError(
|
|
117
|
+
`Invalid contentSignals ${describeValue(value)}: pass false, or an object such as { search: true, aiInput: true, aiTrain: false }.`
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
for (const [key, signal] of Object.entries(value)) {
|
|
121
|
+
if (!CONTENT_SIGNAL_KEYS.includes(key)) {
|
|
122
|
+
throw new TypeError(
|
|
123
|
+
`Invalid contentSignals: unknown key "${key}". Allowed keys: ${CONTENT_SIGNAL_KEYS.join(", ")}.`
|
|
124
|
+
);
|
|
125
|
+
}
|
|
126
|
+
if (signal !== void 0 && typeof signal !== "boolean") {
|
|
127
|
+
throw new TypeError(
|
|
128
|
+
`Invalid contentSignals.${key} ${describeValue(signal)}: must be true, false or omitted.`
|
|
129
|
+
);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
function assertValidLocaleOgImages(settings) {
|
|
134
|
+
const locales = settings.locales;
|
|
135
|
+
if (locales === void 0 || locales === null || typeof locales !== "object") return;
|
|
136
|
+
for (const [code, config] of Object.entries(locales)) {
|
|
137
|
+
if (config === null || typeof config !== "object") continue;
|
|
138
|
+
const value = config.ogImage;
|
|
139
|
+
if (value === void 0 || value === false) continue;
|
|
140
|
+
if (typeof value !== "string" || !isRootAbsoluteSitePath(value)) {
|
|
141
|
+
throw new TypeError(
|
|
142
|
+
`Invalid locales.${code}.ogImage ${describeValue(value)}: pass false, or a root-absolute site path such as "/img/ogp-${code}.png".`
|
|
143
|
+
);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
const HOME_SECTION_KEYS = {
|
|
148
|
+
"doc-cards": /* @__PURE__ */ new Set(["type", "heading", "description", "docs", "locales"]),
|
|
149
|
+
"site-tree": /* @__PURE__ */ new Set(["type", "heading", "description", "variant", "locales"])
|
|
150
|
+
};
|
|
151
|
+
const HOME_SECTION_LOCALE_KEYS = /* @__PURE__ */ new Set(["heading", "description"]);
|
|
152
|
+
function isPlainRecord(value) {
|
|
153
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
154
|
+
}
|
|
155
|
+
function assertValidHomeSections(settings) {
|
|
156
|
+
const home = settings.home;
|
|
157
|
+
if (home === void 0 || home === null || typeof home !== "object") return;
|
|
158
|
+
const value = home.sections;
|
|
159
|
+
if (value === void 0) return;
|
|
160
|
+
if (!Array.isArray(value)) {
|
|
161
|
+
throw new TypeError(
|
|
162
|
+
`Invalid home.sections ${describeValue(value)}: omit it, or pass an array such as [{ type: "site-tree" }].`
|
|
163
|
+
);
|
|
164
|
+
}
|
|
165
|
+
const knownLocales = typeof settings.defaultLocale === "string" ? /* @__PURE__ */ new Set([settings.defaultLocale, ...isPlainRecord(settings.locales) ? Object.keys(settings.locales) : []]) : void 0;
|
|
166
|
+
const counts = { "doc-cards": 0, "site-tree": 0 };
|
|
167
|
+
value.forEach((entry, index) => {
|
|
168
|
+
const at = `home.sections[${index}]`;
|
|
169
|
+
if (!isPlainRecord(entry)) {
|
|
170
|
+
throw new TypeError(`Invalid ${at} ${describeValue(entry)}: each section must be an object.`);
|
|
171
|
+
}
|
|
172
|
+
const type = entry.type;
|
|
173
|
+
if (type !== "doc-cards" && type !== "site-tree") {
|
|
174
|
+
throw new TypeError(
|
|
175
|
+
`Invalid ${at}.type ${describeValue(type)}: allowed section types are "doc-cards" and "site-tree".`
|
|
176
|
+
);
|
|
177
|
+
}
|
|
178
|
+
const allowed = HOME_SECTION_KEYS[type];
|
|
179
|
+
for (const key of Object.keys(entry)) {
|
|
180
|
+
if (!allowed.has(key)) {
|
|
181
|
+
throw new TypeError(
|
|
182
|
+
`Invalid ${at}: unknown key "${key}" for a "${type}" section. Allowed keys: ${[...allowed].join(", ")}.`
|
|
183
|
+
);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
for (const field of ["heading", "description"]) {
|
|
187
|
+
if (entry[field] !== void 0 && typeof entry[field] !== "string") {
|
|
188
|
+
throw new TypeError(`Invalid ${at}.${field} ${describeValue(entry[field])}: must be a string.`);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
if (entry.locales !== void 0) {
|
|
192
|
+
if (!isPlainRecord(entry.locales)) {
|
|
193
|
+
throw new TypeError(
|
|
194
|
+
`Invalid ${at}.locales ${describeValue(entry.locales)}: must be an object keyed by locale code.`
|
|
195
|
+
);
|
|
196
|
+
}
|
|
197
|
+
for (const [code, text] of Object.entries(entry.locales)) {
|
|
198
|
+
if (knownLocales && !knownLocales.has(code)) {
|
|
199
|
+
throw new TypeError(
|
|
200
|
+
`Invalid ${at}.locales.${code}: unknown locale code. Configured locales: ${[...knownLocales].join(", ")}.`
|
|
201
|
+
);
|
|
202
|
+
}
|
|
203
|
+
if (!isPlainRecord(text)) {
|
|
204
|
+
throw new TypeError(`Invalid ${at}.locales.${code} ${describeValue(text)}: must be an object.`);
|
|
205
|
+
}
|
|
206
|
+
for (const [key, v] of Object.entries(text)) {
|
|
207
|
+
if (!HOME_SECTION_LOCALE_KEYS.has(key)) {
|
|
208
|
+
throw new TypeError(
|
|
209
|
+
`Invalid ${at}.locales.${code}: unknown key "${key}". Allowed keys: heading, description.`
|
|
210
|
+
);
|
|
211
|
+
}
|
|
212
|
+
if (v !== void 0 && typeof v !== "string") {
|
|
213
|
+
throw new TypeError(`Invalid ${at}.locales.${code}.${key} ${describeValue(v)}: must be a string.`);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
if (type === "doc-cards") {
|
|
219
|
+
const docs = entry.docs;
|
|
220
|
+
if (!Array.isArray(docs)) {
|
|
221
|
+
throw new TypeError(
|
|
222
|
+
`Invalid ${at}.docs ${describeValue(docs)}: must be an array of canonical document slugs such as ["getting-started/introduction"].`
|
|
223
|
+
);
|
|
224
|
+
}
|
|
225
|
+
docs.forEach((slug, i) => {
|
|
226
|
+
if (!isCanonicalDocSlug(slug)) {
|
|
227
|
+
throw new TypeError(
|
|
228
|
+
`Invalid ${at}.docs[${i}] ${describeValue(slug)}: must be a canonical document slug such as "getting-started/introduction" (no leading or trailing "/", no URL).`
|
|
229
|
+
);
|
|
230
|
+
}
|
|
231
|
+
});
|
|
232
|
+
} else if (entry.variant !== void 0 && entry.variant !== "default" && entry.variant !== "described") {
|
|
233
|
+
throw new TypeError(
|
|
234
|
+
`Invalid ${at}.variant ${describeValue(entry.variant)}: must be "default" or "described".`
|
|
235
|
+
);
|
|
236
|
+
}
|
|
237
|
+
counts[type] += 1;
|
|
238
|
+
});
|
|
239
|
+
if (counts["site-tree"] !== 1) {
|
|
240
|
+
throw new TypeError(
|
|
241
|
+
`Invalid home.sections: exactly one { type: "site-tree" } section is required (found ${counts["site-tree"]}).`
|
|
242
|
+
);
|
|
243
|
+
}
|
|
244
|
+
if (counts["doc-cards"] > 1) {
|
|
245
|
+
throw new TypeError(
|
|
246
|
+
`Invalid home.sections: at most one { type: "doc-cards" } section is allowed (found ${counts["doc-cards"]}).`
|
|
247
|
+
);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
50
250
|
function describeValue(value) {
|
|
51
251
|
if (value === void 0) return "undefined";
|
|
52
252
|
if (Array.isArray(value)) return "(array)";
|
|
@@ -116,9 +316,14 @@ function warnAmbiguousDropdownCategoryMatch(headerNav, logger = console) {
|
|
|
116
316
|
export {
|
|
117
317
|
assertAgentDocsConsistent,
|
|
118
318
|
assertNoEmptyStringFaviconOrLogo,
|
|
319
|
+
assertValidContentSignals,
|
|
119
320
|
assertValidHeaderBrand,
|
|
321
|
+
assertValidHomeImage,
|
|
322
|
+
assertValidHomeSections,
|
|
323
|
+
assertValidLocaleOgImages,
|
|
120
324
|
assertValidSearchMaxBodyLength,
|
|
121
325
|
assertZdtpBundlingConsistent,
|
|
326
|
+
isRootAbsoluteSitePath,
|
|
122
327
|
resolvesBundleZdtp,
|
|
123
328
|
warnAmbiguousDropdownCategoryMatch
|
|
124
329
|
};
|
package/dist/config.d.ts
CHANGED
|
@@ -70,7 +70,7 @@ import type { ZfbConfig, BundleConfig, WindConfig } from "@takazudo/zfb/config";
|
|
|
70
70
|
import type { ZodType } from "zod";
|
|
71
71
|
import type { DirectiveVocabulary, PresetTranslations, PresetTagVocabularyEntry } from "./preset.js";
|
|
72
72
|
import type { ColorScheme } from "./color-scheme-utils.js";
|
|
73
|
-
import type { Settings, ColorModeConfig, LocaleConfig, MetaTagsConfig, SiteHeadConfig, TagPlacement, TagGovernanceMode, VersionConfig, FooterConfig, HeaderNavItem, HeaderRightItem, HomeConfig, AssetViewerIndexingConfig, FrontmatterPreviewConfig, BodyFootUtilAreaConfig, HtmlPreviewConfig, FaviconConfig, HeaderBrandConfig, DateFormatSetting } from "./settings.js";
|
|
73
|
+
import type { Settings, ColorModeConfig, ContentSignalsConfig, LocaleConfig, MetaTagsConfig, SiteHeadConfig, TagPlacement, TagGovernanceMode, VersionConfig, FooterConfig, HeaderNavItem, HeaderRightItem, HomeConfig, AssetViewerIndexingConfig, FrontmatterPreviewConfig, BodyFootUtilAreaConfig, HtmlPreviewConfig, FaviconConfig, HeaderBrandConfig, DateFormatSetting } from "./settings.js";
|
|
74
74
|
/** The `settings.claudeResources` block (or `false` when disabled). */
|
|
75
75
|
type ClaudeResourcesConfig = {
|
|
76
76
|
claudeDir: string;
|
|
@@ -156,7 +156,9 @@ export interface ZudoDocConfig {
|
|
|
156
156
|
trailingSlash?: boolean;
|
|
157
157
|
/**
|
|
158
158
|
* Package-owned home-page layout. Set `wide: true` to let the category grid
|
|
159
|
-
* fill most of the viewport on both `/` and locale home routes.
|
|
159
|
+
* fill most of the viewport on both `/` and locale home routes. The optional
|
|
160
|
+
* `sections` recipe (one `site-tree`, at most one `doc-cards`, either order)
|
|
161
|
+
* replaces the legacy sitemap block; it is omitted by default.
|
|
160
162
|
* @default { wide: false, introMarkdown: "", sitemapHeading: "" }
|
|
161
163
|
*/
|
|
162
164
|
home?: HomeConfig;
|
|
@@ -245,6 +247,14 @@ export interface ZudoDocConfig {
|
|
|
245
247
|
* @default false
|
|
246
248
|
*/
|
|
247
249
|
noindex?: boolean;
|
|
250
|
+
/**
|
|
251
|
+
* Content Signals (https://contentsignals.org) published in `robots.txt` as
|
|
252
|
+
* `Content-Signal: search=…, ai-input=…, ai-train=…`. `true` is `yes`,
|
|
253
|
+
* `false` is `no`, an omitted key expresses no preference, and `false`
|
|
254
|
+
* publishes no line.
|
|
255
|
+
* @default false
|
|
256
|
+
*/
|
|
257
|
+
contentSignals?: ContentSignalsConfig | false;
|
|
248
258
|
/**
|
|
249
259
|
* "Edit this page" link base, or `false` to omit.
|
|
250
260
|
* @default false
|
|
@@ -435,13 +445,6 @@ export interface ZudoDocConfig {
|
|
|
435
445
|
* @default false
|
|
436
446
|
*/
|
|
437
447
|
imageEnlarge?: boolean;
|
|
438
|
-
/**
|
|
439
|
-
* Mount the `FindInPageInit` island (Cmd/Ctrl+F find bar). Self-gates on
|
|
440
|
-
* `window.__TAURI_INTERNALS__`, so it is a safe no-op outside a Tauri
|
|
441
|
-
* shell even when `true`.
|
|
442
|
-
* @default false
|
|
443
|
-
*/
|
|
444
|
-
findInPage?: boolean;
|
|
445
448
|
/**
|
|
446
449
|
* Enable the dynamic (view-transition) page-loading overlay.
|
|
447
450
|
* @default false
|
package/dist/config.js
CHANGED
|
@@ -8,6 +8,10 @@ import { assertNoCommaInVersionSlugs } from "./version-availability/index.js";
|
|
|
8
8
|
import {
|
|
9
9
|
assertNoEmptyStringFaviconOrLogo,
|
|
10
10
|
assertValidHeaderBrand,
|
|
11
|
+
assertValidHomeImage,
|
|
12
|
+
assertValidContentSignals,
|
|
13
|
+
assertValidLocaleOgImages,
|
|
14
|
+
assertValidHomeSections,
|
|
11
15
|
assertZdtpBundlingConsistent,
|
|
12
16
|
assertValidSearchMaxBodyLength,
|
|
13
17
|
assertAgentDocsConsistent
|
|
@@ -61,6 +65,11 @@ function zudoDoc(user = {}) {
|
|
|
61
65
|
"githubAutolinksRepo is no longer supported; the githubAutolinks markdown feature was removed"
|
|
62
66
|
);
|
|
63
67
|
}
|
|
68
|
+
if ("findInPage" in user) {
|
|
69
|
+
throw new TypeError(
|
|
70
|
+
"findInPage is no longer supported; the find-in-page bar was removed in 11.0.0, so remove the findInPage key from your zudoDoc() settings"
|
|
71
|
+
);
|
|
72
|
+
}
|
|
64
73
|
const {
|
|
65
74
|
port,
|
|
66
75
|
adapter,
|
|
@@ -87,6 +96,10 @@ function zudoDoc(user = {}) {
|
|
|
87
96
|
assertNoCommaInVersionSlugs(settings.versions);
|
|
88
97
|
assertNoEmptyStringFaviconOrLogo(settings);
|
|
89
98
|
assertValidHeaderBrand(settings);
|
|
99
|
+
assertValidHomeImage(settings);
|
|
100
|
+
assertValidLocaleOgImages(settings);
|
|
101
|
+
assertValidHomeSections(settings);
|
|
102
|
+
assertValidContentSignals(settings);
|
|
90
103
|
assertZdtpBundlingConsistent(settings);
|
|
91
104
|
assertValidSearchMaxBodyLength(settings.searchMaxBodyLength);
|
|
92
105
|
assertAgentDocsConsistent(settings);
|
package/dist/content/index.d.ts
CHANGED
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
* <Content components={components} />
|
|
17
17
|
*/
|
|
18
18
|
export { HeadingH2 } from "./heading-h2.js";
|
|
19
|
+
export { WideSectionHeading } from "./wide-section-heading.js";
|
|
19
20
|
export { HeadingH3 } from "./heading-h3.js";
|
|
20
21
|
export { HeadingH4 } from "./heading-h4.js";
|
|
21
22
|
export { ContentParagraph } from "./content-paragraph.js";
|
package/dist/content/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HeadingH2 } from "./heading-h2.js";
|
|
2
|
+
import { WideSectionHeading } from "./wide-section-heading.js";
|
|
2
3
|
import { HeadingH3 } from "./heading-h3.js";
|
|
3
4
|
import { HeadingH4 } from "./heading-h4.js";
|
|
4
5
|
import { ContentParagraph } from "./content-paragraph.js";
|
|
@@ -25,6 +26,7 @@ export {
|
|
|
25
26
|
HeadingH2,
|
|
26
27
|
HeadingH3,
|
|
27
28
|
HeadingH4,
|
|
29
|
+
WideSectionHeading,
|
|
28
30
|
createContentLink,
|
|
29
31
|
defaultComponents
|
|
30
32
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** @jsxRuntime automatic */
|
|
2
|
+
import type { JSX } from "@takazudo/zfb/zudo-react/jsx-runtime";
|
|
3
|
+
type Props = JSX.IntrinsicElements["h2"];
|
|
4
|
+
/**
|
|
5
|
+
* Section heading for composed navigation sections (home `sections`, or an
|
|
6
|
+
* authored MDX page). It IS the content `HeadingH2` — same typography, the 3px
|
|
7
|
+
* gradient upper rule with `pt-vsp-sm`, and every theme pack's `.zd-content h2`
|
|
8
|
+
* treatment — exposed under a name that does not depend on MDX `##` mapping.
|
|
9
|
+
* It owns no outside margin: the placing parent owns the surrounding gaps.
|
|
10
|
+
*/
|
|
11
|
+
export declare function WideSectionHeading(props: Props): import("@takazudo/zfb").Description;
|
|
12
|
+
export {};
|