async function pugifyAllFiles(noWatch, isReload = false) {
  await Promise.all(files.map(async(file) => {
    const filename = path.join(cwd, file);
    await pugify(filename, docsFilemap.fileMap[file], isReload);
  }));

  // enable watch after all files have been done once, and not in the loop to use less-code
  // only enable watch if main module AND having argument "--watch"
  if (!noWatch && isMain && process.argv[2] === '--watch') {
    startWatch();
  }
}
Render all files at once
@param {Boolean} noWatch Set whether to start file watchers for reload
@param {Boolean} isReload Indicate this is a reload of all files