Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion src/scripts/builders/reference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,16 @@ const convertToMDX = async (

try {
// Add YAML comment to the frontmatter
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}`;
const repo =
doc.module === "p5.sound"
? "processing/p5.sound"
: "processing/p5.js";

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/${repo}/blob/v${p5Version}/${doc.file.replace(/\\/g, '/') }#L${doc.line}`;


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