create-zudo-doc 0.2.7 → 0.2.8
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/dist/scaffold.js
CHANGED
|
@@ -304,7 +304,7 @@ function generatePackageJson(choices) {
|
|
|
304
304
|
// .github/workflows/publish-zudo-doc.yml. The pin here is bumped in
|
|
305
305
|
// lockstep by scripts/release-create-zudo-doc.sh whenever zudo-doc's
|
|
306
306
|
// version moves, so a fresh scaffold pulls the version we just published.
|
|
307
|
-
"@takazudo/zudo-doc": "^0.2.
|
|
307
|
+
"@takazudo/zudo-doc": "^0.2.8",
|
|
308
308
|
// zod — used by the generated zfb.config.ts. zfb-config-gen emits
|
|
309
309
|
// `import { z } from "zod"` for the content-collection schema +
|
|
310
310
|
// `z.toJSONSchema(...)` conversion. Without this dep, the consumer
|
|
@@ -359,7 +359,7 @@ function generatePackageJson(choices) {
|
|
|
359
359
|
// @takazudo/zudo-doc/integrations/doc-history which in turn imports
|
|
360
360
|
// @takazudo/zudo-doc-history-server/git-history. Without this dep the
|
|
361
361
|
// plugin host fails at init with ERR_MODULE_NOT_FOUND — W8A (#1739).
|
|
362
|
-
deps["@takazudo/zudo-doc-history-server"] = "^0.2.
|
|
362
|
+
deps["@takazudo/zudo-doc-history-server"] = "^0.2.8";
|
|
363
363
|
// W7A (#1736): doc-history-plugin.mjs spawns `tsx -e <inline-script>` to
|
|
364
364
|
// run the v2 runtime in a TS-aware Node subprocess; without tsx the
|
|
365
365
|
// plugin's preBuild step exits with ENOENT before zfb finishes config
|
|
@@ -375,7 +375,7 @@ function generatePackageJson(choices) {
|
|
|
375
375
|
if (choices.features.includes("designTokenPanel")) {
|
|
376
376
|
// @takazudo/zdtp requires preact >= 10.29.1 — see the preact floor comment
|
|
377
377
|
// above (~line 382) for why the floor is set there and the coupling this creates.
|
|
378
|
-
deps["@takazudo/zdtp"] = "0.2.
|
|
378
|
+
deps["@takazudo/zdtp"] = "0.2.3";
|
|
379
379
|
}
|
|
380
380
|
if (choices.features.includes("tagGovernance")) {
|
|
381
381
|
// gray-matter is already in `deps` unconditionally (base template uses it),
|
package/package.json
CHANGED
|
@@ -11,9 +11,11 @@ export interface ColorScheme {
|
|
|
11
11
|
string, string, string, string, string, string, string, string,
|
|
12
12
|
string, string, string, string, string, string, string, string,
|
|
13
13
|
];
|
|
14
|
-
/** Optional
|
|
15
|
-
*
|
|
16
|
-
*
|
|
14
|
+
/** Optional, vestigial. Carried only in the zdtp panel's color-scheme
|
|
15
|
+
* config envelope (falls back to DEFAULT_SHIKI_THEME when omitted), but has
|
|
16
|
+
* no visible effect: zdtp's Shiki integration is a no-op stub, and page code
|
|
17
|
+
* highlighting is done by syntect (dual-theme, configured via `codeHighlight`
|
|
18
|
+
* in zfb.config.ts), not Shiki. */
|
|
17
19
|
shikiTheme?: string;
|
|
18
20
|
/** Optional semantic overrides — when omitted, defaults are used:
|
|
19
21
|
* surface=p0, muted=p8, accent=p5, accentHover=p14
|
|
@@ -109,12 +109,23 @@ declare module "zfb/config" {
|
|
|
109
109
|
base?: string;
|
|
110
110
|
/**
|
|
111
111
|
* Configures the syntect-based syntax highlighter shipped with zfb.
|
|
112
|
-
* Mirrors `code_highlight` in crates/zfb/src/config.rs
|
|
112
|
+
* Mirrors `CodeHighlightConfig` / `code_highlight` in crates/zfb/src/config.rs
|
|
113
|
+
* (single-theme: Takazudo/zudo-front-builder#188 / sub #194, commit 339e30f;
|
|
114
|
+
* dual-theme themeLight/themeDark added in the follow-up shipped in
|
|
115
|
+
* zfb 0.1.0-next.45+).
|
|
113
116
|
* When omitted, the engine falls back to the hardcoded default theme `base16-ocean.dark`.
|
|
117
|
+
*
|
|
118
|
+
* Single-theme mode: set `theme` — tokens get inline `style="color:#hex"`.
|
|
119
|
+
* Dual-theme mode: set BOTH `themeLight` and `themeDark` (mutually exclusive
|
|
120
|
+
* with `theme`) — tokens get `--shiki-light`/`--shiki-dark` CSS custom
|
|
121
|
+
* properties and the `<pre>` gains `class="syntect-dual"` + `--shiki-*-bg`.
|
|
122
|
+
* All names are SYNTECT theme names, not Shiki names.
|
|
114
123
|
*/
|
|
115
124
|
codeHighlight?: {
|
|
116
125
|
theme?: string;
|
|
117
126
|
themesDir?: string;
|
|
127
|
+
themeLight?: string;
|
|
128
|
+
themeDark?: string;
|
|
118
129
|
};
|
|
119
130
|
/**
|
|
120
131
|
* Markdown link resolver (port of `remarkResolveMarkdownLinks`).
|