evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
Build a documentation generator that customizes how parameter lists are displayed in the output while keeping all other documentation sections in their default format.
Create a Node.js script that generates API documentation from JSDoc-annotated source code. The script should:
**paramName** (*type*) - description
Write the generated documentation to API.md in the current directory.
Given this source file calculator.js:
/**
* Performs mathematical operations
* @param {number} a - First operand
* @param {number} b - Second operand
* @param {string} operation - The operation to perform (add, subtract, multiply, divide)
* @returns {number} The result of the operation
*/
function calculate(a, b, operation) {
// implementation
}**a** (*number*) - First operand @test/**
* Generates API documentation with custom parameter formatting
* @param {string} sourceFilePath - Path to the source file to document
* @returns {Promise<void>} Resolves when documentation is written to API.md
*/
async function generateDocs(sourceFilePath) {
// IMPLEMENTATION HERE
}
module.exports = { generateDocs };Generates markdown API documentation from JSDoc-annotated source code with template customization support.