Skip to content

Commit 55c20a7

Browse files
committed
fix: correct file path formatting
1 parent ae599c4 commit 55c20a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scripts/builders/reference.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ const convertToMDX = async (
292292

293293
try {
294294
// Add YAML comment to the frontmatter
295-
const comment = `# This file was auto-generated. Please do not edit it manually!\n# To make changes, edit the comments in the corresponding source file:\n# https://github.com/processing/p5.js/blob/v${p5Version}/${doc.file}#L${doc.line}`;
295+
const comment = `# This file was auto-generated. Please do not edit it manually!\n# To make changes, edit the comments in the corresponding source file:\n# https://github.com/processing/p5.js/blob/v${p5Version}/${doc.file.replace(/\\/g, '/')}#L${doc.line}`;
296296

297297
// Convert the frontmatter to a string
298298
const frontmatter = matter.stringify("", frontMatterArgs);

0 commit comments

Comments
 (0)