in scripts/sync-docs.js [308:332]
function generateAPIDocs(project) {
const dir = `./${tempPath}/${project.name}`;
return new Listr([
{
title: 'Generate markdown files',
task: () => {
childProcess.spawnSync(`autodocs/generate.sh`, ['build'], {
cwd: dir,
});
},
},
{
title: 'Copy API docs',
task: async () => {
if (
await copyDocs(`${dir}/autodocs/output`, `${dir}/pdk-docs`)
.then(() => true)
.catch(() => false)
) {
await fs.rm(`${dir}/autodocs/output`, { recursive: true });
}
},
},
]);
}