         rootName = name
       if demoteTopIndex       # top-level index becomes sibling of its children
         for name, child of root.children
-          navTree.children[webPath.resolve rootName, name] = child
+          navTree.children[resolve rootName, name] = child
           child.parent = navTree
         root.children = {}
       # ...and now we've seen them all

  Object.defineProperties
    title: nav.title
    # how you get here from there, but only if here is an actual place
    href: webPath.relative context[0], webPath.resolve context... if nav.exists
    active: context[0] is webPath.resolve context... # ending where we started?
  ,
    parent:
      enumerable: yes             # these properties should be easy to find

   demoteTopIndex
###

{basename} = require 'path'
through = require 'through2'
{relative, resolve} = require './web-path'

root = rootName = null

