Skip to content

Commit 1387569

Browse files
committed
docs: fix generated examples path
1 parent b423407 commit 1387569

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tooling/docs/examples-to-md.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ await Promise.all(
5555
.map(({ type, content }) => (type === 'code' ? `\`\`\`js\n${content}\n\`\`\`` : content))
5656
.join('\n');
5757

58-
const fileParsedPath = path.parse(path.resolve(process.cwd(), 'docs', fileName));
58+
const fileParsedPath = path.parse(path.resolve(process.cwd(), 'docs', directory, fileName));
5959
await fs.mkdir(fileParsedPath.dir, { recursive: true });
6060

6161
const outputFilePath = path.format({ ...fileParsedPath, base: undefined, ext: '.md' });

0 commit comments

Comments
 (0)