function generateDocForFile(file) {
  return exec(
    `$(npm bin)/documentation build ${SRC_FOLDER}/${file.src} -f md -o ${API_DOCS_FOLDER}/${file.dest} --shallow`
  )
    .then((res) => {
      console.log('Successfully generated', file.dest || file)
      return removeSeeFromMarkdown(
        `${process.cwd()}/${API_DOCS_FOLDER}/${file.dest}`
      )
      // return res
    })
    .catch((error) => {
      console.log('error generating doc: ', error.message || error)
      return Promise.reject(error)
    })
}
@param {object} file - File object for which to generate docs
@returns {Promise} Resolves after running docs generation