create-zudo-doc 2.5.0 → 2.5.1
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 +1 -1
- package/dist/scaffold.js +2 -2
- package/package.json +2 -1
- package/templates/features/claudeResources/files/src/integrations/claude-resources/__tests__/generate.test.ts +20 -0
- package/templates/features/claudeResources/files/src/integrations/claude-resources/generate.ts +0 -2
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 = "^2.5.
|
|
14
|
+
export declare const ZUDO_DOC_PIN = "^2.5.1";
|
|
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 = "^2.5.
|
|
21
|
+
export const ZUDO_DOC_PIN = "^2.5.1";
|
|
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/`
|
|
@@ -582,7 +582,7 @@ function generatePackageJson(choices) {
|
|
|
582
582
|
// @takazudo/zudo-doc/integrations/doc-history which in turn imports
|
|
583
583
|
// @takazudo/zudo-doc-history-server/git-history. Without this dep the
|
|
584
584
|
// plugin host fails at init with ERR_MODULE_NOT_FOUND — W8A (#1739).
|
|
585
|
-
deps["@takazudo/zudo-doc-history-server"] = "^2.5.
|
|
585
|
+
deps["@takazudo/zudo-doc-history-server"] = "^2.5.1";
|
|
586
586
|
// tsx is no longer needed here: the relocated package plugin imports the
|
|
587
587
|
// runner directly (no `tsx -e` spawn) since the package ships compiled
|
|
588
588
|
// dist/ — package-first migration #2321 (#2337).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-zudo-doc",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.1",
|
|
4
4
|
"description": "Create a new zudo-doc documentation site",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Takeshi Takatsudo",
|
|
@@ -61,6 +61,7 @@
|
|
|
61
61
|
"@types/fs-extra": "^11.0.4",
|
|
62
62
|
"@types/minimist": "^1.2.5",
|
|
63
63
|
"@types/node": "^22.0.0",
|
|
64
|
+
"gray-matter": "^4.0.3",
|
|
64
65
|
"typescript": "^5.9.0",
|
|
65
66
|
"vitest": "^4.1.0"
|
|
66
67
|
}
|
|
@@ -147,6 +147,26 @@ describe("generateClaudeResourcesDocs", () => {
|
|
|
147
147
|
expect(overview).toContain('<CategoryNav categories={');
|
|
148
148
|
});
|
|
149
149
|
|
|
150
|
+
it("overview body has no prose line duplicating the frontmatter description", () => {
|
|
151
|
+
// Regression test for #2568: the body used to repeat the frontmatter
|
|
152
|
+
// `description` verbatim as a standalone prose line right below `---`.
|
|
153
|
+
generateClaudeResourcesDocs({
|
|
154
|
+
claudeDir,
|
|
155
|
+
projectRoot: tmpDir,
|
|
156
|
+
docsDir,
|
|
157
|
+
});
|
|
158
|
+
|
|
159
|
+
const overview = fs.readFileSync(
|
|
160
|
+
path.join(docsDir, "claude", "index.mdx"),
|
|
161
|
+
"utf8",
|
|
162
|
+
);
|
|
163
|
+
const parsed = matter(overview);
|
|
164
|
+
const description = parsed.data.description as string;
|
|
165
|
+
const bodyLines = parsed.content.split("\n");
|
|
166
|
+
|
|
167
|
+
expect(bodyLines).not.toContain(description);
|
|
168
|
+
});
|
|
169
|
+
|
|
150
170
|
it("skill page has correct frontmatter", () => {
|
|
151
171
|
generateClaudeResourcesDocs({
|
|
152
172
|
claudeDir,
|