docs: function handleRecursive(docs, pwd) {
    if (typeof docs == 'string' || imageRegex.test(pwd)) {
      return []
    }
    const routes = _.map(docs, (doc, title) => {
  
      // Init route
      let route
      let meta = {}
  
      // If doc is a string.
      if (_.isString(doc)) {
        route = markdownDocBundler.fixUrl(path.join(pwd, title))
  
        // See if the doc has metadata
        meta = handleMeta(doc, title)
      }
  
      // If the value is a Buffer (usually images)
      else if (Buffer.isBuffer(doc)) {
        route = path.join('/', pwd, title)
      }
  
      // If doc is an object just fix the url and leave meta empty
      else if (_.isObject(doc)) {
        route = markdownDocBundler.fixUrl(path.join(pwd, title))
      }
  
      return {
        title: handleTitle(doc, title, meta),
        meta: meta,
        path: route,
        children: handleRecursive(doc, route)
      }
    })
    return routes
  }