create-zudo-doc 1.1.0 → 1.2.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/dist/scaffold.d.ts
CHANGED
|
@@ -11,5 +11,5 @@ export { getSecondaryLang };
|
|
|
11
11
|
*
|
|
12
12
|
* Bumped in lockstep by scripts/release-create-zudo-doc.sh.
|
|
13
13
|
*/
|
|
14
|
-
export declare const ZUDO_DOC_PIN = "^1.
|
|
14
|
+
export declare const ZUDO_DOC_PIN = "^1.2.0";
|
|
15
15
|
export declare function scaffold(choices: UserChoices): Promise<void>;
|
package/dist/scaffold.js
CHANGED
|
@@ -18,7 +18,7 @@ export { getSecondaryLang };
|
|
|
18
18
|
*
|
|
19
19
|
* Bumped in lockstep by scripts/release-create-zudo-doc.sh.
|
|
20
20
|
*/
|
|
21
|
-
export const ZUDO_DOC_PIN = "^1.
|
|
21
|
+
export const ZUDO_DOC_PIN = "^1.2.0";
|
|
22
22
|
/**
|
|
23
23
|
* Files in `templates/base/**` that must never be copied into a generated
|
|
24
24
|
* project. Each entry is matched against the path relative to `templates/base/`
|
|
@@ -475,13 +475,15 @@ function generatePackageJson(choices) {
|
|
|
475
475
|
// (e.g. `@/*`) into its synthetic tsconfig (zfb#1238) — fixes silent island
|
|
476
476
|
// hydration failure under route injection. Unblocks packageOwnedRoutes.
|
|
477
477
|
// No consumer-facing / CLI breaking change.
|
|
478
|
-
// next.
|
|
478
|
+
// next.68: routine toolchain bump from next.67, adopted in
|
|
479
479
|
// lockstep with the root package.json pins. No consumer-facing / CLI change.
|
|
480
|
-
|
|
481
|
-
|
|
480
|
+
// next.69 (current pin): routine toolchain bump from next.68, adopted in
|
|
481
|
+
// lockstep with the root package.json pins. No consumer-facing / CLI change.
|
|
482
|
+
"@takazudo/zfb": "0.1.0-next.69",
|
|
483
|
+
"@takazudo/zfb-runtime": "0.1.0-next.69",
|
|
482
484
|
// zfb-adapter-cloudflare — required for any route with `prerender = false`.
|
|
483
485
|
// Pinned in lockstep with @takazudo/zfb.
|
|
484
|
-
"@takazudo/zfb-adapter-cloudflare": "0.1.0-next.
|
|
486
|
+
"@takazudo/zfb-adapter-cloudflare": "0.1.0-next.69",
|
|
485
487
|
// @takazudo/zudo-doc — published from this monorepo via
|
|
486
488
|
// .github/workflows/publish-zudo-doc.yml. The pin here is bumped in
|
|
487
489
|
// lockstep by scripts/release-create-zudo-doc.sh whenever zudo-doc's
|
|
@@ -564,7 +566,7 @@ function generatePackageJson(choices) {
|
|
|
564
566
|
// @takazudo/zudo-doc/integrations/doc-history which in turn imports
|
|
565
567
|
// @takazudo/zudo-doc-history-server/git-history. Without this dep the
|
|
566
568
|
// plugin host fails at init with ERR_MODULE_NOT_FOUND — W8A (#1739).
|
|
567
|
-
deps["@takazudo/zudo-doc-history-server"] = "^1.
|
|
569
|
+
deps["@takazudo/zudo-doc-history-server"] = "^1.2.0";
|
|
568
570
|
// tsx is no longer needed here: the relocated package plugin imports the
|
|
569
571
|
// runner directly (no `tsx -e` spawn) since the package ships compiled
|
|
570
572
|
// dist/ — package-first migration #2321 (#2337).
|
package/dist/zfb-config-gen.js
CHANGED
|
@@ -28,6 +28,8 @@ export function generateZfbConfig(_choices) {
|
|
|
28
28
|
lines.push(`import { zudoDocPreset } from "@takazudo/zudo-doc/preset";`);
|
|
29
29
|
lines.push(`import { settings } from "./src/config/settings";`);
|
|
30
30
|
lines.push(`import { buildDocsSchema } from "./src/config/docs-schema";`);
|
|
31
|
+
lines.push(`import { translations } from "./src/config/i18n";`);
|
|
32
|
+
lines.push(`import { colorSchemes } from "./src/config/color-schemes";`);
|
|
31
33
|
lines.push(``);
|
|
32
34
|
// --- Directive vocabulary ---
|
|
33
35
|
// The seven canonical directives registered in pages/_mdx-components.ts.
|
|
@@ -54,7 +56,7 @@ export function generateZfbConfig(_choices) {
|
|
|
54
56
|
lines.push(` base: settings.base,`);
|
|
55
57
|
lines.push(``);
|
|
56
58
|
lines.push(` // ── Preset-owned fields (content collections, plugins, markdown, …) ────────`);
|
|
57
|
-
lines.push(` ...zudoDocPreset({ settings, buildDocsSchema, directiveVocabulary }),`);
|
|
59
|
+
lines.push(` ...zudoDocPreset({ settings, buildDocsSchema, directiveVocabulary, translations, colorSchemes }),`);
|
|
58
60
|
lines.push(`});`);
|
|
59
61
|
return lines.join("\n") + "\n";
|
|
60
62
|
}
|
package/package.json
CHANGED
|
@@ -55,7 +55,7 @@ export function detectLocaleFromPath(path: string): Locale {
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
/** UI string translations */
|
|
58
|
-
const translations: Record<string, Record<string, string>> = {
|
|
58
|
+
export const translations: Record<string, Record<string, string>> = {
|
|
59
59
|
en: {
|
|
60
60
|
"nav.gettingStarted": "Getting Started",
|
|
61
61
|
"nav.learn": "Learn",
|