code: async function baseDocumentize (env) {
    let filter = parseFilter(env)
  
    filter.promise
      .then(data => {
        env.logger.log(`Folder \`${env.src}\` successfully parsed.`)
        env.data = data
        onEmpty(data, env)
  
        env.logger.debug(() => {
          fs.writeFile(
            'sassdoc-data.json',
            JSON.stringify(data, null, 2) + '\n',
            err => {
              if (err) throw err
            }
          )
  
          return 'Dumping data to `sassdoc-data.json`.'
        })
      })
  
    let streams = [
      vfs.src(env.src),
      recurse(),
      exclude(env.exclude || []),
      converter({ from: 'sass', to: 'scss' }),
      filter
    ]
  
    let pipeline = () => {
      return new Promise((resolve, reject) => {
        pipe(...streams, err =>
          err ? reject(err) : resolve())
        .resume() // Drain.
      })
    }
  
    try {
      await pipeline()
      await filter.promise
    } catch (err) {
      env.emit('error', err)
      throw err
    }
  
    return env.data
  }
docs: Source directory fetching and parsing.