 
 orderGen = 9999
 
-insertNavIntoTree = (relativePath, extension, title, order, root) ->
+insertNavIntoTree = (relativePath, extension, title, order, rootPath) ->
   _path = path.resolve '/', relativePath
     .replace /index\.[^/]+$/, ''              # index identified with directory
     .replace /\.[^./]+$/, '.' + extension     # e.g. '.jade' -> '.html'

   orders
   hrefExtension
   demoteTopIndex
   root
###

path = require 'path'


module.exports =
  ({sources, targets, titles, orders, hrefExtension, demoteTopIndex,
  rootPath}={}) ->
    # defaults
    sources ?= ['data', 'frontMatter']
    targets ?= ['nav', 'data.nav']
