Resolve #2
This commit is contained in:
@ -84,22 +84,21 @@ try {
|
|||||||
output += `\n${snippet.notes}`;
|
output += `\n${snippet.notes}`;
|
||||||
}
|
}
|
||||||
output += misc.collapsible('Examples', snippet.codeBlocks.slice(-1));
|
output += misc.collapsible('Examples', snippet.codeBlocks.slice(-1));
|
||||||
//output += detailsQuestion("View answer", question)
|
|
||||||
output += `\n<br>${misc.link(
|
output += `\n<br>${misc.link(
|
||||||
"⬆ Back to top",
|
"⬆ Back to top",
|
||||||
misc.anchor("Table of Contents")
|
misc.anchor("Table of Contents")
|
||||||
)}\n\n`
|
)}\n\n`
|
||||||
})
|
})
|
||||||
})
|
});
|
||||||
|
|
||||||
// add static part for end
|
// add static part for end
|
||||||
output += `\n${endPart}\n`
|
output += `\n${endPart}\n`;
|
||||||
|
|
||||||
fs.writeFileSync("README.md", output)
|
fs.writeFileSync("README.md", output);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log(`${chalk.red("ERROR!")} During README generation: ${err}`)
|
console.log(`${chalk.red("ERROR!")} During README generation: ${err}`);
|
||||||
process.exit(1)
|
process.exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(`${chalk.green("SUCCESS!")} README file generated!`)
|
console.log(`${chalk.green("SUCCESS!")} README file generated!`);
|
||||||
console.timeEnd("Builder")
|
console.timeEnd("Builder");
|
||||||
Reference in New Issue
Block a user