create-zudo-doc 3.0.0 → 3.1.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/constants.js +1 -1
- package/dist/scaffold.d.ts +1 -1
- package/dist/scaffold.js +21 -10
- package/dist/settings-gen.js +1 -0
- package/package.json +1 -1
- package/templates/base/src/config/docs-schema.ts +1 -0
- package/templates/base/src/config/frontmatter-preview-defaults.ts +1 -0
- package/templates/base/src/config/settings-types.ts +1 -0
package/dist/constants.js
CHANGED
|
@@ -106,7 +106,7 @@ export const FEATURES = [
|
|
|
106
106
|
{
|
|
107
107
|
value: "skillSymlinker",
|
|
108
108
|
label: "Skill symlinker",
|
|
109
|
-
hint: "Symlink documentation skills",
|
|
109
|
+
hint: "Symlink documentation skills into Claude Code or Codex",
|
|
110
110
|
default: false,
|
|
111
111
|
cliFlag: "skill-symlinker",
|
|
112
112
|
},
|
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 = "^3.
|
|
14
|
+
export declare const ZUDO_DOC_PIN = "^3.1.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 = "^3.
|
|
21
|
+
export const ZUDO_DOC_PIN = "^3.1.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/`
|
|
@@ -333,12 +333,14 @@ export async function scaffold(choices) {
|
|
|
333
333
|
// skill a user later installs under a matching name. The skill name is
|
|
334
334
|
// deterministic (always `<projectName>-wisdom`, matching DEFAULT_SKILL_NAME
|
|
335
335
|
// in scripts/setup-doc-skill.sh and the package name), so these entries match
|
|
336
|
-
// the directory the script creates. The
|
|
337
|
-
//
|
|
336
|
+
// the directory the script creates. The setup script can target either
|
|
337
|
+
// .claude or .codex, so ignore both possible generated directories. The
|
|
338
|
+
// docs-ja symlink only exists for i18n projects (the script creates it
|
|
339
|
+
// conditionally), so gate those lines on i18n.
|
|
338
340
|
if (choices.features.includes("skillSymlinker")) {
|
|
339
|
-
gitignoreLines.push("# Generated doc-lookup skill", `.claude/skills/${choices.projectName}-wisdom/SKILL.md`, `.claude/skills/${choices.projectName}-wisdom/docs`);
|
|
341
|
+
gitignoreLines.push("# Generated doc-lookup skill", `.claude/skills/${choices.projectName}-wisdom/SKILL.md`, `.claude/skills/${choices.projectName}-wisdom/docs`, `.codex/skills/${choices.projectName}-wisdom/SKILL.md`, `.codex/skills/${choices.projectName}-wisdom/docs`);
|
|
340
342
|
if (choices.features.includes("i18n")) {
|
|
341
|
-
gitignoreLines.push(`.claude/skills/${choices.projectName}-wisdom/docs-ja`);
|
|
343
|
+
gitignoreLines.push(`.claude/skills/${choices.projectName}-wisdom/docs-ja`, `.codex/skills/${choices.projectName}-wisdom/docs-ja`);
|
|
342
344
|
}
|
|
343
345
|
gitignoreLines.push("");
|
|
344
346
|
}
|
|
@@ -493,13 +495,16 @@ function generatePackageJson(choices) {
|
|
|
493
495
|
// class-candidate scanning through symlinked project trees
|
|
494
496
|
// (zudolab/zudo-doc#2511), adopted in lockstep with the root package.json
|
|
495
497
|
// pins. No consumer-facing / CLI change.
|
|
496
|
-
// next.76
|
|
498
|
+
// next.76: routine toolchain bump from next.75, adopted in
|
|
497
499
|
// lockstep with the root package.json pins. No consumer-facing / CLI change.
|
|
498
|
-
|
|
499
|
-
|
|
500
|
+
// next.77 (current pin): router persistence/history fixes and runtime
|
|
501
|
+
// island remount support, adopted in lockstep with the root package.json
|
|
502
|
+
// pins. No scaffold API change.
|
|
503
|
+
"@takazudo/zfb": "0.1.0-next.77",
|
|
504
|
+
"@takazudo/zfb-runtime": "0.1.0-next.77",
|
|
500
505
|
// zfb-adapter-cloudflare — required for any route with `prerender = false`.
|
|
501
506
|
// Pinned in lockstep with @takazudo/zfb.
|
|
502
|
-
"@takazudo/zfb-adapter-cloudflare": "0.1.0-next.
|
|
507
|
+
"@takazudo/zfb-adapter-cloudflare": "0.1.0-next.77",
|
|
503
508
|
// @takazudo/zudo-doc — published from this monorepo via
|
|
504
509
|
// .github/workflows/publish-zudo-doc.yml. The pin here is bumped in
|
|
505
510
|
// lockstep by scripts/release-create-zudo-doc.sh whenever zudo-doc's
|
|
@@ -582,7 +587,7 @@ function generatePackageJson(choices) {
|
|
|
582
587
|
// @takazudo/zudo-doc/integrations/doc-history which in turn imports
|
|
583
588
|
// @takazudo/zudo-doc-history-server/git-history. Without this dep the
|
|
584
589
|
// plugin host fails at init with ERR_MODULE_NOT_FOUND — W8A (#1739).
|
|
585
|
-
deps["@takazudo/zudo-doc-history-server"] = "^3.
|
|
590
|
+
deps["@takazudo/zudo-doc-history-server"] = "^3.1.0";
|
|
586
591
|
// tsx is no longer needed here: the relocated package plugin imports the
|
|
587
592
|
// runner directly (no `tsx -e` spawn) since the package ships compiled
|
|
588
593
|
// dist/ — package-first migration #2321 (#2337).
|
|
@@ -635,6 +640,12 @@ function generatePackageJson(choices) {
|
|
|
635
640
|
scripts["setup:doc-skill"] = "bash scripts/setup-doc-skill.sh";
|
|
636
641
|
scripts["setup:doc-skill-silent"] =
|
|
637
642
|
"bash scripts/setup-doc-skill.sh --silent";
|
|
643
|
+
scripts["setup:doc-skill:claude"] =
|
|
644
|
+
"bash scripts/setup-doc-skill.sh --target claude";
|
|
645
|
+
scripts["setup:doc-skill:codex"] =
|
|
646
|
+
"bash scripts/setup-doc-skill.sh --target codex";
|
|
647
|
+
scripts["setup:doc-skill:both"] =
|
|
648
|
+
"bash scripts/setup-doc-skill.sh --target both";
|
|
638
649
|
}
|
|
639
650
|
const runCmd = choices.packageManager === "npm" || choices.packageManager === "bun" ? `${choices.packageManager} run` : choices.packageManager;
|
|
640
651
|
// claudeSkills ships the zudo-doc-version-bump skill, whose release workflow
|
package/dist/settings-gen.js
CHANGED
|
@@ -130,6 +130,7 @@ export function generateSettingsFile(choices) {
|
|
|
130
130
|
else {
|
|
131
131
|
lines.push(` llmsTxt: false,`);
|
|
132
132
|
}
|
|
133
|
+
lines.push(` changelogs: false,`);
|
|
133
134
|
lines.push(` math: false,`);
|
|
134
135
|
lines.push(` cjkFriendly: ${choices.cjkFriendly ?? false} as boolean,`);
|
|
135
136
|
lines.push(` onBrokenMarkdownLinks: "warn" as "warn" | "error" | "ignore",`);
|
package/package.json
CHANGED
|
@@ -62,6 +62,7 @@ export function buildDocsSchema() {
|
|
|
62
62
|
unlisted: z.boolean().optional(),
|
|
63
63
|
hide_sidebar: z.boolean().optional(),
|
|
64
64
|
hide_toc: z.boolean().optional(),
|
|
65
|
+
wide: z.boolean().optional(),
|
|
65
66
|
doc_history: z.boolean().optional(),
|
|
66
67
|
standalone: z.boolean().optional(),
|
|
67
68
|
slug: z.string().optional(),
|